Unprocessable Entity: Received valid, but incompatible JSON input
See original GitHub issuewe always get this error but the email was successful.
lib.postmark.core.PMMailUnprocessableEntityException: 'Unprocessable Entity: Received valid, but incompatible JSON input.'
this is the sample output when I printed after self.to_json_message was executed.
{'From': 'support@example.com', 'HtmlBody': 'Reports Sent (v4): 1', 'ReplyTo': 'sent_reports_report@example.com', 'TextBody': 'Reports Sent (v4): 1', 'To': ['admin1@example.com', 'admin2@gmail.com', 'admin3@example.com'], 'Subject': 'Reports Sent (v4): 1'}
hope you can help… thanks.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
422 Unprocessable Entity - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 422 Unprocessable Entity response status code indicates that the server understands the content type ...
Read more >422 Unprocessable Entity Explained - KeyCDN Support
A 422 status code occurs when a request is well-formed, however, due to semantic errors it is unable to be processed.
Read more >400 vs 422 response to POST of data - Stack Overflow
Sending invalid fields will result in a 422 Unprocessable Entity response: ... the request is syntactically valid because it's valid JSON syntax, but...
Read more >What is the format to provide JSON input in cURL(FileMaker)?
I am trying to use cURL in FileMaker for this purpose.Data for the CURL has been provided with the help of JSON script....
Read more >HTTP Status Codes For Invalid Data: 400 vs. 422 - Ben Nadel
The 422 (Unprocessable Entity) status code means the server ... For years, I used nothing but GET and POST and I was able...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was having the same problem earlier today, and it turned out to be a simple mistake on my part. You need to pass in a string of comma separated email addresses for “To”, not a List of them. ‘To’: “admin1@example.com,admin2@gmail.com,admin3@example.com”
Good catch. Moving to #35