Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EmailJSResponseStatus: Uncaught TypeError: Cannot read properties of null (reading 'status') #39

Closed
mauriciorj opened this issue Nov 1, 2022 · 1 comment

Comments

@mauriciorj
Copy link

I'm using the @emailjs/browse (3.7.0) with react (17.0.2) + typescript (4.6.2).

After I sent an email I'm receiving this error message:

Screen Shot 2022-10-31 at 11 19 59 PM

Screen Shot 2022-10-31 at 11 20 26 PM

The weird part is: the email is being sent!
But my function is not returning either the response or error.

  • I also tried the rest API, but there is another error similar to this one -> #37

const msg = { firstName: values.firstName, email: values.email, message: values.text, subject: values.subject, };


export const SendEmail = (msg) => {
    emailjs
      .send(
        process.env.REACT_APP_SERVICE_ID,
        process.env.REACT_APP_TEMPLATE_ID,
        msg,
        process.env.REACT_APP_PUBLIC_KEY
      )
      .then(
        (response) => {
          console.log(response);
          return response;
        },
        (error) => {
          console.log(error);
          return error;
        }
      );
};
@xr0master
Copy link
Contributor

@mauriciorj Hi, thank you for your report. We have released a new version with a fix.
Your problem is most likely caused by a page reload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants