Open rohitkolapkar opened 3 years ago
Got same error, I then gave proper headers... Got it resolved
@catrawalkar can you please provide your headers you are passing in request?
@Sumit9896926322 explicitly provide some other User-Agent in headers. It worked for me. I think, axios user agent is blocked by cloudfront.
@rohitkolapkar thanks,it worked for me.
@rohitkolapkar thanks,it worked for me.
can you provide steps that you have modified to get it worked?
@sid8840 Find the configuration for axios call. In headers, add 'User-Agent':'search user agents on google and replace this value'.
@rohitkolapkar some of my requests failed with unauthenticated access can you explain why?
'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', add this in vaccineNotifier.js in headers
This works when I run it on my local machine but throws an error when I use repl.it. Any idea why?
Got same error, I then gave proper headers... Got it resolved
I am getting same error tried requests it also didn't work. Can you give the headers . I was making a CLI tool for the same. API
I passed these headers and it worked. 'Host': 'cdn-api.co-vin.in', 'User-Agent': 'PostmanRuntime/7.26.8'
THank You so Much it worked !!
Headers will work.
Just to be a good citizen; don't pull the 10 days continuously 1 day is enough to get the notification or explicit check the date and set the corn job for 5 minutes or so, else they might block your IP considering a denial-of-service (DDoS) attack.
Vaccine availability checker started.
RESPONSE DATA
RESPONSE STATUS
RESPONSE HEADERS