Comments (10)
I think it might potentially be that you're using the wrong http method? I've just been able to POST
successfully to your endpoint, are you perhaps doing a GET
instead? That would tie in with the missing authentication token error as there's no GET
route.
from formplug.
Hi Chris, that error is from API Gateway and is usually returned when you're using the wrong URL or one that doesn't exit.
from formplug.
Hi Daniel, thanks. I've checked the url (https://d4o3vwxlsg.execute-api.eu-west-1.amazonaws.com/prd/?format=json) and copy/pasted the endpoint. Unfortunatly the problem persists. Tried to run "serverless deploy" again but it returns same endpoint. Probably because nothing changed.
from formplug.
Found some more info here: https://forums.aws.amazon.com/thread.jspa?threadID=192977, will try some suggested solutions as url is correct for as far as I can see
from formplug.
Yes that was the issue. I'm now facing an HTTP 422 error from cloudfront :s
I've never heard of 422 so have to google what's going wrong there.
from formplug.
Ah lol found it: {"statusCode":422,"message":"Please provide a recipient in '_to' field"}
from formplug.
Good to hear you've fixed the issue, closing.
from formplug.
@danielireson is it an idea to also add an OPTIONS method to the API? I've added this myself now with a mock behind it but it does return the correct CORS headers. My ajax library (Axios) sends an OPTIONS request as part of the preflight for the ajax request. I know this can also be solved in Axios itself by changing the Content-Type headers but adding it to the API would make Formplug work out of the box in more situations.
from formplug.
Hmmmmm, also unable to fix error 422: {"statusCode":422,"message":"Please provide a recipient in '_to' field"}
_to field is filled, tried both encrypted an unencrypted:
firstName: saddas
lastName: asdsda
email: asasdds
phone: asdadsads
message: asdasdasasd
_honeypot:
_to: [email protected]
Any suggestions how to debug more?
from formplug.
Never mind got it fixed :)
from formplug.
Related Issues (20)
- Checkboxes ignored HOT 2
- Multiple Email Addresses HOT 5
- Internal Server Error HOT 5
- Feature Request: Support for ReplyToAddress HOT 2
- Feature Request: Mailchimp integration HOT 1
- Feature Request : Conditionally switch FORM_Arn to route emails HOT 1
- _subject as an email subject? HOT 1
- google reCAPTCHA HOT 1
- How to limit form submission HOT 1
- Beginner Question HOT 1
- Attachments via S3? HOT 1
- Invalid _to recepient HOT 1
- Not processing emails that aren't whitelisted HOT 7
- Does not work with current lambda and won't deploy HOT 1
- reCaptcha to hCaptcha
- IP addresses and `localhost` are rejected as invalid in `_redirect`
- feature request: HTML-Mail
- Using other serverless provider
- Missing required request parameters: [format] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formplug.