REST API knowledge exchange
Post Reply
benyoung
Veeam Software
Posts: 149
Liked: 47 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 »

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!
veremin
Product Manager
Posts: 20406
Liked: 2298 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 veremin »

Correct, starting from Update 4 EM RESTful APIs support both: XML and JSON. Thanks!
benyoung
Veeam Software
Posts: 149
Liked: 47 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 » 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/
veremin
Product Manager
Posts: 20406
Liked: 2298 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 veremin »

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 1 guest