Yakomota / procurement

Automatically exported from code.google.com/p/procurement
0 stars 0 forks source link

Does not return all tabs if you have a large number. #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was having problems with the program not returning all the tabs.

I did some debugging in visual studio.

In the POEModel class, method

 public Stash GetStash(int index, string league, bool forceRefresh)

When you have a large number of tabs, it returns a message in the stream

{"error":{"message":"You are requesting your stash too frequently. Please try 
again later."}}

The serializer is converting it to a not null Stash Proxy, so it keeps going 
but all tabs from that point on will be empty.

I guess you need to put in some sort of wait command like it used to do.

Original issue reported on code.google.com by stonecou...@gmail.com on 8 Feb 2014 at 9:15

GoogleCodeExporter commented 9 years ago
==========================================================================
 Edit : I put back the requestThrottle back into getHttpRequest into HttpTransport class, and it now loads all the tabs correctly.

 I imagine there is some better sweet spot for the delay. I don't know anything about the rules of GGG Api.

Original comment by stonecou...@gmail.com on 8 Feb 2014 at 9:37

GoogleCodeExporter commented 9 years ago
Nicely spotted! The commit that removed requestThrottle was not supposed to be 
committed, I have reverted the commit and will do a release soon to fix this 
issue.

Original comment by stickymaddness on 9 Feb 2014 at 6:07