pallupz / covid-vaccine-booking

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

Unable to Validate OTP #203

Closed rupamcroy closed 3 years ago

rupamcroy commented 3 years ago

it gets stuck after entering otp. and receive a end point timeout error.

gpradeepjain commented 3 years ago

https://github.com/pallupz/covid-vaccine-booking/issues/199

rohitrs1983 commented 3 years ago

covid-vaccine-slot-booking.py

base_request_header = {

    #    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36',
    #}
    base_request_header = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 Edg/90.0.818.66', 'origin': 'https://selfregistration.cowin.gov.in', 'referer': 'https://selfregistration.cowin.gov.in/'
    }
akuma2519 commented 3 years ago

Atleast for me this fix is working well from last 30mins.. @pallupz @sam-mitkayal

Yugalmodi commented 3 years ago

working now, I deleted old code and applied the above solution in fresh code.

gitdheeraj commented 3 years ago

hi @Yugalmodi @akuma2519 i have no idea where to edit this code ? Please help me with this as my booking is on 2:30pm. Please help :(

Yugalmodi commented 3 years ago

hi @Yugalmodi @akuma2519 i have no idea where to edit this code ? Please help me with this as my booking is on 2:30pm. Please help :(

Hey @gitdheeraj,

Please update the suggested code (https://github.com/pallupz/covid-vaccine-booking/issues/203#issuecomment-847502925) in covid-vaccine-slot-booking.py file in line number 23 (https://github.com/pallupz/covid-vaccine-booking/blob/45fb7c5266aff799732eed7378e6a5e511d68a11/src/covid-vaccine-slot-booking.py#L23)

gitdheeraj commented 3 years ago

@Yugalmodi Thank you :)

pallupz commented 3 years ago

it should be fixed in the latest code