Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 1 1

Error when set api key in jupyter notebook Python

Hi, I find out that there is an error when I try to set API key, I search the problem and I saw the suggestion of downgrading the httpx to 0.14.2 (pip install httpx==0.14.2) After downgrading, the error is still there. My python version is 3.8.8. Really need some helps here. Thanks!

1636368481657.png

eikon-data-apipythonrefinitiv-dataplatform-eikonworkspace-data-apiapp-key
1636368481657.png (93.2 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @meixuanw

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS


@meixuanw

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.1k 250 52 74

@meixuanw

The below errors indicate that you may use httpx==0.20.0.

2021-11-09 13:46:52,614 P[16836] [MainThread 15712] HTTP request failed: TypeError("send() got an unexpected keyword argument 'timeout'",)
2021-11-09 13:46:52,614 P[16836] [MainThread 15712] Error on handshake url http://127.0.0.1:None/api/handshake : TypeError("send() got an unexpected keyword argument
 'timeout'",)
2021-11-09 13:46:52,614 P[16836] [MainThread 15712] Error on handshake url http://127.0.0.1:None/api/handshake : TypeError("send() got an unexpected keyword argument
 'timeout'",)

You need to verify the version of httpx with the following code.

1636440625344.png



1636440625344.png (3.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.