DomoR vs RdomoSDK
I have been handed an r script that has is using an accessToken to connect to domo and extract a dataset using a dataset ID. My end goal is to translate this to Python, as I have an existing pipeline in python that needs this dataset.
Initially using the naive approach I tried to connect to Domo using pyDomo but was shunted with a tlshandshakeerror, after some digging I revisited the existing r script which was fairly simple, so it did not make sense that the pydomo version of it would need more than a few lines.
the r script initialized the connection as follows:
but when I try the same using pydomo:
from pydomo import Domo domo = Domo(customer,domo_access_token)
I get hit with this.
HTTPSConnectionPool(host='api.domo.com', port=443): Max retries exceeded with url: /oauth/token?grant_type=client_credentials (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))
On further digging I see that the DomoR package and the rDomo-SDK are vastly different.
SDK - https://github.com/domoinc/rdomo
DomoR - https://github.com/domoinc-r/DomoR
Is there a simple way to connect to an existing pipeline using an access token in python using pydomo or even the requests library for that matter? since I see that we can hit the API using appropriate headers. Please check out the init and the fetch methods of the DomoR package.
I don't want to overengineer this as it seems like an unnecessary amount of overhead to just fetch a dataset.
Thanks in advance for anyone who can help :)
Looks like your python script is failing because of bad / missing certificates. Have you tried installing the
certifipackage to install additional certificates with pip and then running your python script?
pip3 install certifi
Additionally the pydomo package needs a client_id and client_secret which you can configure from developer.domo.com
They also have an example file in their repository outlining different methods for datasets including exporting a dataset to a string or file here: https://github.com/domoinc/domo-python-sdk/blob/master/examples/dataset.py**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
- 7.7K All Categories
- 12 Connect
- 925 Connectors
- 247 Workbench
- 441 Transform
- 1.7K Magic ETL
- 61 SQL DataFlows
- 456 Datasets
- 88 Visualize
- 222 Beast Mode
- 2.1K Charting
- 8 Variables
- 35 Cards, Dashboards, Stories
- 5 Automate
- 349 APIs & Domo Developer
- 85 Apps
- 17 Predict
- 3 Jupyter Workspaces
- 14 R & Python Tiles
- 242 Distribute
- 60 Domo Everywhere
- 241 Scheduled Reports
- 18 Manage
- 39 Governance & Security
- 46 Product Ideas
- 1.1K Ideas Exchange
- 6 Community Forums
- 19 Getting Started
- 6 Community Member Introductions
- 50 Community News
- 18 Event Recordings
- 577 日本支部