covid-vaccine-booking icon indicating copy to clipboard operation
covid-vaccine-booking copied to clipboard

message": "Endpoint request timed out

Open Jaypanchal1401 opened this issue 3 years ago • 5 comments

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 avatar May 25 '21 13:05 Jaypanchal1401

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

Jaypanchal1401 avatar May 25 '21 13:05 Jaypanchal1401

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

khushali-shah94 avatar May 25 '21 14:05 khushali-shah94

Thanks it worked

sandeepduppalli avatar May 25 '21 15:05 sandeepduppalli

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

riya2305 avatar May 26 '21 14:05 riya2305

@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'
    }

pritamvkulkarni avatar Jun 05 '21 09:06 pritamvkulkarni