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

error because of requests limit #28

Closed
irinakarpenko opened this issue Jul 11, 2018 · 2 comments
Closed

error because of requests limit #28

irinakarpenko opened this issue Jul 11, 2018 · 2 comments

Comments

@irinakarpenko
Copy link

Hello!

I wanted to use your api in a study project to realize an Android app using some technologies which are new for me, but already reached requests limit and my app doesn't work :(( it seems that I will need to switch to use other api, but I wanted an app devoted to Rick and Morty :(( can we do anything about the limit? Thank you for consideration!

@afuh
Copy link
Owner

afuh commented Jul 11, 2018

Hi @irinakarpenko,
Thanks for letting me know about the rate limit issue.

The rate limit is there to make sure that the server can handle a large amount of traffic. You have a couple of options to deal with this:

  • Save the the data and use it locally.
  • Save the data as .json files and use that in development (you could fetch the entire database with three calls using an array of ids, check here.
  • Implement some sort of cache in your project.

Hope this helps.

@irinakarpenko
Copy link
Author

Thank you for the answer! I tried to implement cache using okhttp, but today I already won't be able to request the server, so tomorrow I will know whether it works :)

@afuh afuh closed this as completed Jul 28, 2018
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