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

Proper message doesn't show up when Vacccination Centre is Not Available #51

Closed SRvSaha closed 3 years ago

SRvSaha commented 3 years ago

Describe the bug There are scenarios where Vaccination Centres are Blank. In that Case, users are not shown any message.

To Reproduce Steps to reproduce the behavior:

  1. Open the App
  2. Select Any PIN Code from which there are no CVCs.
  3. You'll see no messages being shown to user as no available slots.

Expected behavior Should tell the user that no centres available.

Screenshots image

Desktop (please complete the following information):

Additional context NA

saurabhkrr commented 3 years ago

i tried running this and whenever a slot is available it doesn't show up. it says no slots available but notifications for available slot came from various alerts.

SRvSaha commented 3 years ago

@saurabhkrr, Usually the alerts are not shown in realtime, so they might have some stale data. If you still feel the same is happening, please check the CoWIN Portal after logging in at that time and then check if slots are really avaiable. If yes, then we'll look into it.

saurabhkrr commented 3 years ago

hey. thanks i was able to secure a slot.. but i have a query can we book 3 slots together ?

SRvSaha commented 3 years ago

@saurabhkrr , yes you can if you're having the same beneficiary ID for all 3. Else, you would have to run the program 3 times.

SRvSaha commented 3 years ago

hey. thanks i was able to secure a slot.. but i have a query can we book 3 slots together ?

Hi @saurabhkrr, glad to know that you could book the slot! Please feel free to show support from Starring the Repo and sharing it with your friends. You may also like to share your testimonial here: https://www.linkedin.com/feed/update/urn:li:activity:6796093424492720128/

saurabhkrr commented 3 years ago

but reference id is different for 3 different person on that phone number

SRvSaha commented 3 years ago

but reference id is different for 3 different person on that phone number

Yes, basically you can put multiple beneficiary ids and try booking, provided all are registered under the same phone number. This is how you do it for multiple beneficiaries:

"BeneficiaryIds": [ "REPLACE_WITH_YOUR_BENEFICIARY_ID_1", "REPLACE_WITH_YOUR_BENEFICIARY_ID_2" ] 
// You'll get the beneficiary ID from Step 4 above. 
// If you have only 1 beneficiary ID then Use it in the <REPLACE_WITH_YOUR_BENEFICIARY_ID_1> section and remove rest like "REPLACE_WITH_YOUR_BENEFICIARY_ID_2" eg. ["1111111111111111"]. 
// If you have multiple beneficiaries for which you want to do booking, added them comma separated eg. ["11111111111111", "22222222222222", "33333333333333"]

If not, they you have to do them separately.

saurabhkrr commented 3 years ago

IMG20210522125413

SRvSaha commented 3 years ago

@saurabhkrr This is happening as probably you are crossing the Rate Limiting Limit they have set for the API.

Change the config's SleepIntervalInMilliseconds to 5000 and try again

SRvSaha commented 3 years ago

@saurabhkrr Check #53