Skip to content

I am getting 504 errors when I query the API #521

Discussion options

You must be logged in to vote

Hi Anil,

504 errors are related to time out. Which can mean your query is too demanding for our server.

In this case you can try to reduce the limit parameter which sets the number of results returned in single query.
In the tests we do before a release, we usually have limit=100 to 500.

If the number of results that you expect is larger than a few hundreds, let's says 500. You need to use pagination to split your query into multiple server requests. See details in our manual https://nasa-pds.github.io/pds-api/guides/search/endpoints.html#use-pagination-to-get-all-products-matching-a-request

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jordanpadams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant