SRvSaha / CoWinVaccineSlotFinder

Cross-Platform Software to Fetch the Available Slots & Book the Appointment for COVID-19 Vaccination
https://shawt.io/r/sYv
MIT License
81 stars 32 forks source link

Can't connect to the server for this app #53

Closed Tnu02 closed 3 years ago

Tnu02 commented 3 years ago

App

not sure why started getting this error.

SRvSaha commented 3 years ago

Hi @Tnu02, this error comes when you are reaching the throlling limit of the IP for CoWIN. Make sure you keep a Interval of 5000 ms so that this doesn't come. Or else try after some time, it'd work.

5HU8H commented 3 years ago

@SRvSaha I'm getting this error even after keeping the interval to 10000ms. I've tried 5000ms, 8000ms and now 10000ms and all of them are giving me this error. And I'm searching all of Delhi's districts. Any solution?

SRvSaha commented 3 years ago

@5HU8H I think they had added stringent IP Throttling. Similar issues have been raised here as well.

https://github.com/cowinapi/developer.cowin/issues/313 https://github.com/bombardier-gif/covid-vaccine-booking/issues/270

I am trying to see if I can get any fix. The only solution as of now is changing the interval and stopping and trying after sometime, or to use multiple IP Addresses based machine.

slomogangsta commented 3 years ago

Seems like an issue with Co-WIN API itself image

SRvSaha commented 3 years ago

@slomogangsta Yeah there has been some issue reported regarding handling of sessions in CoWIN. I too felt the same. Now there is some throttling issue that is going on.

saurabhkrr commented 3 years ago

hey have you found any fix ? there's no effect of increasing interval

SRvSaha commented 3 years ago

@saurabhkrr The Rate Limit as I feel by observation is 100 Hits from IP within 5 minutes. So, if you are searching for 1 PIN Code then you'll have to keep the SleepInterval as 3000, similarly if you have 2 PIN Codes, it will be 6000 and so on and so forth so that IP is within the rate limit. Another way out is to use two different network IPs and then keep switching between the once you see the error. You can copy the Bearer Token you get after entering OTP, and then on subsequent run from different IP. you have use that in the config file so that re-OTP is not required. This the only work around as of now. Also, try varying the User Agent, might help.

PSuyog97 commented 3 years ago

@SRvSaha Need to change sleep interval time based on the number of PIN codes.

saurabhkrr commented 3 years ago

i tried running it with only one pin code... still the ip is getting blocked

Tnu02 commented 3 years ago

@SRvSaha it's very strange but it started showing slot for 45+ as sson as the slot got opened. With lable [INFO] Sorry! No slot available for search critiera: Age 18-45 - Pin and showing all the 45+ accounts

SRvSaha commented 3 years ago

@saurabhkrr So, if you are searching for 1 PIN Code then you'll have to keep the SleepInterval as 3000, similarly if you have 2 PIN Codes, it will be 6000 and so on and so forth so that IP is within the rate limit. Another way out is to use two different network IPs and then keep switching between the once you see the error. You can copy the Bearer Token you get after entering OTP, and then on subsequent run from different IP. you have use that in the config file so that re-OTP is not required. This the only work around as of now. Also, try varying the User Agent, might help.

saurabhkrr commented 3 years ago

1 pin code with 3000 sleep interval.. nothing's working

SRvSaha commented 3 years ago

Try with 5000 or higher fter some time and if possible keep switching IPs. This is not just us, everyone is impacted because of the IP Throttling. @saurabhkrr

SRvSaha commented 3 years ago

@saurabhkrr @Tnu02 Release v4.2.0 is up now. Check it out and share your feedback. This release tries to address some of the issue of IP Throttling.

saurabhkrr commented 3 years ago

![Uploading IMG20210523183406.jpg…]()

SRvSaha commented 3 years ago

@saurabhkrr The image is not visible, can you reshare