Skip to content

Multipart bundle upload with metadata doesn't handle bad response #814

Description

@nealrichardson

response = cast(
Union[BundleMetadata, HTTPResponse],
self.post(f"v1/content/{content_guid}/bundles", body=body, headers={"Content-Type": content_type}),
)
else:
response = cast(
Union[BundleMetadata, HTTPResponse], self.post(f"v1/content/{content_guid}/bundles", body=tarball)
)
response = self._server.handle_bad_response(response)

The old branch does have the handler but the new one doesn't, which leads to cryptic failures downstream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions