Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

API explorer 500 error on large API responses #115

Open
trkrameshkumar opened this issue Oct 10, 2016 · 5 comments
Open

API explorer 500 error on large API responses #115

trkrameshkumar opened this issue Oct 10, 2016 · 5 comments

Comments

@trkrameshkumar
Copy link

500 error on topictree api

@benjaminjkraft
Copy link
Contributor

Hi @trkrameshkumar,

We're aware of some general infrastructure issues affecting this endpoint. Are you consistently getting failures, or can you work around this by just retrying? Can you provide us with timestamps of exactly when you saw failures?

@rootelement
Copy link

We are seeing the same thing. 500 Error both in the API Explorer and in Postman. We're unable to get a response from Topictree, and Exercises
https://gyazo.com/ed0858261bb6aa913de3dbc574d41298

@benjaminjkraft
Copy link
Contributor

Hi all,

These endpoints both serve very large responses so we do sometimes have transient errors if you don't hit a cache. Can you work around this by retrying in case of a server error? It looks like we have a fairly small percentage of requests failing so that should generally work; while I'd certainly like to solve these problems I doubt we'll ever get the error rate to 0 given how much data we're returning in these endpoints.

@rootelement
Copy link

Can you give me an example request that succeeds? I'm unable to get a success from the exercises API given one or two filters. Such as this request:
https://api-explorer.khanacademy.org/api/v1/exercises?edit=&tags=math%2Calgebra%2Cscientific_notation

@benjaminjkraft
Copy link
Contributor

Ah! It looks like this is a bug in our API explorer, which is why I wasn't seeing many failures in our main logs. If you hit www.khanacademy.org it should work; we'll look into why the API explorer isn't working right.

@benjaminjkraft benjaminjkraft changed the title 500 Server error on topictree api request API explorer 500 error on large API responses Jan 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants