問題タブ [google-books-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
68 参照

typescript - Firebase Cloud Function から Google Books API を呼び出すときの 500 エラー

この投稿のようなコードで、Firebase を使用するプロジェクトで Google Books API を呼び出しています。

しかし、私は生産上の問題に直面しています。これをローカルで試してみると、Google Books API問題なく接続できますが、本番環境では失敗し続け、500 error得られる唯一の詳細は次のとおりです。

ここで試してみるべきアイデアはありますか?開発者のコ​​ンソールで API キーを無制限に設定しましたが、動かなくなりました。

firebase からのクラウド呼び出しは次のとおりです。

Google コンソールで API キーのアクセス許可がどのように表示されるかを次に示します。 Google API コンソール

ローカル、Postman、またはブラウザでリクエストを試すと、リクエストは問題ないように見えますが、本番環境では上記のエラー メッセージが表示されます。

0 投票する
1 に答える
116 参照

google-books - Google ブックス API で正確な著者を検索

Google ブックス API を使用して、同じ著者による他の本を表示できるようにしたいのですが、ドキュメントに表示されている唯一の「著者」関連のフィルターはinauthor、一致する著者を探している です。提供されるテキスト:

https://www.googleapis.com/books/v1/volumes?q=inauthor:Richard+Moreno&key=my_key

具体的には「Richard Moreno」ではなく、名が「Richard」の著者による複数の本を返します

まったく同じ著者による本のみが必要であると指定できるパラメーターはありますか?

または、完全に一致するものを見つけるために自分で結果をフィルタリングする必要がありますか?

0 投票する
1 に答える
95 参照

google-workspace - Investigating quotaUser issues

I am using the Google Books API.

I currently have a Queries Per Day Limit of 1M, and a Queries per user per 100s Limit of 100.

I make requests in my server on behalf of users, so I use the quotaUser parameter.

Now, here's the rub:

In one step (when a user imports a CSV of books) -- I need to create a bunch of requests.

To do this, I send a random UUID as the quotaUser parameter, and make requests in parallel.

Here's the problem though:

Google Books still sometimes sends me 429s. It says:

I don't understand how this could be. If quotaUser works, there's no way I would be sending more than 100 requests per minute for a single quotaUser id.

In what ways could I debug this?

When I look at Cloud Console, I don't see a page, where I can see exactly the params that are being sent (perhaps quotaUser is not coming in, or something like this)