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.
 

EVE API and Public CREST discussion

First post First post First post
Author
Laendra
Universalis Imperium
Goonswarm Federation
#101 - 2014-04-23 21:15:17 UTC  |  Edited by: Laendra
it keeps redirecting to the main eveonline.com site

nevermind...

goto http://community.testeveonline.com/support/api-key to create your keys

although that site never comes up...Roll
CCP FoxFour
C C P
C C P Alliance
#102 - 2014-04-23 21:40:17 UTC
Laendra wrote:
it keeps redirecting to the main eveonline.com site

nevermind...

goto http://community.testeveonline.com/support/api-key to create your keys

although that site never comes up...Roll


You need to already have an API key. community on testeveonline.come is not running. Sorry.

@CCP_FoxFour // Technical Designer // Team Tech Co

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

Polarina
EVE University
Ivy League
#103 - 2014-04-23 23:44:30 UTC

Would it be possible to get the dates into ISO format, like the rest of the API does? That is, the YYYY-MM-DD HH:MM:SS format.

Where are my clothes?

Laendra
Universalis Imperium
Goonswarm Federation
#104 - 2014-04-24 02:42:21 UTC
CCP FoxFour wrote:
Laendra wrote:
it keeps redirecting to the main eveonline.com site

nevermind...

goto http://community.testeveonline.com/support/api-key to create your keys

although that site never comes up...Roll


You need to already have an API key. community on testeveonline.come is not running. Sorry.


Will our tranquility keys work?
CCP FoxFour
C C P
C C P Alliance
#105 - 2014-04-24 07:48:06 UTC
Polarina wrote:

Would it be possible to get the dates into ISO format, like the rest of the API does? That is, the YYYY-MM-DD HH:MM:SS format.


They are not! /derp! Well thats dumb dumb of me. Todays a day off here but I was going to go into the office anyways. I will try and see if I can figure out whats up with that. Sorry!

@CCP_FoxFour // Technical Designer // Team Tech Co

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

CCP FoxFour
C C P
C C P Alliance
#106 - 2014-04-24 07:48:46 UTC
Laendra wrote:
CCP FoxFour wrote:
Laendra wrote:
it keeps redirecting to the main eveonline.com site

nevermind...

goto http://community.testeveonline.com/support/api-key to create your keys

although that site never comes up...Roll


You need to already have an API key. community on testeveonline.come is not running. Sorry.


Will our tranquility keys work?


Possibly. Depends when you made them. Give them a try. When TQ gets mirrored to Sisi that includes the API keys.

@CCP_FoxFour // Technical Designer // Team Tech Co

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

CCP FoxFour
C C P
C C P Alliance
#107 - 2014-04-24 09:57:40 UTC
CCP FoxFour wrote:
Polarina wrote:

Would it be possible to get the dates into ISO format, like the rest of the API does? That is, the YYYY-MM-DD HH:MM:SS format.


They are not! /derp! Well thats dumb dumb of me. Todays a day off here but I was going to go into the office anyways. I will try and see if I can figure out whats up with that. Sorry!


OK, update deployed to Sisi. Updated the times in Colonies and Pins. Let me know if there is anything I missed. :)

@CCP_FoxFour // Technical Designer // Team Tech Co

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

CCP FoxFour
C C P
C C P Alliance
#108 - 2014-04-24 14:14:28 UTC
OK, I have a fix for the locations endpoint shitting itself when an invalid ID is supplied. The question is which would you guys prefer.

1) Return the invalid items with blank name, and 0's for X, Y, Z
2) Drop invalid items from the return all together.

Let me know which you think would be better. :)

@CCP_FoxFour // Technical Designer // Team Tech Co

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

Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#109 - 2014-04-24 14:28:15 UTC
CCP FoxFour wrote:
OK, I have a fix for the locations endpoint shitting itself when an invalid ID is supplied. The question is which would you guys prefer.

1) Return the invalid items with blank name, and 0's for X, Y, Z
2) Drop invalid items from the return all together.

Let me know which you think would be better. :)



1 is easier to handle, rather than having to maintain a list of what you asked for, and knocking bits off it to see what's left.

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

CCP FoxFour
C C P
C C P Alliance
#110 - 2014-04-24 14:32:07 UTC
Steve Ronuken wrote:
CCP FoxFour wrote:
OK, I have a fix for the locations endpoint shitting itself when an invalid ID is supplied. The question is which would you guys prefer.

1) Return the invalid items with blank name, and 0's for X, Y, Z
2) Drop invalid items from the return all together.

Let me know which you think would be better. :)



1 is easier to handle, rather than having to maintain a list of what you asked for, and knocking bits off it to see what's left.


This is how I felt... will wait until more people chime in though.

@CCP_FoxFour // Technical Designer // Team Tech Co

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

Peter Powers
Terrorists of Dimensions
#111 - 2014-04-24 14:32:19 UTC
CCP FoxFour wrote:
OK, I have a fix for the locations endpoint shitting itself when an invalid ID is supplied. The question is which would you guys prefer.

1) Return the invalid items with blank name, and 0's for X, Y, Z
2) Drop invalid items from the return all together.

Let me know which you think would be better. :)


2) as a blank name is not a good invalid-indicator, nor is a location of 0,0,0.

Fuzzysteve wrote:
1 is easier to handle, rather than having to maintain a list of what you asked for, and knocking bits off it to see what's left.

you should always check if what you get in reply actually fits what you asked for..

3rdPartyEve.net - your catalogue for 3rd party applications

Laendra
Universalis Imperium
Goonswarm Federation
#112 - 2014-04-24 15:10:22 UTC
CCP FoxFour wrote:
OK, I have a fix for the locations endpoint shitting itself when an invalid ID is supplied. The question is which would you guys prefer.

1) Return the invalid items with blank name, and 0's for X, Y, Z
2) Drop invalid items from the return all together.

Let me know which you think would be better. :)


Do the same thing you do when someone provides an invalid ID for anything else...

Add a new API Error Code in the 100 series, "Invalid **** Id specified", and return that whenever the ID is invalid

or, if you tried to pass an ID to which you do not have access to (such as it belongs to another person/corp's PI)
Add a new API Error Code in the 200 series, "Id does not belong to account"


Laendra
Universalis Imperium
Goonswarm Federation
#113 - 2014-04-24 15:14:59 UTC
CCP FoxFour wrote:
Laendra wrote:
CCP FoxFour wrote:
Laendra wrote:
it keeps redirecting to the main eveonline.com site

nevermind...

goto http://community.testeveonline.com/support/api-key to create your keys

although that site never comes up...Roll


You need to already have an API key. community on testeveonline.come is not running. Sorry.


Will our tranquility keys work?


Possibly. Depends when you made them. Give them a try. When TQ gets mirrored to Sisi that includes the API keys.


Looks like they expire them when the mirror is done...I tried a non-expiring key, and it told me it was expired.
CCP FoxFour
C C P
C C P Alliance
#114 - 2014-04-24 15:36:22 UTC
Laendra wrote:
CCP FoxFour wrote:
Laendra wrote:
CCP FoxFour wrote:
Laendra wrote:
it keeps redirecting to the main eveonline.com site

nevermind...

goto http://community.testeveonline.com/support/api-key to create your keys

although that site never comes up...Roll


You need to already have an API key. community on testeveonline.come is not running. Sorry.


Will our tranquility keys work?


Possibly. Depends when you made them. Give them a try. When TQ gets mirrored to Sisi that includes the API keys.


Looks like they expire them when the mirror is done...I tried a non-expiring key, and it told me it was expired.


****... sorry. :(

@CCP_FoxFour // Technical Designer // Team Tech Co

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

CCP FoxFour
C C P
C C P Alliance
#115 - 2014-04-24 15:37:15 UTC
Laendra wrote:
CCP FoxFour wrote:
OK, I have a fix for the locations endpoint shitting itself when an invalid ID is supplied. The question is which would you guys prefer.

1) Return the invalid items with blank name, and 0's for X, Y, Z
2) Drop invalid items from the return all together.

Let me know which you think would be better. :)


Do the same thing you do when someone provides an invalid ID for anything else...

Add a new API Error Code in the 100 series, "Invalid **** Id specified", and return that whenever the ID is invalid

or, if you tried to pass an ID to which you do not have access to (such as it belongs to another person/corp's PI)
Add a new API Error Code in the 200 series, "Id does not belong to account"




I don't think our error handling really supports saying WHAT failed.

@CCP_FoxFour // Technical Designer // Team Tech Co

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

Laendra
Universalis Imperium
Goonswarm Federation
#116 - 2014-04-24 16:16:50 UTC
CCP FoxFour wrote:
Laendra wrote:
CCP FoxFour wrote:
OK, I have a fix for the locations endpoint shitting itself when an invalid ID is supplied. The question is which would you guys prefer.

1) Return the invalid items with blank name, and 0's for X, Y, Z
2) Drop invalid items from the return all together.

Let me know which you think would be better. :)


Do the same thing you do when someone provides an invalid ID for anything else...

Add a new API Error Code in the 100 series, "Invalid **** Id specified", and return that whenever the ID is invalid

or, if you tried to pass an ID to which you do not have access to (such as it belongs to another person/corp's PI)
Add a new API Error Code in the 200 series, "Id does not belong to account"




I don't think our error handling really supports saying WHAT failed.


errorCode="107" errorText="Invalid beforeRefID provided."
errorCode="213" errorText="Character must have Factory Manager role."
Laendra
Universalis Imperium
Goonswarm Federation
#117 - 2014-04-24 16:22:24 UTC
CCP FoxFour wrote:
Laendra wrote:


Looks like they expire them when the mirror is done...I tried a non-expiring key, and it told me it was expired.


****... sorry. :(



So hard to test without it :)
CCP FoxFour
C C P
C C P Alliance
#118 - 2014-04-24 16:36:13 UTC
Laendra wrote:
CCP FoxFour wrote:
Laendra wrote:
CCP FoxFour wrote:
OK, I have a fix for the locations endpoint shitting itself when an invalid ID is supplied. The question is which would you guys prefer.

1) Return the invalid items with blank name, and 0's for X, Y, Z
2) Drop invalid items from the return all together.

Let me know which you think would be better. :)


Do the same thing you do when someone provides an invalid ID for anything else...

Add a new API Error Code in the 100 series, "Invalid **** Id specified", and return that whenever the ID is invalid

or, if you tried to pass an ID to which you do not have access to (such as it belongs to another person/corp's PI)
Add a new API Error Code in the 200 series, "Id does not belong to account"




I don't think our error handling really supports saying WHAT failed.


errorCode="107" errorText="Invalid beforeRefID provided."
errorCode="213" errorText="Character must have Factory Manager role."


Yea, but not with what ID failed. Thats the problem, if people don't know what ID failed they have to keep retrying different chunks until they find it.

@CCP_FoxFour // Technical Designer // Team Tech Co

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

Querns
Science and Trade Institute
Caldari State
#119 - 2014-04-24 16:37:57 UTC
CCP FoxFour wrote:
OK, I have a fix for the locations endpoint shitting itself when an invalid ID is supplied. The question is which would you guys prefer.

1) Return the invalid items with blank name, and 0's for X, Y, Z
2) Drop invalid items from the return all together.

Let me know which you think would be better. :)

#1 is good, but I'd like to requst a possible augment -- could the row in question also have an XML attribute that explicitly marks the row as invalid?

e.g.:

< row itemID="123456789" x="0" y="0" z="0" invalid="true" />

That being said, I don't know if tacking in extra attributes like that has the potential to break existing third-party code. Surely, any sane implementation would be able to swallow it, but I'd ask anyone paying attention to weigh in and let us know if it did.

In any case, it's just fluff; 0,0,0 is detectable and works.

This post was crafted by the wormhole expert of the Goonswarm Economic Warfare Cabal, the foremost authority on Eve: Online economics and gameplay.

Lors Dornick
Kallisti Industries
#120 - 2014-04-24 17:04:24 UTC  |  Edited by: Lors Dornick
Querns wrote:


In any case, it's just fluff; 0,0,0 is detectable and works.

While I agree that it's fluff, it also raises some rather hairy and uncomfortable memories of unexpected and unexplainable errors crashes caused by Ye Olde "let's indicate error by returning a value that never ever will be valid (at least not in the current design and according to what we know now)".

Some explicit "this line is false/failed" can't be that much more expensive and far safer.

And besides, the latter is "Good Design", instead of "it effing works doesn't it?" ;)

CCP Greyscale: As to starbases, we agree it's pretty terrible, but we don't want to delay the entire release just for this one factor.