Skip to content
This repository has been archived by the owner on Jun 12, 2021. It is now read-only.

OTP Is Not Getting Validated! #12

Closed
Aviral-Garg opened this issue May 25, 2021 · 3 comments
Closed

OTP Is Not Getting Validated! #12

Aviral-Garg opened this issue May 25, 2021 · 3 comments

Comments

@Aviral-Garg
Copy link

Aviral-Garg commented May 25, 2021

OTP is not getting Validated.
Yesterday, It was working fine, But today it is always showing OTP not validated.
Output ::L


Running VacCowin...
Enter the Registered Mobile Number: **********
Successfully Requested OTP for the Mobile Number ********** at 2021-05-25 11:57:12.434363..
Enter OTP (If you don't recieve OTP in 2 minutes, Press Enter to Retry): ******
Validating OTP. Please Wait...
Unable to Validate OTP...
Response: {"message": "Endpoint request timed out"}
Want to Retry with the ********** ? (y/n Default y): y
Successfully Requested OTP for the Mobile Number ********** at 2021-05-25 12:01:14.469154..
Enter OTP (If you don't recieve OTP in 2 minutes, Press Enter to Retry): ******
Validating OTP. Please Wait...
Unable to Validate OTP...
Response: {"message": "Endpoint request timed out"}
Want to Retry with the ********** ? (y/n Default y):


@Anwit
Copy link

Anwit commented May 25, 2021

They added additional verification it seems. Add origin and referer to the request header

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

@Aviral-Garg
Copy link
Author

They added additional verification it seems. Add origin and referer to the request header

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

Thanks, It worked Now😊

@dhhruv
Copy link
Owner

dhhruv commented May 25, 2021

Thanks @Anwit for resolving this issue. Appreciate that.

@dhhruv dhhruv closed this as completed May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants