Closed cseeman closed 4 years ago
For now I am going to go forward with checking the raw response body for \\\"
which seems like the escape character for the quote is itself being escaped which kind of invalidates it and just replace that response body with \"
I've not been able to recreate this issue locally. The JSON parsing works fine even with the double-escaped quotes (which makes it proper JSON). Are you still seeing this issue? And could you post a dump of the installed gems?
Issue Summary
I am adding some sender authentication calls into an application, and have run into an issue working with validating the sender authentication domain. The returned response body is not valid JSON data. I wouldn't even call it valid string data, which it might be according to the API reference, or it should be null. Should the returned validation reason data be parsable?
Steps to Reproduce
Call
SendGrid V3 POST /whitelabel/domains/{domain_id}
with a valid domain id (for my testing I am using 3186093)If the response contains validation issues that have reasons, the text in each reason is broken up so it cannot be parsed. See below response body, on the dkim1 and dkim2 validation results:
Raw response from SendGrid via Ruby library:
Code Snippet
Exception/Log
Technical details: