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

Rate Limits #101

Open
ZincNitrogen opened this issue Aug 28, 2024 · 8 comments
Open

Rate Limits #101

ZincNitrogen opened this issue Aug 28, 2024 · 8 comments

Comments

@ZincNitrogen
Copy link

Hi, I believe i have just gotten rate limited (axios all of a sudden gives a 429 "Too Many Requests" Error when everything was working before and there have been no changes to the code).

I read in another issue that the rate limit is 1 request per second, but I haven't been able to find that in the docs.

Does anyone know how long it takes to get unblocked?

@AaronS95
Copy link

AaronS95 commented Aug 30, 2024

I'm having the same issue - no changes to my code either

It works when viewing the JSON in the browser, so it seems to be still working

@ZincNitrogen
Copy link
Author

@AaronS95 Yeah I can also confirm the endpoint works when you go through the browser. My current plan is to essentially not make any API requests til Monday and see if I get automatically unblocked.

@Hamuko
Copy link

Hamuko commented Sep 1, 2024

Are you sending a User-Agent header with your requests?

@FrostyFridge
Copy link

Don't think you're blocked, it seems like all i.c4dn requests require a User-Agent header now or else you'll get a 429

@AaronS95
Copy link

AaronS95 commented Sep 1, 2024

Changed my code a bit and it seems like I was missing a User-Agent header, works fine now!

Before making any changes I logged the output of my request headers which did include User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0, so I'm not really sure what went wrong - either way it's fixed for me

@ZincNitrogen
Copy link
Author

@Hamuko and @FrostyFridge , where did you find out that we need a User-Agent header?

@Hamuko
Copy link

Hamuko commented Sep 3, 2024

Noticed that cURL worked whereas my raw HTTP requests didn't, and I knew that cURL sends its User-Agent.

@ZincNitrogen
Copy link
Author

@Hamuko ah I see. Weird that 4chan made that update all of a sudden.

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

4 participants