Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSLError #4

Open
skanthb opened this issue Mar 18, 2019 · 1 comment
Open

SSLError #4

skanthb opened this issue Mar 18, 2019 · 1 comment

Comments

@skanthb
Copy link

skanthb commented Mar 18, 2019

Hi @johnkabler,

I tried using the below approach asper your PyRyx code: (idea is to try just one component first: get workflows in subscription)

client_key = 'xxxxxxxxxxxxxxxxxxxxxxxxx'
client_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
gallery_url = "https://name.corp.company.com:443/gallery/api/v1/workflows/subscription/"

queryoauth = OAuth1(client_key, client_secret, signature_type='query')

requests.get(gallery_url, auth=queryoauth)

I get the following error:
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)

I am able to use the api on the portal (/gallery/api-docs/#!/workflows.json/GetStudioAppsGET)
but when i try using python from my machine, i see the above error.

We have installed alteryx in a VM in Azure and I'm trying to run the python code on my machine while connected to the company network.

Can you please help?

Thanks,
Srikanth

@skanthb
Copy link
Author

skanthb commented Mar 22, 2019

i'm not able to solve this still using requests library. Any help?

however for timebeing am able to use urllib3 by supressing warnings

http = urllib3.PoolManager()
urllib3.disable_warnings()
http.request(method, requestURL)

Thanks,
Srikanth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant