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: 18
Posts: 18   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3991 times and has 17 replies Next Thread
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
API is not returning any result data since sometime after 14:57(2:57PM) UTC [Undocumented Resolution]

Even removing all filters just returns nothing.

PS, this is the reply

Cached Tasks
<?xml version="1.0" encoding="UTF-8" ?>
- <ResultsStatus>
<ResultsAvailable>36</ResultsAvailable>
<ResultsReturned>0</ResultsReturned>
<Offset>0</Offset>
</ResultsStatus>

Returned Tasks

<?xml version="1.0" encoding="UTF-8" ?>
- <ResultsStatus>
<ResultsAvailable>116</ResultsAvailable>
<ResultsReturned>0</ResultsReturned>
<Offset>0</Offset>
</ResultsStatus>

Edit: The undocumented solution found by adriverhoed is limit=-1 . This pulls all results in one call if exceeding 250, the present documented max limit.
----------------------------------------
[Edit 4 times, last edit by Former Member at Jan 22, 2020 5:47:02 PM]
[Jan 20, 2020 7:18:47 PM]   Link   Report threatening or abusive post: please login first  Go to top 
knreed
Former World Community Grid Tech
Joined: Nov 8, 2004
Post Count: 4504
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: API is not returning any result data since sometime after 14:57(2:57PM) UTC

Ok - we will investigate. Thanks for bringing this up.
[Jan 20, 2020 8:18:43 PM]   Link   Report threatening or abusive post: please login first  Go to top 
knreed
Former World Community Grid Tech
Joined: Nov 8, 2004
Post Count: 4504
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: API is not returning any result data since sometime after 14:57(2:57PM) UTC

Is this for your account? I'm getting results on that call. Can you give me the exact API you are using (except for the verification code - leave that off)
[Jan 20, 2020 8:44:26 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: API is not returning any result data since sometime after 14:57(2:57PM) UTC

The string sent is

'https://www.worldcommunitygrid.org/api/member...5&SortBy=ReceivedTime

The sum of the return numbers 36+116 matched the total on the Result Status page.

The preview window in the query is what shows the xml what got returned.
[Jan 20, 2020 9:08: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: API is not returning any result data since sometime after 14:57(2:57PM) UTC

Did you do something? The limit=0 used to send all records regardless of the number, now zero. Specify limit=500 and I get the old max of 250

I'm pretty sure it was agreed that the limit was at least upped to 500 in the not too distant past, so something regressed.

OK, found the discussion, a bit longer ago

https://www.worldcommunitygrid.org/forums/wcg...ead,40202_offset,0#546990
----------------------------------------
[Edit 2 times, last edit by Former Member at Jan 20, 2020 10:00:43 PM]
[Jan 20, 2020 9:22:57 PM]   Link   Report threatening or abusive post: please login first  Go to top 
knreed
Former World Community Grid Tech
Joined: Nov 8, 2004
Post Count: 4504
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: API is not returning any result data since sometime after 14:57(2:57PM) UTC

We deployed an update from Sping 4 -> Spring 5, Hibernate 4 -> Hibernate 5 and WebSphere 8.5 -> WebSphere 9 today.

Something in that must have changed the behavior (there was a certain amount of code adjustments required to make those updates). I'll be taking a deeper look at this. Thanks for providing the links.
[Jan 20, 2020 11:32:50 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: API is not returning any result data since sometime after 14:57(2:57PM) UTC

Oh, that reminds. The API use is still blocked for people who chose to keep their data private, not to show their badges. In that case an actual error message appears in reply to a call.
[Jan 21, 2020 12:01:02 AM]   Link   Report threatening or abusive post: please login first  Go to top 
knreed
Former World Community Grid Tech
Joined: Nov 8, 2004
Post Count: 4504
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: API is not returning any result data since sometime after 14:57(2:57PM) UTC

I used the IBM account (i.e. a user with lots of results) to test and I was not able to recreate your 0 records returned issue. Can you email me the exact URL you used? If you know my email send it there otherwise send it to support@worldcommunitygrid.org

I am pushing an update that will raise the max results returned limit to 1000 from 250.
[Jan 21, 2020 9:33:13 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: API is not returning any result data since sometime after 14:57(2:57PM) UTC

Curious, I can with just replacing the limit=250 element with limit=0. The quick test is limit=1, and i get 1 record. This I do to be able to see how many records in total need fetching (The <ResultsAvailable>nnnnn</ResultsAvailable> element) and then loop through until Pages = RoundUp(TotalRecs / PageSize,0) with incrementing offset=. Two passes are needed as by the time it's finished the world has sped another 67,000 miles around the sun, piecemeal fetching data from a live database, to ensure a complete set.
[Jan 21, 2020 10:15:57 PM]   Link   Report threatening or abusive post: please login first  Go to top 
knreed
Former World Community Grid Tech
Joined: Nov 8, 2004
Post Count: 4504
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: API is not returning any result data since sometime after 14:57(2:57PM) UTC

My apologies - I misread your comment and looked at the wrong thing. Let me look at the code around what happens with limit=0.
[Jan 22, 2020 2:30:16 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 18   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread