DataSet query: unauthorized?
I'm trying to use the 'query' endpoint of the DataSet API but I'm getting an Unauthorized response. Not sure if I'm formulating the query incorrectly or if I need to adjust permissions within Domo. (So far this problem has been specific to querying -- I can programatically list, retrieve, and export datasets just fine. All the tests in the gem I'm building pass except test_query_data.)
My code is sending a POST to /v1/datasets/query/execute/<dataset_id> and is getting a 401 response with the message:
com.domo.bedrock.service.exception.UnauthorizedException: Full authentication is required to access this resource
Each 401 response also has an attribute named 'toe' with what looks like a unique incident ID. I can post one of those here if a Domo employee is reading and could do anything with it.
I've tried a few different SQL queries in the payload of the POST:
- select * from table <-- this matches the API reference example
- select count(*) from table
- select * from `API Test Data` <-- this is the name of the dataset I'm testing against
- select count(*) from `API Test Data`
But the response is the same no matter what. Anyone know what I'm doing wrong or how I might troubleshoot further?
Best Answer
-
Umm, nevermind, my code was just wrong and I wasn't actually setting the "Authorization" header ?
0
Answers
-
Umm, nevermind, my code was just wrong and I wasn't actually setting the "Authorization" header ?
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.8K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 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