Skip to content

Not enough data to satisfy transfer length header #216

@kyle-ames-dev

Description

@kyle-ames-dev

Language/Version
What package version of the SDK are you using.

  • Language: Python
  • Package version: 0.5.2
  • SDK Use: Clients

Describe the bug
microsoft_agents.copilotstudio.client.copilot_client.ask_question(question="Extensive problem descriptions")

Traceback (most recent call last):

File ".venv/lib/python3.13/site-packages/microsoft_agents/copilotstudio/client/copilot_client.py", line 85, in ask_question
async for activity in self.ask_question_with_activity(activity):
│ │ │ └ Activity(type='typing', id='6906eeb5-eea9-462c-9e63-3a9e12a703ed-72', timestamp=None, local_timestamp=None, local_timezone=No...
│ │ └ <function CopilotClient.ask_question_with_activity at 0x10c149260>
│ └ <microsoft_agents.copilotstudio.client.copilot_client.CopilotClient object at 0x10c7ecd50>
└ Activity(type='typing', id='6906eeb5-eea9-462c-9e63-3a9e12a703ed-72', timestamp=None, local_timestamp=None, local_timezone=No...
File ".venv/lib/python3.13/site-packages/microsoft_agents/copilotstudio/client/copilot_client.py", line 112, in ask_question_with_activity
async for activity in self.post_request(url, data, headers):

...

File ".venv/lib/python3.13/site-packages/microsoft_agents/copilotstudio/client/copilot_client.py", line 46, in post_request
async for line in response.content:
│ │ └ <StreamReader e=ClientPayloadError("Response payload is not completed: <TransferEncodingError: 400, message='Not enough data ...
└ b'\r\n'
File ".venv/lib/python3.13/site-packages/aiohttp/streams.py", line 52, in anext
rv = await self.read_func()
│ └ <member 'read_func' of 'AsyncStreamIterator' objects>
└ <aiohttp.streams.AsyncStreamIterator object at 0x10c753880>
File ".venv/lib/python3.13/site-packages/aiohttp/streams.py", line 360, in readline
return await self.readuntil()
│ └ <function StreamReader.readuntil at 0x10beff060>
└ <StreamReader e=ClientPayloadError("Response payload is not completed: <TransferEncodingError: 400, message='Not enough data ...
File ".venv/lib/python3.13/site-packages/aiohttp/streams.py", line 394, in readuntil
await self._wait("readuntil")
│ └ <function StreamReader._wait at 0x10befef20>
└ <StreamReader e=ClientPayloadError("Response payload is not completed: <TransferEncodingError: 400, message='Not enough data ...
File ".venv/lib/python3.13/site-packages/aiohttp/streams.py", line 355, in _wait
await waiter
└ <Future finished exception=ClientPayloadError("Response payload is not completed: <TransferEncodingError: 400, message='Not e...

aiohttp.client_exceptions.ClientPayloadError: Response payload is not completed: <TransferEncodingError: 400, message='Not enough data to satisfy transfer length header.'>

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions