Skip to content

[Bug] Qwen: 'Not enough data to satisfy transfer length header.' #3292

@3mora2

Description

@3mora2

Before submitting
☑️ I checked Known Issues
☑️ I searched existing issues

Configuration
(Required)

  • Model:**
  • Provider:Qwen
  • Interface:** (CLI/API/Web UI/Other)

Bug description

Traceback (most recent call last):
File "aiohttp\client_proto.py", line 144, in connection_lost
File "aiohttp/_http_parser.pyx", line 506, in aiohttp._http_parser.HttpParser.feed_eof
aiohttp.http_exceptions.TransferEncodingError: 400, message:
Not enough data to satisfy transfer length header.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
...
File "g4f\providers\base_provider.py", line 355, in async_create_function
File "asyncio\tasks.py", line 520, in wait_for
File "g4f\Provider\Qwen.py", line 417, in create_async_generator
File "g4f\requests\__init__.py", line 235, in sse_stream
File "aiohttp\streams.py", line 52, in __anext__
File "aiohttp\streams.py", line 360, in readline
File "aiohttp\streams.py", line 394, in readuntil
File "aiohttp\streams.py", line 355, in _wait
aiohttp.client_exceptions.ClientPayloadError: Response payload is not completed: <TransferEncodingError: 400, message='Not enough data to satisfy transfer length header.'>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions