API accepting requests with new keys?

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
elasticsearch
領域
api, backend

調査の方向性

まず、issue にある 2 つの GET リクエストを再現し、添付された gsa-api-list-documents.txt のレスポンスの詳細を確認します。報告されている 403 アクセス失敗と document_library インデックスエラーを調査します。新しく発行されたキーで documents endpoint にアクセスでき、search endpoint が報告されたサーバーエラーを返さなくなれば完了です。

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

説明

Hello there,

I just applied for and received an API key for api.gsa.gov, but I'm not seeing the expected responses.
Account Email: [email protected]
Account ID: 4422f08b-fe57-4a60-98d0-806c6ad9ae23

GET https://api.gsa.gov/acquisition/cap/v1/documents responds with a 403 Forbidden:

  {"type":"http:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec10.html#sec10.4.4","title":"You do not have access to this resource.","status":403,"detail":"Forbidden."}

GET https://api.gsa.gov/acquisition/cap/v1/search/documents/Test1 responds with a 500 Internal Server Error, showing what looks like an ElasticSearch/OpenSearch error:

  {"type":"http:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec10.html#sec10.5.1","title":"Search API Exception: Unknown index with ID document_library..","status":500,"detail":"Server configuration error."}

Here's what the request/response (sanitized, omitting API key, cookies) looks like:
gsa-api-list-documents.txt

Thanks!

主要言語
言語のデータがありません
スター
11
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

GSA/ag-api のほかの issue

GSA/ag-api の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

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

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