I am getting 504 errors when I query the API #521
-
From user @anilnatha: When I do this query to the API:
I am sometimes getting a 504 error. |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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