kartikey54 / VaccineAvailabilityNotifier

535 stars 334 forks source link

Getting error as below #66

Open atishnilakhe opened 3 years ago

atishnilakhe commented 3 years ago

I have been trying to use the tool but not luck yet.

Let me know if I am missing any steps.

image

Note that I did try googling for this error but none of the blog helped to solve it.

sid8840 commented 3 years ago

You are not alone mate!!

atishnilakhe commented 3 years ago

So I was able to get it installed and running on Windows platform instead of Linux however I am not getting emails. I have verified it for pin codes where vaccines are available for specified age by changing the values in .env file.

Not sure where could be the problem.

Here is the status of the program :

image

Not sure why the watching parameter value is showing it as disabled. Should it be enabled? How to change it?

TitusRobyK commented 3 years ago

You have to pass the below headers while invoking the API

let HEADERS = { "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36", 'accept': 'application/json', 'Accept-Language': 'hi_IN' }

aimlandweb commented 3 years ago

once setup simply run node vaccinenotifier.js

pranshukas commented 3 years ago

You have to pass the below headers while invoking the API

let HEADERS = { "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36", 'accept': 'application/json', 'Accept-Language': 'hi_IN' }

I tried including in the header but getting errors. It's showing cannot read property filer of undefined. I thought it may be due to no slots available but when I tried to use some other date in which slots were available then also it's showing the same. Also tried to console.log(sessions) but getting it undefined.

image

Can You explain me what is slots.data.sessions..