Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary 502 error #58

Open
bpinsard opened this issue Jul 17, 2024 · 1 comment
Open

Temporary 502 error #58

bpinsard opened this issue Jul 17, 2024 · 1 comment
Labels

Comments

@bpinsard
Copy link

What happened?

I am trying to pull large results (69 pages of 1000 results) from the API, I sometimes have to retry 5 times to not get a 502 (Bad Gateway) error from nginx.
Is it caused by the query being too large and python timing-out on nginx?
Is there a recommend number of results to pull in a page?

What command did you use?

Something like

curl https://mriqc.nimh.nih.gov/api/v1/bold?max_results=1000&where={"bids_meta.MagneticFieldStrength":3,"bids_meta.MultibandAccelerationFactor":4,"bids_meta.RepetitionTime":{"$lt":1.6,"$gt":1.4},"spacing_x":{"$lte":2.2,"$gte":1.8},"spacing_y":{"$lte":2.2,"$gte":1.8},"spacing_z":{"$lte":2.2,"$gte":1.8},"size_t":{"$gte":100}}&page=9 


### What version of the software are you running?

na

### How are you running this software?

Local installation ("bare-metal")

### Is your data BIDS valid?

Yes

### Are you reusing any previously computed results?

No

### Please copy and paste any relevant log output.

_No response_

### Additional information / screenshots

_No response_
@bpinsard bpinsard added the bug label Jul 17, 2024
@bpinsard
Copy link
Author

Also for context, I am re-running a code that managed to pull the same query 2y ago without issues IIRC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant