RESTful knowledge exchange
Post Reply
benyoung
Service Provider
Posts: 66
Liked: 14 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Update 4 broke my integration library (for POST/PUT) - Node [root] does not exist

Post by benyoung » Jan 21, 2019 12:14 am

After testing Update 4 with the integration library I built in .NET which uses RestSharp for the http call side of things (but suspect insert library / client X may also behave in a similar way) I have discovered that if a JSON mime type is specified ANYWHERE in the accept header that your calls will yield an http 400 bad request for POST/PUT requests.

If you are getting any Http 400 Bad Requests specifically with the error Node [root] does not exist then it's worth checking to see you are not sending anything other than xml mime types.

Interestingly the update 3 completely ignored this, you can actually specify application/somethingMadeUp and it just returns xml, looks like they are starting to support JSON which is neat at least some initial tests on some of the GET requests returns a JSON version.

If you want to read a more detailed rundown then you can find a writeup here https://benyoung.blog/node-root-does-no ... -update-4/

Hopefully that saves some others a bunch of time!

v.Eremin
Product Manager
Posts: 15764
Liked: 1240 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Update 4 broke my integration library (for POST/PUT) - Node [root] does not exist

Post by v.Eremin » Jan 21, 2019 2:18 pm

Correct, starting from Update 4 EM RESTful APIs support both: XML and JSON. Thanks!

benyoung
Service Provider
Posts: 66
Liked: 14 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: Update 4 broke my integration library (for POST/PUT) - Node [root] does not exist

Post by benyoung » Jan 21, 2019 11:04 pm 1 person likes this post

I like it! Just tried the edits via json... good work team.

https://benyoung.blog/trying-the-new-js ... -update-4/

v.Eremin
Product Manager
Posts: 15764
Liked: 1240 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Update 4 broke my integration library (for POST/PUT) - Node [root] does not exist

Post by v.Eremin » Jan 22, 2019 11:39 am

You're welcome. Passed your feedback to the responsible team already; appreciated!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests