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.
 

ContractItems.xml producing strange results with valid Contract IDs

First post
Author
Artemus Ward
Sebiestor Tribe
Minmatar Republic
#1 - 2015-05-21 06:56:02 UTC
When I query for Contracts, the XML returns a list of contracts:

https://api.eveonline.com/char/Contracts.xml.aspx?keyID=[KEY_ID]&vCode=[V_CODE]&characterID=[CHAR_ID]

Each of the contracts returned has a key of "contractID". This works fine.

Then, I try to query for Contract Items:

https://api.eveonline.com/char/ContractItems.xml.aspx?keyID=[KEY_ID]&vCode=[V_CODE]&characterID=[CHAR_ID]&contractID=[CONTRACT_ID]


Strangely though, although many of the Contract IDs work, SOME of the listed Contract IDs return an error:

[eveapi version="2"]
[currentTime]2015-05-21 06:38:39[/currentTime]
[error code="134"]Invalid or missing contractID.[/error]
[cachedUntil]2015-05-21 18:38:39[/cachedUntil]
[/eveapi]


Any idea what could be causing this error?

The contact ID is present, and is applicable to the character & API key (and the key has permissions), and the value was just given to me in the XML list of contracts, so I can't understand how it could be invalid, especially as some of the IDs work.
Jack Tronic
borkedLabs
#2 - 2015-05-22 20:33:01 UTC  |  Edited by: Jack Tronic
IDs for courier contracts will return that for the ContractItems API.

CCP needs to just return a more clear message.
Captain Thunk
Explode. Now. Please.
Alliance. Now. Please.
#3 - 2015-05-27 09:50:34 UTC
This is a known bug. I spoke to Foxfur about it a year or so ago.

I can't remember the exact specifics offhand, but it's something along the lines of being unable to find the contracts that are available to you properly - the list is fine, but the detail is not. I think it can't see contractIDs that are in your corp, or it might be ones that are in your alliance and available to you - but not according to the detail page.

It's frustrating as it prevents making website tools that details contracts nicely.

I tried engaging CSM members about it to, but they always run and hide.
CCP FoxFour
C C P
C C P Alliance
#4 - 2015-06-03 06:59:16 UTC
If i remember correctly it was due to contracts that were for the alliance or some ****. Will try and find time to look into it again and fix it. No promises/

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.