Skip to content

Conversation

@afischer
Copy link
Member

Description of Change

Adds a customizable message for when a page 500s due to a file being too large to export.

image

Related Issue

#388

Motivation and Context

This has been confusing for users, and will hopefully reduce support burden for those supporting Library as we work on fixing the issue.

Checklist

  • Ran npm run lint and updated code style accordingly
  • npm run test passes
  • PR has a description and all contributors/stakeholder are noted/cc'ed
  • tests are updated and/or added to cover new code
  • relevant documentation is changed and/or added

@afischer afischer self-assigned this Nov 20, 2025
Copy link

@rshorey rshorey left a comment

Choose a reason for hiding this comment

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

might want to make a small change but if you do just go ahead and merge after

heading: Uh oh, that's a 500.
message: Perhaps try to search for something else instead?
sizeLimitNote:
message: "The document is too large to display in Library. We are working on a fix, but in the meantime, you can view the document directly in Google Drive."
Copy link

Choose a reason for hiding this comment

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

should we say "the document may be..." instead of "the document is..." in case all of doctools is down somehow?

Copy link
Member Author

Choose a reason for hiding this comment

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

This will only show in the case that google specifically sends us the exportSizeLimitExceeded error, so I think ok to keep it as "is."

@afischer afischer merged commit 32e3b71 into main Nov 20, 2025
4 checks passed
@afischer afischer deleted the size-limit-note branch November 20, 2025 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants