opensea-creatures icon indicating copy to clipboard operation
opensea-creatures copied to clipboard

Initial sale does not work. ''Request was throttled"

Open dalisalvador opened this issue 4 years ago • 5 comments

Hello,

Trying to run a crowdsale with the initial_sale.js script but I'm getting this error:

(node:1866887) UnhandledPromiseRejectionWarning: Error: API Error 429: Message: {"detail":"Request was throttled. Expected available in 1 second."}

I guess I need the API KEY to run this? Even for test env? Thanks..

dalisalvador avatar Mar 24 '21 10:03 dalisalvador

Hey @dalisalvador , that script uses our API which we do have some throttling measures enabled for. You could either try reducing the numberOfOrders created, or request an API key here: https://docs.opensea.io/reference#request-an-api-key

TheMaxKim avatar Mar 24 '21 16:03 TheMaxKim

@TheMaxKim Hey, yeah I have set numberOfOrders to 1, but since the assets array has more than one value, then I get that error. I've also requested the API 2 days ago, but no response...

dalisalvador avatar Mar 25 '21 08:03 dalisalvador

I have the same error

aleandro-coppola avatar Mar 31 '21 19:03 aleandro-coppola

I had the API key, but the request was still throttled.

Does the mainnet API work on rinkeby? It would be great if this was included in the docs.

myleaningstuff avatar Apr 10 '21 05:04 myleaningstuff

Testnet requires a different api key, so make sure to note that when applying for it.

snuderl avatar Apr 10 '21 14:04 snuderl