Skip to content

✨ Handle archive size limit - #305

Merged
buurro merged 2 commits into
fastapilabs:mainfrom
buurro:archive-size-limit
Jul 28, 2026
Merged

✨ Handle archive size limit#305
buurro merged 2 commits into
fastapilabs:mainfrom
buurro:archive-size-limit

Conversation

@buurro

@buurro buurro commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@buurro
buurro requested a review from patrick91 July 28, 2026 12:57

@patrick91 patrick91 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/fastapi_cloud_cli/commands/deploy/command.py Outdated
Comment thread src/fastapi_cloud_cli/commands/deploy/command.py Outdated
archive_size_bytes=archive_size,
)
except ArchiveTooLargeError as e:
_fail_archive_too_large(toolkit, progress, str(e))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see the comment above, with toolkit.fail we can probably remove this floating function

Comment on lines +46 to +53
def _get_s3_error_code(response: Response) -> str | None:
"""Extract the error code from an S3 XML error response."""
try:
root = ET.fromstring(response.text)
except ET.ParseError:
return None

return root.findtext("Code")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a big fan of having S3 specific things here, could we avoid it?

(not sure if it is even worth handling this error directly, since it shouldn't ever happen)

@patrick91 patrick91 added the feature New feature or request label Jul 28, 2026
@buurro
buurro merged commit f86d660 into fastapilabs:main Jul 28, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants