Author Posts

January 1, 2012 at 12:00 am

by myvryn at 2013-01-31 17:38:52

Hello. I've got an API that I'm trying to test. The API returns specific comments on errors.

Example:

distance.out.of.range

When querying the API in Chrome or Firefox, I see this XML.
However, when querying with IE or with Powershell (both WebClient and WebRequest), I'm only able to see the "400" exception. I can't find the XML drilling down into the exception.
Handling the exception with a try/catch is fine, but I'm missing out on understanding the specifics of the failed query. has anyone run into this before?

Thanks,

by DonJ at 2013-01-31 17:56:47

It's just how the software is handling it. Not sure there's much you can do, but your deep into a dev topic. You might get more expert help on this at StackOverflow.com. You're really dealing with fairly raw .NET, and there's a ton of folks there who do that. Sorry I don't know more myself!

by myvryn at 2013-02-01 07:29:50

Thanks for replying, at least. If I find an answer, I'll find the appropriate forum here and post about it.