Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go ยป
No member browsing this thread
Thread Status: Active
Total posts in this thread: 8
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 776 times and has 7 replies Next Thread
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
confused Problem with XML versions of stats page [RESOLVED]

A while back I made an application that reads the xml versions of some of statistics pages and then processes the extracted information further.

This worked fine until today. Today when I run my application I get a html page saying Error: The application is unavailable at this time, please try again later instead of xml. This would be ok if there was a real problem at WCG (although it is not very nice to return a html error message to an xml request), but if I paste the url requested by my application in my browser it works just fine.

It seems something was changed with the upgrade of today that prevents my application from working, but I can't figure out what. Why would the website nicely return xml when my browser requests a page, but return a html error message if another application on the same computer requests exactly the same page? Has some logic to prevent programmatic page requesting been implemented? If so why, cause I can't see much other use for xml versions of the statistics pages.

The url I requested: http://www.worldcommunitygrid.org/team/viewTe...PerPage=5000&xml=true

I tried it with various teamId's. They all work fine in my browser, but return the html error message if my own app requests the same url.
----------------------------------------
[Edit 2 times, last edit by Former Member at Jul 17, 2009 7:25:53 AM]
[Jul 14, 2009 8:34:00 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Sekerob
Ace Cruncher
Joined: Jul 24, 2005
Post Count: 20043
Status: Offline
Reply to this Post  Reply with Quote 
Re: Problem with XML versions of stats page

Confirmed. My own scraper is broken too and gives "Unable to open url ..." Cannot download the information you requested".

Edit: But, after opening the query in the editor and re-saving it runs again. Transient?
----------------------------------------
WCG Global & Research > Make Proposal Help: Start Here!
Please help to make the Forums an enjoyable experience for All!
----------------------------------------
[Edit 1 times, last edit by Sekerob at Jul 14, 2009 8:45:18 PM]
[Jul 14, 2009 8:40:39 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Problem with XML versions of stats page

I tried rerunning my app again to verify if it was transient and gone. I still get the same error message though.

From your post I suspect you scrape using Excel? In my case it is a self build application. No query builder to open and save the query again for me...
----------------------------------------
[Edit 1 times, last edit by Former Member at Jul 14, 2009 9:19:21 PM]
[Jul 14, 2009 9:17:13 PM]   Link   Report threatening or abusive post: please login first  Go to top 
uplinger
Former World Community Grid Tech
Joined: May 23, 2005
Post Count: 3952
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Problem with XML versions of stats page

What tool are you using to pull in the xml data? Wget?

-Uplinger
[Jul 14, 2009 9:25:54 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Problem with XML versions of stats page

The app is in php. Originally I used simplexml_load_file. When I ran into this issue I rewrote it to use curl though with the same result.
----------------------------------------
[Edit 1 times, last edit by Former Member at Jul 14, 2009 9:36:48 PM]
[Jul 14, 2009 9:35:23 PM]   Link   Report threatening or abusive post: please login first  Go to top 
uplinger
Former World Community Grid Tech
Joined: May 23, 2005
Post Count: 3952
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Problem with XML versions of stats page

Have you tried enabling cookies when pulling the information in?

Something along these lines

$s = curl_init();

curl_setopt($s,CURLOPT_COOKIEJAR,"cookiefile.txt");
curl_setopt($s,CURLOPT_COOKIEFILE,"cookiefile.txt");

-Uplinger
[Jul 15, 2009 12:06:22 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Problem with XML versions of stats page

I don't have cookie support enabled in my app at the moment. I can try this evening when I'm home.

Strange if this is the cause of the problem though, because my app worked fine without cookie support until the 14th. Still no harm in trying so I'll give it a go.
[Jul 15, 2009 2:08:25 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Problem with XML versions of stats page

I just ran my app again (without any change to what failed) and behold, I got no error message but proper xml instead. My guess is that whatever was changed on the WCG side has been resolved, as my app is basically the same as the one that worked before the 14th. I never got to adding the cookie parameters to CURL, so it works without.

In any case my problem has been resolved, so I'll add the text to the subject
[Jul 17, 2009 7:25:37 AM]   Link   Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Post new Thread