Contact Page: 405 and Syntax Error: Unexpected token < in JSONAugust 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
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.comand make sure it accepts cross domain requests. Sorry if that's confusing. Will prioritize getting some guides up.
September 19, 2019 at 12:50am