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.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 602 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 691 Beast Mode
- 43 App Studio
- 39 Variables
- 658 Automate
- 170 Apps
- 441 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 386 Distribute
- 111 Domo Everywhere
- 269 Scheduled Reports
- 6 Software Integrations
- 112 Manage
- 109 Governance & Security
- 8 Domo University
- 30 Product Releases
- Community Forums
- 39 Getting Started
- 29 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive