I am getting 504 errors when I query the API #521
Answered
by
tloubrieu-jpl
tloubrieu-jpl
asked this question in
Q&A
|
From user @anilnatha: When I do this query to the API: I am sometimes getting a 504 error. |
Answered by
tloubrieu-jpl
Aug 2, 2024
Replies: 1 comment
|
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 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 |
0 replies
Answer selected by
jordanpadams
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
limitparameter 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