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

Best Answer

  • @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