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

CurrencyConverter tool failing (502 Server Error) #55

Open
mosessoh opened this issue Feb 20, 2018 · 2 comments
Open

CurrencyConverter tool failing (502 Server Error) #55

mosessoh opened this issue Feb 20, 2018 · 2 comments

Comments

@mosessoh
Copy link

image

I'm guessing that it's hitting some limit on the maximum number of entries that can be returned.

Works

Fails (in screenshot above)

@mosessoh
Copy link
Author

I solved this by persisting previous responses in a local DB and only querying for new data. But I'm not sure how the BlockSci team wants to do this for your official distribution.

@hkalodner
Copy link
Collaborator

Currently there's no internal rate limiting in the CurrencyConverter and thus it starts getting blocked if it gets used to frequently. Persisting to a local DB definitely seems like a good approach to handle this. We should definitely add functionality into the library to handle this class of errors nicely rather than just throwing the Gateway error at the user with no context.

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

No branches or pull requests

2 participants