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.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 101 SQL DataFlows
- 623 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 748 Beast Mode
- 60 App Studio
- 41 Variables
- 690 Automate
- 177 Apps
- 455 APIs & Domo Developer
- 48 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 397 Distribute
- 114 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 127 Manage
- 124 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 109 Community Announcements
- 4.8K Archive