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

message": "Endpoint request timed out #214

Open Jaypanchal1401 opened 3 years ago

Jaypanchal1401 commented 3 years ago

C:\temp\covid-vaccine-booking\covid-vaccine-booking-main>python src\covid-vaccine-slot-booking.py Running Script Enter the registered mobile number: 8160190825 Successfully requested OTP for mobile number 8160190825 at 2021-05-25 19:14:39.448773.. Enter OTP (If this takes more than 2 minutes, press Enter to retry): 507115 Validating OTP.. Unable to Validate OTP Response: {"message": "Endpoint request timed out"} Retry with 8160190825 ? (y/n Default y):

Jaypanchal1401 commented 3 years ago

this is new issue for this is not validating the otp in server

khushali-shah94 commented 3 years ago

After adding origin into request header it works. !!! covid-vaccine-slot-booking.py - Line - 24. Add - 'origin': 'https://selfregistration.cowin.gov.in'

sandeepduppalli commented 3 years ago

Thanks it worked

riya2305 commented 3 years ago

After adding origin into request header it works. !!! covid-vaccine-slot-booking.py - Line - 24. Add - 'origin': 'https://selfregistration.cowin.gov.in'

how to do that

pritamvkulkarni commented 3 years ago

@riya2305 ,Change the base_request_header on covid-vaccine-slot-booking.py - Line - 24. to :

    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',
        'origin': 'https://selfregistration.cowin.gov.in'
    }