Skip to content

Random locking failure due to CacheControl returning an empty bytes response #4821

@j-martin

Description

@j-martin
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: macOS Monterey
  • Poetry version: 1.1.11

Issue

When adding new packages or locking we observed random failures where the JSON response is empty (as in b"").

Through #4717 and pypi/warehouse#10387 we (myself and @kapilt) found that CacheControl is returning empty data even though there should be serialized JSON object.

Removing session CacheControl seems to solve the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expectedstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions