kartikey54 / VaccineAvailabilityNotifier

534 stars 334 forks source link

TypeError: slot.slots is not iterable #26

Open dev-arpit opened 3 years ago

dev-arpit commented 3 years ago

Great work !! Thanks for this.. I'm getting following error when running on MacOS Catalina. Please help. image

dev-arpit commented 3 years ago

RESOLVED after replacing 'slotDetails' with 'validSlots' in notifier.sendEmail call : image

sid8840 commented 3 years ago

RESOLVED after replacing 'slotDetails' with 'validSlots' in notifier.sendEmail call : image

Did it helped to get mails??

dev-arpit commented 3 years ago

RESOLVED after replacing 'slotDetails' with 'validSlots' in notifier.sendEmail call : image

Did it helped to get mails??

Yes. Emails working fine after the change.

sid8840 commented 3 years ago

can you show your .env file??

ghost commented 3 years ago

It is because of passing stringified slotDetails to the sendEmail function. It is updated in my PR

sid8840 commented 3 years ago

It is because of passing stringified slotDetails to the sendEmail function. It is updated in my PR

RESOLVED after replacing 'slotDetails' with 'validSlots' in notifier.sendEmail call : image

Did it helped to get mails??

Yes. Emails working fine after the change.

enter pin code 457887 age 46

and show me your getting mails in your inbox

i am using your PR this time

ghost commented 3 years ago

image

sid8840 commented 3 years ago

what type of application password have you generated for this purpose?? I have chosen Youtube and windows. it gave me a password that I have applied for.

everything is working fine under the terminal..its the mail part that's not working for me.

ghost commented 3 years ago

The app should be Mail right? The device I chose windows PC

sid8840 commented 3 years ago

is it okay?? https://user-images.githubusercontent.com/83544106/116841370-9d0b4c80-abf6-11eb-939c-e679616fc81c.mp4

The app should be Mail right? The device I chose windows PC

sid8840 commented 3 years ago

okay the working solution is

npm i && pm2 start vaccineNotifier.js --watch now I am getting emails.

thanks