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

getOrder returns API Error 403: Unauthorized. The API is down?

Open xiaozaa opened this issue 5 years ago • 42 comments

I am trying to run getOrder to get status of the asset but it return API Error 403: Unauthorized. I tested it yesterday, and it worked. When I try it from https://docs.opensea.io/reference/retrieving-orders, it reported the same problem. I don't have production API. Can I know what's going wrong with the getOrder API?

xiaozaa avatar Nov 18 '21 07:11 xiaozaa

just checked my logs and I have the same issue. Getting unauthorized while fetching orders with an API key. The whole platform is super unstable.

csidi90 avatar Nov 18 '21 07:11 csidi90

me too ,what's wrong with API?

mcwxxx avatar Nov 18 '21 07:11 mcwxxx

I hope it's just a temporary maintenance and will back to normal tomorrow. Unless, the developers will be banned because of lack of API.

xiaozaa avatar Nov 18 '21 07:11 xiaozaa

it's need API_KEY ?

mcwxxx avatar Nov 18 '21 07:11 mcwxxx

it's need API_KEY ?

Not sure. I don't have API_KEY, so have not idea if anyone who has API_KEY saw the same thing or not.

xiaozaa avatar Nov 18 '21 08:11 xiaozaa

Have same error on "createSellOrder". I have OpenSea API. Now get API Error 403: Unauthorized

mayavolt avatar Nov 18 '21 09:11 mayavolt

getting API Error 403: unauthorised. Order book api endpoint and opensea-js sdk not functioning..

velmoorthi avatar Nov 18 '21 10:11 velmoorthi

I am using an API Key and still get the same error. Seems to be something to do with Cloudflare firewall rules?

Marty19 avatar Nov 18 '21 11:11 Marty19

I received the same answer for getOrder and createFactorySellOrder, any response about this issue???

alfredolopez80 avatar Nov 18 '21 11:11 alfredolopez80

I am using an API Key and still get the same error. Seems to be something to do with Cloudflare firewall rules?

I have the same issue, using an API key too. Cloudflare rule leeds to an API Error 403: unauthorised.

Any idea about how to fix it ?

toniodlab avatar Nov 18 '21 12:11 toniodlab

Even when you use the "try it" feature on the official docs, it returns an error so its not related to the API or just some API key issues. Lets wait and see, hopefully they get their platform stable for developers soon. Anyone knows of an alternative marketplace that has good integration for developers?

csidi90 avatar Nov 18 '21 12:11 csidi90

@apiopensea saying that they fixed the api issue. But they are not aware of some endpoints and opensea-js sdk. Comment your queries here https://twitter.com/apiopensea/status/1461154162616401922?t=Px8r8fdNyCyrXVbOTf3a8Q&s=19

velmoorthi avatar Nov 18 '21 12:11 velmoorthi

Oh cool I find how to prevent this. I don't know how to do a merge request but :

/node_modules/opensea-js/lib/api.js line 412. I replaced (apiKey ? { 'X-API-KEY': apiKey } : {})) with (apiKey ? { 'x-api-key': apiKey } : {}))

Then it works fine.

toniodlab avatar Nov 18 '21 14:11 toniodlab

It seems they fixed the bug from sdk.. Now order book api endpoint only not working..

velmoorthi avatar Nov 18 '21 15:11 velmoorthi

I'm still having the bug. Whilst browsing opensea over the last day or so I've been getting a lot of Cloudflare restrictions - I'm guessing they are both related.


Also:

Oh cool I find how to prevent this. I don't know how to do a merge request but :

/node_modules/opensea-js/lib/api.js line 412. I replaced (apiKey ? { 'X-API-KEY': apiKey } : {})) with (apiKey ? { 'x-api-key': apiKey } : {}))

Then it works fine.

I've tried this and still having the issue

machieajones avatar Nov 18 '21 15:11 machieajones

It seems they fixed the bug.. All good atm..

Still have the issue.

xiaozaa avatar Nov 18 '21 18:11 xiaozaa

It seems they fixed the bug.. All good atm..

Still have the issue the API, in testnet and mainnet!!

alfredolopez80 avatar Nov 18 '21 18:11 alfredolopez80

I'm still having the bug. Whilst browsing opensea over the last day or so I've been getting a lot of Cloudflare restrictions - I'm guessing they are both related.

Also:

Oh cool I find how to prevent this. I don't know how to do a merge request but : /node_modules/opensea-js/lib/api.js line 412. I replaced (apiKey ? { 'X-API-KEY': apiKey } : {})) with (apiKey ? { 'x-api-key': apiKey } : {})) Then it works fine.

I've tried this and still having the issue

For me too, OpenSea still having the issue

alfredolopez80 avatar Nov 18 '21 18:11 alfredolopez80

Me too still having the issue even their demo API integrated on the website is not working https://docs.opensea.io/reference/retrieving-asset-events 403 and Cloudflare access denied

jack5parr0w avatar Nov 19 '21 02:11 jack5parr0w

Fill in the apiKey, like this image

mcwxxx avatar Nov 19 '21 04:11 mcwxxx