Unable to retrieve datasets - got Error message Infrastructure problem (403): Access is denied
I am trying to retrive the dataset but the response is Access denied.
API Endpoint : https://api.domo.com/v1/datasets/{DATASET_ID}
Response:
{
"status": 400,
"statusReason": "Bad Request",
"message": "Infrastructure problem (403): Access is denied",
"toe": "XXXXXXXXX-XXXXX-XXXX"
}
Any idea why i am getting the 400 Reponse ?
Comments
-
I'm getting the same error.
Help.
0 -
I'm not sure the steps your using when calling the API endpoint, but I can share what i've had success with. I was recieving the 400 error as well.
Step 1: Create a client within the developer portal under my account "new client". (assuming you already did, just trying to help others)
Step 2: Navigate to the below URL and enter the Client ID and Secret.
https://developer.domo.com/explorer#!/auth
- Once you enter the Client ID and Secret, you will see your Authorization code within the Request box.
- Example:
Authorization: Basic YWZ3ZWY6yourcodehere
- Note: I was getting the error calling the endpoint using the response token, it expires. I decited instead to use .JS and request a new token each time the endpoint is called, using the above Authorization code (it doesn't change).
- Example:
Example:
var tokenOptions = {
"method": "GET",
"hostname": "api.domo.com",
"port": null,
"path": "/oauth/token?grant_type=client_credentials&scope=data%20user",
"headers": {
"Accept":"application/json",
"Authorization": "Basic EnterYourTokenHere"
}};Step 3: Create a script that will call the above endpoint using the Request authorization code. Once the call completes, capture the response token and call the secondary datasets endpoint. The response will include a JSON containing the DS listing.
I hope this helps with testing your access. Attached is the code I used to call the datasets, just add your authorization code.
Neil Black
0 - Once you enter the Client ID and Secret, you will see your Authorization code within the Request box.
-
I'm not sure the steps you're using when calling the API endpoint, but I can share what i've had success with. I was recieving the 400 error as well.
Step 1: Create a client within the developer portal under my account "new client". (assuming you already did, just trying to help others)
Step 2: Navigate to the below URL and enter the Client ID and Secret.
https://developer.domo.com/explorer#!/auth
- Once you enter the Client ID and Secret, you will see your Authorization code within the Request box.
- Example:
Authorization: Basic YWZ3ZWY6yourcodehere
- Note: I was getting the error calling the endpoint using the response token, it expires. I decited instead to use .JS and request a new token each time the endpoint is called, using the above Authorization code (it doesn't change).
- Example:
Example:
var tokenOptions = {
"method": "GET",
"hostname": "api.domo.com",
"port": null,
"path": "/oauth/token?grant_type=client_credentials&scope=data%20user",
"headers": {
"Accept":"application/json",
"Authorization": "Basic EnterYourTokenHere"
}};Step 3: Create a script that will call the above endpoint using the Request authorization code. Once the call completes, capture the response token and call the secondary datasets endpoint. The response will include a JSON containing the DS listing.
I hope this helps with testing your access. Attached is the code I used to call the datasets, just add your authorization code.
Neil Black
0 - Once you enter the Client ID and Secret, you will see your Authorization code within the Request box.
-
Same issue here. Any help would be appreciated. I just cannot get the dataset (schema) although I can get the data. I have tried updating my client scope but that didn't make any difference.
Thanks in advance.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive