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

pip websockets minimum requirment > 12.0: TypeError: create_connection() got an unexpected keyword argument 'additional_headers' #10

Open
MarkEdmondson1234 opened this issue Jan 3, 2025 · 1 comment

Comments

@MarkEdmondson1234
Copy link

I had to upgrade my websockets version when I got this error:

Error creating proxy connection: create_connection() got an unexpected keyword argument 'additional_headers'
Full traceback: Traceback (most recent call last):
  File "/Users/mark/dev/sunholo/gemini-multimodal-live-dev-guide/part_3_vertex_api/proxy/proxy.py", line 148, in create_proxy
    async with websockets.connect(
  File "/Users/mark/.pyenv/versions/3.9.5/lib/python3.9/site-packages/websockets/legacy/client.py", line 629, in __aenter__
    return await self
  File "/Users/mark/.pyenv/versions/3.9.5/lib/python3.9/site-packages/websockets/legacy/client.py", line 647, in __await_impl_timeout__
    return await self.__await_impl__()
  File "/Users/mark/.pyenv/versions/3.9.5/lib/python3.9/site-packages/websockets/legacy/client.py", line 651, in __await_impl__
    _transport, _protocol = await self._create_connection()
TypeError: create_connection() got an unexpected keyword argument 'additional_headers'

I upgraded from 12.0 to 14.1 - perhaps you would like to add to the requirements.txt

@justingrayston
Copy link

justingrayston commented Jan 21, 2025

I think this has been changed to 14.1 already.

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

2 participants