Giter Club home page Giter Club logo

Comments (7)

WeshGuillaume avatar WeshGuillaume commented on August 16, 2024

Hey @OlivierCuyp !
What version of the wrapper are you currently using ? Is it the last one ?

from mailjet-apiv3-nodejs.

WeshGuillaume avatar WeshGuillaume commented on August 16, 2024

I might have spotted the problem here. Your code works perfectly for me, but I got your same error if I provide invalid credentials. Thanks to have spotted this.

Can you print out the API keys before using them to make sure they are valid ? (Do not show them on this thread obviously ;))

from mailjet-apiv3-nodejs.

WeshGuillaume avatar WeshGuillaume commented on August 16, 2024

The fix is on master, can you check it works for you before I make the release on NPM? The error should now be properly handled.

Guillaume

from mailjet-apiv3-nodejs.

OlivierCuyp avatar OlivierCuyp commented on August 16, 2024

Hi @GuillaumeBadi.

I'll update the package and make the test.
I guess I get a better error message now.
I'll let you know. soon.

from mailjet-apiv3-nodejs.

OlivierCuyp avatar OlivierCuyp commented on August 16, 2024

Ok, I just re-installed the master with : npm i git+ssh://[email protected]:mailjet/mailjet-apiv3-nodejs.git

And running the same script gives me a much better error :

Error { [Error: Unsuccesfull]
  ErrorMessage: 'Unauthorized',
  statusCode: 401,
  response:
   Response {
     domain: null,
     _events: {},
     _eventsCount: 0,
     _maxListeners: undefined,
     res:
      IncomingMessage {
  ...

Just a little typo in the error message : Unsuccesfull >> Unsuccessful ;)

@GuillaumeBadi Just let me know when you release.

from mailjet-apiv3-nodejs.

OlivierCuyp avatar OlivierCuyp commented on August 16, 2024

PS: FYI, I corrected my api key and I got the email.

from mailjet-apiv3-nodejs.

WeshGuillaume avatar WeshGuillaume commented on August 16, 2024

Published on NPM: v3.0.3 :)

from mailjet-apiv3-nodejs.

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.