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.
123Next page
 

EvE XML API - Problems since yesterday morning

First post
Author
Huetchen Hemah
International Defense and Supply Ltd.
Sandbaggers United
#1 - 2017-01-25 12:24:35 UTC  |  Edited by: Huetchen Hemah
hey guys,
i have some problems with the eve xml api for the last 2 days.
until yesterday morning my website (php sites) works fine but now the requests stucks or i get an error message (the xml seems to be broken) or my php script runs into the script timeout.
sometims i get up to ~50 successfull requests, sometimes ~150
if i try a single request in my browser, its allways okay

i use a delay between my request to obey the limit of 30 requests per second (i wait 75 milliseconds between each request)

apps like evedroid seems to work like always without any problems

what could be the reason of my problem? is the delay to short? perhaps its a problem of my webserver (but it works fine on my webserver the last 9 months)
any ideas? :/

fly safe
H. Hemah
Inactive Seller
Hedion University
Amarr Empire
#2 - 2017-01-25 12:43:23 UTC
Is not yours, i have very similar problem getting broken results, and too my script work well some months before yesterday.

All character bazaar done. Finally 39 pilot and 3 can be killed later. This account will be used only for forum interaction, fly safe.

Huetchen Hemah
International Defense and Supply Ltd.
Sandbaggers United
#3 - 2017-01-25 15:28:19 UTC
sometimes i get this error message (i replace all personal information)

Warning: simplexml_load_file(): https://api.eveonline.com/char/PlanetaryRoutes.xml.aspx?keyID=11&vCode=11&characterID=11&planetid=1:26: parser error : Extra content at the end of the document in /home/pi.php on line 983

Warning: simplexml_load_file(): < /eveapi>< ! DOCTYPE html> in /home/pi.php on line 983

Warning: simplexml_load_file(): ^ in /home/pi.php on line 983

Warning: Invalid argument supplied for foreach() in /home/pi.php on line 988
FlexiusVII
Aliastra
Gallente Federation
#4 - 2017-01-25 15:54:43 UTC  |  Edited by: FlexiusVII
Same problems: xml errors, scripts hanging, etc. Switched to curl, no problems atm.

Practice makes perfect.

Inactive Seller
Hedion University
Amarr Empire
#5 - 2017-01-25 16:03:37 UTC
I am using curl to save the xml raw data in my server, and get problem with that.

All character bazaar done. Finally 39 pilot and 3 can be killed later. This account will be used only for forum interaction, fly safe.

FlexiusVII
Aliastra
Gallente Federation
#6 - 2017-01-25 16:11:28 UTC  |  Edited by: FlexiusVII
Api errors are not a problem for me, since thrown exceptions will force script to retry several times (all those 'illegal request' thingies). The real problem using file was script hanging, lasting up to 10 minutes for a single member (backtracing showed something very weird).

Practice makes perfect.

Inactive Seller
Hedion University
Amarr Empire
#7 - 2017-01-25 16:21:56 UTC
I have too the hangs..

All character bazaar done. Finally 39 pilot and 3 can be killed later. This account will be used only for forum interaction, fly safe.

Huetchen Hemah
International Defense and Supply Ltd.
Sandbaggers United
#8 - 2017-01-25 16:25:03 UTC
FlexiusVII wrote:
Api errors are not a problem for me, since thrown exceptions will force script to retry several times (all those 'illegal request' thingies). The real problem using file was script hanging, lasting up to 10 minutes for a single member (backtracing showed something very weird).

can u post a little example of ur code to retrieve data with curl?

perhaps i switch to that, but its a lot of work to change all of my php scripts :/
Inactive Seller
Hedion University
Amarr Empire
#9 - 2017-01-25 16:31:53 UTC
Maybe them fix something now, my scipt run some moment ago 26+42 * 4 Curl request and no one simple error, first time in the last 24 hours.

26 accounts aprox
42 characters, 4 request, (char, queue, industry and assets)

All character bazaar done. Finally 39 pilot and 3 can be killed later. This account will be used only for forum interaction, fly safe.

FlexiusVII
Aliastra
Gallente Federation
#10 - 2017-01-25 16:34:56 UTC
Huetchen Hemah wrote:
FlexiusVII wrote:
Api errors are not a problem for me, since thrown exceptions will force script to retry several times (all those 'illegal request' thingies). The real problem using file was script hanging, lasting up to 10 minutes for a single member (backtracing showed something very weird).

can u post a little example of ur code to retrieve data with curl?

perhaps i switch to that, but its a lot of work to change all of my php scripts :/


I use PHEAL. You should not have any problems looking it up.

Practice makes perfect.

Huetchen Hemah
International Defense and Supply Ltd.
Sandbaggers United
#11 - 2017-01-26 08:29:06 UTC
FlexiusVII wrote:
Huetchen Hemah wrote:
FlexiusVII wrote:
Api errors are not a problem for me, since thrown exceptions will force script to retry several times (all those 'illegal request' thingies). The real problem using file was script hanging, lasting up to 10 minutes for a single member (backtracing showed something very weird).

can u post a little example of ur code to retrieve data with curl?

perhaps i switch to that, but its a lot of work to change all of my php scripts :/


I use PHEAL. You should not have any problems looking it up.

thx for ur help
Whitney Aubaris
AWOLGamers
#12 - 2017-01-26 13:03:01 UTC
Inactive Seller wrote:
I am using curl to save the xml raw data in my server, and get problem with that.

Any chance the data is being dumped into a MySQL database?
Inactive Seller
Hedion University
Amarr Empire
#13 - 2017-01-26 13:11:06 UTC
Yes i save in a database but previous i get the data, save to a file, and in a second step "eat" the file get via curl in the mysql database.

The problem is in their side because many of us having the same problems, and if the script is not altered in many months, is a change in their side.

By the way i can refresh via one account and via all accounts, because yesterday i got a sucessfull all accounts approach, not in a hurry for run it again, running instead one account when needed.

All character bazaar done. Finally 39 pilot and 3 can be killed later. This account will be used only for forum interaction, fly safe.

Whitney Aubaris
AWOLGamers
#14 - 2017-01-26 14:18:49 UTC
Inactive Seller wrote:
Yes i save in a database but previous i get the data, save to a file, and in a second step "eat" the file get via curl in the mysql database.

The problem is in their side because many of us having the same problems, and if the script is not altered in many months, is a change in their side.

By the way i can refresh via one account and via all accounts, because yesterday i got a sucessfull all accounts approach, not in a hurry for run it again, running instead one account when needed.

Can you post your code that creates the file?
lost packet
Alpha Flight
Sev3rance
#15 - 2017-01-26 15:35:32 UTC
Confirmed having problems with random timeouts access XML api.
Inactive Seller
Hedion University
Amarr Empire
#16 - 2017-01-26 17:10:39 UTC
Whitney Aubaris wrote:
Inactive Seller wrote:
Yes i save in a database but previous i get the data, save to a file, and in a second step "eat" the file get via curl in the mysql database.

The problem is in their side because many of us having the same problems, and if the script is not altered in many months, is a change in their side.

By the way i can refresh via one account and via all accounts, because yesterday i got a sucessfull all accounts approach, not in a hurry for run it again, running instead one account when needed.

Can you post your code that creates the file?


function bringindustry($charid,$vcode,$keyid){
$url="https://api.eveonline.com/char/IndustryJobs.xml.aspx?keyID=$keyid&vcode=$vcode&characterid=$charid";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);

// $response contains the XML response string from the API call
$response = curl_exec($ch);
curl_close($ch);
file_put_contents("adam/$charid"."_industry.xml",$response);
$pass =" Imported industry |";
echo $pass;
return $pass;
} // bringindustry

file_put_contents is the secret. This is a simplified version but must work

All character bazaar done. Finally 39 pilot and 3 can be killed later. This account will be used only for forum interaction, fly safe.

Huetchen Hemah
International Defense and Supply Ltd.
Sandbaggers United
#17 - 2017-01-26 21:56:12 UTC
Inactive Seller wrote:
Whitney Aubaris wrote:
Inactive Seller wrote:
Yes i save in a database but previous i get the data, save to a file, and in a second step "eat" the file get via curl in the mysql database.

The problem is in their side because many of us having the same problems, and if the script is not altered in many months, is a change in their side.

By the way i can refresh via one account and via all accounts, because yesterday i got a sucessfull all accounts approach, not in a hurry for run it again, running instead one account when needed.

Can you post your code that creates the file?


function bringindustry($charid,$vcode,$keyid){
$url="https://api.eveonline.com/char/IndustryJobs.xml.aspx?keyID=$keyid&vcode=$vcode&characterid=$charid";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);

// $response contains the XML response string from the API call
$response = curl_exec($ch);
curl_close($ch);
file_put_contents("adam/$charid"."_industry.xml",$response);
$pass =" Imported industry |";
echo $pass;
return $pass;
} // bringindustry

file_put_contents is the secret. This is a simplified version but must work

thank u very much!
i will change my site, but i hope CCP will fix the problems too
Inactive Seller
Hedion University
Amarr Empire
#18 - 2017-01-27 04:28:39 UTC  |  Edited by: Inactive Seller
You are welcome.

These problems of hang up let me learn the micromagnamente of my pilots is a good part of the game for me. If not api probably i have very few accounts.

All character bazaar done. Finally 39 pilot and 3 can be killed later. This account will be used only for forum interaction, fly safe.

qu1ckkkk
The Warp Core Stabilizers
Goonswarm Federation
#19 - 2017-01-27 08:48:56 UTC
Even though people are "solving" this by just trying again and/or handling exceptions, it doesn't mean the API is not a little sick at the moment. I have also noticed a considerably larger error rate in the last two days.

Proud developer of SeAT! A Simple Eve API & Corporation Management Tool.

Project Page: https://github.com/eveseat/seat

Luc deMornie
Center for Advanced Studies
Gallente Federation
#20 - 2017-01-28 12:15:55 UTC
Just to confirm some random problems with XML API calls.
http://api.eve-online.com/account/APIKeyInfo.xml.aspx
returns:
failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error

And when it returns something, it's very slow...
123Next page