Unstructured-IO / Unstructured-IO/unstructured-api
LocalProtocolError: Can't send data when our state is ERROR
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 951
- Forks
- 192
- Avg merge
- 7d 8h
- Merged PRs (30d)
- 2
Description
LocalProtocolError: Can't send data when our state is ERROR
(8 additional frame(s) were not displayed)
...
File "starlette/responses.py", line 255, in stream_response
await send(
File "starlette/middleware/errors.py", line 159, in _send
await send(message)
File "uvicorn/protocols/http/h11_impl.py", line 490, in send
output = self.conn.send(event=response)
File "h11/_connection.py", line 512, in send
data_list = self.send_with_data_passthrough(event)
File "h11/_connection.py", line 527, in send_with_data_passthrough
raise LocalProtocolError("Can't send data when our state is ERROR")
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the request path through starlette/responses.py, starlette/middleware/errors.py, and uvicorn/protocols/http/h11_impl.py, focusing on the send call that raises the error. Reproduce the failure if possible and determine the expected behavior when the connection is already in the ERROR state. Done means the failure is handled or prevented consistently, with regression coverage if the relevant test location can be identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100