Open Jaypanchal1401 opened 3 years ago
this is new issue for this is not validating the otp in server
After adding origin
into request header it works. !!!
covid-vaccine-slot-booking.py
- Line - 24.
Add - 'origin': 'https://selfregistration.cowin.gov.in'
Thanks it worked
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 ,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'
}
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):