pallupz / covid-vaccine-booking

This tool can be used to automate booking slots on Co-WIN Platform.
MIT License
597 stars 533 forks source link

Notification issue #25

Open heisenberg2208 opened 3 years ago

heisenberg2208 commented 3 years ago

Script was not able to show the available slots which were visible on the cowin website

vinayd2 commented 3 years ago

works fine with python3.6+ and requirements are met (follow instructions to install requirements / dependencies). it could help if the message on console is shared here.

heisenberg2208 commented 3 years ago

Actually I closed the console. And all the prerequisites are already met. Will paste the logs once face this issue again.

pallupz commented 3 years ago

While checking in the website, make sure you're logged in. The Co-WIN page where you can check for slots without logging in is not reliable.

heisenberg2208 commented 3 years ago

While checking in the website, make sure you're logged in. The Co-WIN page where you can check for slots without logging in is not reliable.

I was logged in. Apparently you can login through portal and through script at the same time also

pallupz commented 3 years ago

That is weird. Logged in data shouldn't be different. Were you able to reproduce the issue?

heisenberg2208 commented 3 years ago

Nah. Will try today again at the same time.

heisenberg2208 commented 3 years ago

================================= ATTEMPTING BOOKING ================================================== Booking Response Code: 400 Booking Response : {"errorCode":"APPOIN0025","error":"The individual with with reference id xxxxxxxxx must be vaccinated with first dose before taking appointment for the second dose."} Response: 400 : {"errorCode":"APPOIN0025","error":"The individual with with reference id xxxxxxxxxx must be vaccinated with first dose before taking appointment for the second dose."} Press any key to continue . . . Traceback (most recent call last):

pallupz commented 3 years ago

Could you send me the code you're using? This shouldn't have happened. Even better would be the whole log including the beneficiaries screen (with PIA redacted).

pallupz commented 3 years ago

@heisenberg2208 I found the bug here and have fixed it in the latest version

pallupz commented 3 years ago

If you run into this issue again, could you please update in #52

The bug was introduced due to that implementation

heisenberg2208 commented 3 years ago

@pallupz That's cool I was also googling for a bit https://apisetu.gov.in/public/api/cowin#/Appointment%20Availability%20APIs/findByPin

In the first para it states that "The appointment availability data is cached and may be upto 30 minutes old."