These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Unexpected API Error Message "[NullReferenceException]: ..."

Author
BigSako
Aliastra
Gallente Federation
#1 - 2015-03-15 10:09:47 UTC
When quering APIKeyInfo for a corporation api key, I get the following result:
http://pastebin.com/v2j2hafa

Obviously this is somehow not valid XML, and even if the parser manages to parse it, it shows that there is an error.
I blacked out irrelevant infos for public.

What's causing this?
Dragonaire
Here there be Dragons
#2 - 2015-03-15 14:37:20 UTC
Something in the API server is broke and their code doesn't properly catch the exception looks like Blink. Usually temporary problem but things like that are why I validate the XML with XSD before trying to work with it in Yapeal. If you are getting a lot of these and it doesn't stop after a few hours I'd bug report it. Might not hurt to do that anyway since CCP FoxFour probably should see about tracking down where the exception is escaping so third parties stop seeing their dirty laundry instead of one of the normal XML errors Blink

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

BigSako
Aliastra
Gallente Federation
#3 - 2015-03-16 10:23:49 UTC
You are right, though I was hopeing for more feedback from the community experiencing similar problems. Bug reports are one thing, but a collection of people having the same problem might get a lot more attention...
BigSako
Aliastra
Gallente Federation
#4 - 2015-03-20 09:58:36 UTC  |  Edited by: BigSako
Happening again on members api...
e.g.:
http://pastebin.com/WfrR5RGa

also happening on corp api:
http://pastebin.com/WQ2wE6PE
Hel O'Ween
Men On A Mission
#5 - 2015-03-20 14:54:08 UTC
What verb are you using for your query? POST or GET?

If you're using GET currenty, try POST instead and see if that might help. See this thread: https://forums.eveonline.com/default.aspx?g=posts&m=5585880#post5585880

EVEWalletAware - an offline wallet manager.

BigSako
Aliastra
Gallente Federation
#6 - 2015-03-20 15:29:39 UTC
I am indeed using GET requests. Thank you for this information, maybe this will resolve some issues.
salacious necrosis
Garoun Investment Bank
Gallente Federation
#7 - 2015-03-20 15:54:02 UTC
I'm starting to see this as well, very random. I'd like to see some dev confirmation on GET vs. POST. Normally that should only depend on the size of arguments being sent, unless something is seriously broken.

Use EveKit ! - Tools for EVE Online 3rd party development

GeekWarrior
S0utherN Comfort
#8 - 2015-03-21 03:43:35 UTC  |  Edited by: GeekWarrior
Glad to see I'm not alone: http://pastebin.com/siPv2zyq

This does not always occur but when pulling many keys it adds up According to my error logs this just started happening almost immediately on the 19th: http://i.imgur.com/FIE7Lpi.png
BigSako
Aliastra
Gallente Federation
#9 - 2015-03-21 09:32:57 UTC
Pretty sure we won't get an official reply at the moment due to Fanfest.

But thanks for you guys also reporting this!
Hel O'Ween
Men On A Mission
#10 - 2015-03-21 12:44:51 UTC
salacious necrosis wrote:
I'd like to see some dev confirmation on GET vs. POST.


All I can say is that since the invention of the XML API, POST has always been the preferred method. GET is for quick browser test (i.e. is my constructed URL OK?). Once you've got it working, use POST.

Since it's been a while since the early API days (2007) when that topic was discussed here, I only can refer you to i.e. http://wiki.eve-id.net/APIv2_Page_Index as a source:
Quote:

Data requiring authentication is retrieved by supplying certain arguments to the HTTP request as POST (preferred) or GET data.

EVEWalletAware - an offline wallet manager.