Code Monkey home page Code Monkey logo

Comments (5)

shubhambodhe avatar shubhambodhe commented on July 20, 2024 1

Can you try with the same sender email address that you tried to create an account with the mailgun. I had this issue and it was resolved when I made that change.

from us-visa-appointment-notifier.

zehao-ba avatar zehao-ba commented on July 20, 2024 1

Hello, i am having this error when i run 'npm start':

Error: Parameter "key" is required
at new _ (/Users/xxx/Desktop/US-visa-appointment-notifier-main/node_modules/mailgun.js/mailgun.node.js:2:32862)
at e.client (/Users/xxx/Desktop/US-visa-appointment-notifier-main/node_modules/mailgun.js/mailgun.node.js:2:58416)
at Object. (/Users/xxx/Desktop/US-visa-appointment-notifier-main/utils.js:6:20)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object. (/Users/xxx/Desktop/US-visa-appointment-notifier-main/index.js:5:37)

My env is setting as:
NOTIFY_EMAILS='[email protected]'
MAILGUN_USERNAME='[email protected]'
MAILGUN_DOMAIN='sandboxaxxxx.mailgun.org'
MAILGUN_API_KEY='pubkey-xxxx'

from us-visa-appointment-notifier.

theoomoregbee avatar theoomoregbee commented on July 20, 2024

or you can add a test email address in your mailgun sanbox dashboard - see https://help.mailgun.com/hc/en-us/articles/217531258-Authorized-Recipients

from us-visa-appointment-notifier.

theoomoregbee avatar theoomoregbee commented on July 20, 2024

updated the readme FAQ with this issue

from us-visa-appointment-notifier.

jasdeepece7 avatar jasdeepece7 commented on July 20, 2024

@theoomoregbee Getting the below error while trying to run the script. Please check and suggest what is wrong and needs to be fixed to make it work:-
=====>>> Step: sending an email to schedule for 02-01-2025
[Error: Unauthorized] { status: 401, details: 'Forbidden' }

I have update the .env file and below values i changed as per my mailgun account:-
NOTIFY_EMAILS='XXXXXXXXXX'
MAILGUN_USERNAME='XXXXXXXXXXX'
MAILGUN_DOMAIN='sandboxdXXXXXXXXXXXXXXXXXXXX.mailgun.org'
MAILGUN_API_KEY='pubkey-XXXXXXXXXXXXXX'

Also, please confirm that for the MAILGUN_USERNAME we need to add our email with which we signedup for mailgun and for MAILGUN_API_KEY we need to add pubkey value from our accounts API Keys section, as i didn't find any value starting only with key-xxxxxx

from us-visa-appointment-notifier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.