#nickdnk

1 messages · Page 1 of 1 (latest)

stuck lionBOT
waxen tree
#

Not sure how to proceed as it does not explain the window or rate limit parameters

#

I'm even using an IP-restricted key

#

I need to fetch over 400 resources and it's giving me 5 at a time 😦

storm silo
#

Yeah not sure if we have separate rate limits for specific resources, give me a few to look

waxen tree
#

I'm attempting to just big-brain it like this:

if ($count % 5 === 0) {
        echo 'Sleeping for rate-limit...' . PHP_EOL;
        sleep(20);
    }
#

Maybe that works

#

hmm no not enough. I'll try with 30.

storm silo
#

I think its 5 expands per minute

waxen tree
#

Alright

#

That helps

#

the dash info gives me nothing, I haven't checked the actual JSON

#

(because it's the PHP SDK)

#

Anyway the 60 second wait seems to do the trick

#

Thanks

storm silo
#

NP! I don't know if the error is kept super generic for some obscure security/safety concern but I can flag

waxen tree
#

With such a small window it's not exactly rocket science to figure it out, it's just annoying to have to

#

so would make sense to just tell the client when you can make another request

#

All you win here is a bunch of "I'll just spam the API and when it works it works"

stuck lionBOT