You need to sign in to do that
Don't have an account?
Douglas Molina
"case-sensitive" JSON Error on Trailhead - Data Integration Specialist Superbadge
Hi!
I'm trying to implement the REST callout of this superbadge, but I'm receiving the error 400 "Bad Request. Your JSON does not contain the correct case-sensitive keys. Please reference the sample JSON."
I've already checked each of the keys case, even copied the exact same sample from trailhead, but this message keeps coming. Does anyone have a clue of what could be the problem here?
Here's what I'm trying: (the same behavior happens on both Apex/Postman)
Request/Response:
Headers:
Auth:
Thank you!
I'm trying to implement the REST callout of this superbadge, but I'm receiving the error 400 "Bad Request. Your JSON does not contain the correct case-sensitive keys. Please reference the sample JSON."
I've already checked each of the keys case, even copied the exact same sample from trailhead, but this message keeps coming. Does anyone have a clue of what could be the problem here?
Here's what I'm trying: (the same behavior happens on both Apex/Postman)
Request/Response:
Headers:
Auth:
Thank you!
Try this ==> Content-Type: application/json;charset=UTF-8
All Answers
Try this ==> Content-Type: application/json;charset=UTF-8
Recommend reviewing https://salesforce.stackexchange.com/questions/158195/trailhead-http-post-issue-json-does-not-contain-correct-case-sensitive-keys/224089
Trailhead Help (https://trailhead.salesforce.com/en/help?support=home)can provide assistance for situations where Trailhead does not appear to be functioning correctly. You can reach out to them if this is the case.
If this information helps, please mark the answer as best. Thank you
The problem with that message was indeed the wrong content type. But after that, I only received status code 500 with no messages.
Today I resend that same request, with no changes at all, and It just worked, returning 201 and the corresponding success message.
Thanks!