question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unprocessable Entity: Received valid, but incompatible JSON input

See original GitHub issue

we 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:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
orlandobrentcommented, May 4, 2015

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”

0reactions
themartoranacommented, May 5, 2015

Good catch. Moving to #35

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found