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
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 7 Cloud Amplifier
- 9 Federated
- 3K Transform
- 114 SQL DataFlows
- 654 Datasets
- 2.2K Magic ETL
- 4.1K Visualize
- 2.5K Charting
- 805 Beast Mode
- 79 App Studio
- 44 Variables
- 761 Automate
- 189 Apps
- 480 APIs & Domo Developer
- 75 Workflows
- 17 DomoAI
- 40 Predict
- 17 Jupyter Workspaces
- 23 R & Python Tiles
- 408 Distribute
- 119 Domo Everywhere
- 279 Scheduled Reports
- 10 Software Integrations
- 141 Manage
- 137 Governance & Security
- 8 Domo Community Gallery
- 47 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive