covid-vaccine-booking icon indicating copy to clipboard operation
covid-vaccine-booking copied to clipboard

Error - Too many requests while generating OTP

Open salonimathur16 opened this issue 3 years ago • 7 comments

Hi @pallupz ,

I am getting this error while generating OTP on windows.

Unable to Generate OTP 429 { "error": "Too Many Requests" }

salonimathur16 avatar May 27 '21 12:05 salonimathur16

I'm also getting the same error. Are you searching with pincode or district?

girishbaviskar avatar May 27 '21 13:05 girishbaviskar

#133 Suggests a possible fix for this imo.

@pallupz Should I raise a PR with the fix suggested in #133?

chettriyuvraj avatar May 28 '21 09:05 chettriyuvraj

@chettriyuvraj can you please tell where we have to add this fake user agent code ?

salonimathur16 avatar May 28 '21 12:05 salonimathur16

I've tried the fix in #133 didn't work for me.

girishbaviskar avatar May 28 '21 13:05 girishbaviskar

this isnt a user-agent issue - more likely you might be hitting the api rate limiter.. how many districts/pincodes are you trying at a time and in what freq? If one, please use freq of around 3-5 minimum

pallupz avatar May 29 '21 04:05 pallupz

I'm searching for 1 district at a time and with the frequency of 7 seconds.

girishbaviskar avatar May 31 '21 11:05 girishbaviskar

Just change your IP if you get "too many requests" error.

This will work for OTP generation and also when a timeout happens.

On Mon, May 31, 2021 at 5:19 PM Girish Baviskar @.***> wrote:

I'm searching for 1 district at a time and with the frequency of 7 seconds.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pallupz/covid-vaccine-booking/issues/226#issuecomment-851435326, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALTVSLGTJIOPV27X6DL5BCLTQNZTLANCNFSM45UGSRGA .

mrkarthik3 avatar May 31 '21 13:05 mrkarthik3