GET request to opensea API giving 403 error - api

I'm trying to retrieve the asset info from a specific collection using the asset endpoint.
Example:
https://api.opensea.io/api/v1/asset/0x1a92f7381b9f03921564a437210bb9396471050c/2000/?format=json
Now, if you open that on your browser, it works flawlessly, but on your app or postman it just gives a 403 error by CloudFlare.
This is not a 401 error and we shouldn't need an API key for this.
So what is going on and how do I fix this? Any ideas?

Related

NuxtJS - Error 401 (Unauthorized) on localhost

I guys, I cannot find a way to fix this problem:
I get a 401 error (unauthorized) when trying to get data from the API on localhost, we are using azure to hold both the API and the website in dev mode.
The strange thing is that my user is getting the correct authorization on ***-app-dev.azurewebsites.net and everything is working fine in there, but the same user is not getting data (and authorization) on localhost:3000.
Do you have some idea on what can be the problem?

When trying to update a video snippet I always get a Forbidden response

I am creating an app to update my videos through the youtube api v3.
I have set up everything correctly according to the documentation. Have the API key and OAuth credentials. But everytime I try to update (in my app or in the API test page) I get this json response:
googleapiclient.errors.HttpError: <HttpError 403 when requesting https://youtube.googleapis.com/youtube/v3/videos?part=snippet&alt=json returned "Forbidden". Details: "[{'message': 'Forbidden', 'domain': 'youtube.video', 'reason': 'forbidden'}]">
I'm getting so frustrated, this specific error only shows "Forbidden" with no extra info.
Does anyone knows what it could be? Thank you
X

What could be the reason for Okta Log Api giving internal Server Error 500 through code but giving result when run from Postman

I have a windows service which hits Okta Event Api
http://developer.okta.com/docs/api/resources/events.html
Now I have changed code to hit Okta Log Api
http://developer.okta.com/docs/api/resources/system_log.html
Problem : While Log api Get request works fine from postman tool it gives "Internal Server Error 500" when i run it from Code. The previous Event Api works perfectly fine from code and postman both.
This is what I get in response:
{"errorCode":"E0000009","errorSummary":"Sorry, there's been an error. We aren't sure what caused it, but we've logged this and will work to address it. Please try your request again.","errorId":"7f997bbe-7a31-4431-9f42-ae40db5200ac"}
What could be a possible reason for this?

403 Access Denied for customers in Magento REST API

I am getting 403 Access Denied error for http://www.example.com/rest/api/customers in Magento 1.9.2.4. Everything in admin side rest & admin roles and resources are proper and set to "All". Though http://www.example.com/rest/api/products is working but not able to fetch customers and getting Access Denied.
I tried with other Magento version setups also in same server but all gives 403 Access Denied error for customers and working fine for products.
Server is using SUPHP. What could be solution?
Thanks
How are you making the calls? Is it a php script or are you using something like this? You need to give this detail to identify the erroe
How to use POSTMAN rest client with magento REST api with Oauth. How to get Token and Token Secret?
I have found this tutorial is great to pinpoint where the error are ie the parameters not being encoded with the url etc

Pre signed url PUT does a GET request in the background?

uploading a image/jpeg to s3 bucket with PUT works fine, but just before the put the javascript throws an error saying it tried to do a GET using that signed key anT request in the first place. When i check the network in the browser it shows an OPTIONS method call with 200 status OK and then a PUT call using the signed url with 200 OK and no GET calls. Still the console throws the GET error.
Any insights would be appreciated.
Got the answer in the following post: Why am I getting an OPTIONS request instead of a GET request?
Before every PUT request there is an OPTIONS ajax request which does a GET for that key. Apparently these PUT cross origin request are preflighted with OPTIONS call