-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
.json()
timed out when parsing large response
#2153
Comments
I think the .json() call includes downloading the response body so maybe your connection is just slow? |
I'm not sure if the downloading process happens in |
Did you try a release build for good measure? |
Sorry, I made a mistake on the request cost. Actually it costed about 20s. |
Try setting the environment variable This should help you determine where in the code the time is actually spent. |
I'm fetching a large data in about 36MB:
And it's easy to get a timed out error
I tried setting the timeout value to 90s, and it spent 87s to deserialize the data to json. It's too slow!
As a comparison, I saved the data into a json file and use
serde_json
to deserialize it directly:The cost turned out to be about 1s.
The text was updated successfully, but these errors were encountered: