Playground generate a CURL request with missing required headers
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2017 01:00 AM
When running Repository.Query command on Playground it works properly. Then I was playing with CURL request generated at Playground CURL Request UI tab it failed.
Returning a really unhelpful message
{"entity-type":"exception","code":"java.lang.NullPointerException","status":500,"message":null}
It took me a while to figure out the issue and it ended up being the lack of Content-type header.
Adding -H "Content-Type: application/json"
fixed and provided the proper result.
0 REPLIES 0
