menu
Channels
# All channels
view-forward
# General
view-forward
# Announcements
view-forward
# Feedback
view-forward
# Guides
view-forward
# I Made This
view-forward
Team

Contact Page: 405 and Syntax Error: Unexpected token < in JSON

August 22, 2019 at 8:19pm

Contact Page: 405 and Syntax Error: Unexpected token < in JSON

August 22, 2019 at 8:19pm
My SES on AWS is setup and able to send test emails but when deployed on AWS using an S3 bucket I am seeing the above errors when attempting to send an email. Any tips?

August 22, 2019 at 8:26pm
Hey Maxwell, have you deployed the server.js file that is exported along with your codebase? In development if you run that (node src/server.js) CRA proxies requests to it (see proxy value in package.json), but depending on your host and deployment setup this needs to be handled differently. Unfortunately Divjoy doesn't do a great job yet when it comes to helping with deployment. We're going to be writing some guides for various hosts as soon as well can. The gist is that you'll need to deploy that to a server or AWS lambda and make sure it's on the same domain via routing or put it on it's own domain like api.mysite.com and make sure it accepts cross domain requests. Sorry if that's confusing. Will prioritize getting some guides up.
Edited
  • reply
  • like

September 19, 2019 at 12:50am
Did you manage to fix it ? Having the same issue with Netlify
  • reply
  • like