Skip to content

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa2 in position 10: invalid start byte #53

@sentry

Description

@sentry

Sentry Issue: WAYBACK-ARCHIVER-SERVER-2-Y

ExceptionGroup: unhandled errors in a TaskGroup
  File "starlette/_utils.py", line 85, in collapse_excgroups
    yield
  File "starlette/middleware/base.py", line 190, in __call__
    async with anyio.create_task_group() as task_group:
  File "anyio/_backends/_asyncio.py", line 678, in __aexit__
    raise BaseExceptionGroup(

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa2 in position 10: invalid start byte
(21 additional frame(s) were not displayed)
...
  File "src/main.py", line 309, in redirect_middleware
    resp = await call_next(req)
  File "src/routes/batch/create/gsheets_archive.py", line 43, in create_batch_gsheets_archive
    csv_items = (await file.read()).decode().splitlines(False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions