Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

An unreachable appstore stops the API from returning a reply

オープン
#145 コメント 7 件 リアクション 5 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php

調査の方向性

/ocs/v2.php/apps/serverinfo/api/v1/info に対する curl リクエストを、アプリストアに到達できない状態で再現することから始め、その後、そのエンドポイントに関連付けられた appstoreFetcher の経路を追跡します。API が利用可能な情報を含む応答を返し、アプリストアへの接続がタイムアウトした場合はアプリ更新データをスキップすれば完了です。

索引モデルが issue の本文から書いたものです。

説明

1. to develop bug

Expected behavior

The external monitor API should always return a reply. If some information, like e.g. the number of available app updates couldn't be evaluated, it should jump over this information instead of aborting its function at all.

Current behavior

The external monitor API, which by default also shows information about available app updates, doesn't return a reply at all if the app store is unreachable, for whatever reason.

Steps to reproduce

  1. The app store is temporarily unreachable

  2. Execute the API call, like e.g.

    curl -s -m 5 -k --netrc https://<nextcloud-fqdn>/ocs/v2.php/apps/serverinfo/api/v1/info
    

    => The request will most likely not return any output.

  3. Check the Nextcloud log file for information about the request.

  4. You will most likely find an entry with the following content:

    {
      "reqId": "JKOFfevzZHTTOKCGEFqJ7",
      "level": 1,
      "time": "2019-02-22 13:08:47+01:00",
      "remoteAddr": "<nc-server-ip>",
      "user": "<nc-user>",
      "app": "appstoreFetcher",
      "method": "GET",
      "url": "/ocs/v2.php/apps/serverinfo/api/v1/info",
      "message": {
        "Exception": "GuzzleHttp\\Exception\\ConnectException",
        "Message": "cURL error 28: Connection timed out after 10004 milliseconds (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)",
        "Code": 0,
    

    . ^^^ the connection timed out! ^^^

        "Trace": [
          {
            "file": "<path-to-nc-root>/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php",
            "line": 149,
            "function": "createRejection",
            "class": "GuzzleHttp\\Handler\\CurlFactory",
            "type": "::",
            "args": [
              {
                "sink": {
                  "__class__": "GuzzleHttp\\Psr7\\Stream"
                },
                "headers": [],
                "response": null,
                "request": {
                  "__class__": "GuzzleHttp\\Psr7\\Request"
                },
    
          ...
    
          {
            "file": "<path-to-nc-root>/nextcloud/ocs/v1.php",
            "line": 82,
            "function": "match",
            "class": "OC\\Route\\Router",
            "type": "->",
            "args": [
              "/ocsapp/apps/serverinfo/api/v1/info"
            ]
          },
          {
            "file": "<path-to-nc-root>/nextcloud/ocs/v2.php",
            "line": 24,
            "args": [
              "<path-to-nc-root>/nextcloud/ocs/v1.php"
            ],
            "function": "require_once"
          }
        ],
        "File": "<path-to-nc-root>/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php",
        "Line": 185,
        "CustomMessage": "Could not connect to appstore"
    

    . ^^^ the appstore was unreachable! ^^^

      },
      "userAgent": "curl/7.63.0",
      "version": "15.0.4.0"
    }
    
    

Environment

Server Configuration

OS: Linux 3.16.62
Web server: Apache2 2.4.37
Database: MariaDB 10.2.21
PHP version: 7.2.14
Nextcloud version: 15.0.4
Serverinfo app version: 1.5.0

Client Configuration

Browser: Mozilla Firefox 65.0.1
Operating system: Windows 10

主要言語
JavaScript
スター
133
フォーク
67
平均マージ
22時間 55分
マージ済み PR(30日)
53

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/serverinfo のほかの issue

nextcloud/serverinfo の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。