Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

message": "Endpoint request timed out #214

Open
Jaypanchal1401 opened this issue May 25, 2021 · 5 comments
Open

message": "Endpoint request timed out #214

Jaypanchal1401 opened this issue May 25, 2021 · 5 comments

Comments

@Jaypanchal1401
Copy link

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
Copy link
Author

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

@khushali-shah94
Copy link

khushali-shah94 commented May 25, 2021

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

@sandeepduppalli
Copy link

Thanks it worked

@riya2305
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants