Connecting to external API via python code within Dataiku environment

Ujj
Level 1
Connecting to external API via python code within Dataiku environment

This API connection does not seem to work within Dataiku environment but works perfectly when run via python on my local machine.

0 Kudos
3 Replies
VitaliyD
Dataiker

Hi,

The issue is most likely due to an SSL error, but it is just a guess without seeing the error. If I'm correct, then the quickest fix is to add "verify=False".

requests.get('https://example.com', verify=False) 

 Anyway, to say more, please provide a screenshot of the error from the notebook run.

Best.

0 Kudos
Ujj
Level 1
Author

I tried with verify= false, does not work.

Refer attached for error message.

0 Kudos
VitaliyD
Dataiker

Hi, 

Thanks for trying that. 

The error now is "KeyboardInterrupt". Which means the kernel of the notebook was interrupted. Could you please restart the kernel and try again. If the same error is shown, please try to remove the "verify=False" and send us what error will you get this time. Also, you can try to create a new code env and try with that.

Best.

0 Kudos