Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: handle object name errors more gracefully #171

Merged
merged 1 commit into from
Nov 11, 2024
Merged

src: handle object name errors more gracefully #171

merged 1 commit into from
Nov 11, 2024

Conversation

flakey5
Copy link
Member

@flakey5 flakey5 commented Nov 11, 2024

These appear to be from clients sending chunks of the directory listing html as the path in the url (e.g. https://nodejs.org/dist/v21.2.0-aix-ppc64.tar.gz'%3Enode-v21.2.0-aix-ppc64.tar.gz%3C/a%3E%3C/ -> https://nodejs.org/dist/v21.2.0-aix-ppc64.tar.gz'>node-v21.2.0-aix-ppc64.tar.gz</a></)

Closes #165

These appear to be from clients sending chunks of the directory listing
html as the path in the url (e.g. `https://nodejs.org/dist/v21.2.0-aix-ppc64.tar.gz'%3Enode-v21.2.0-aix-ppc64.tar.gz%3C/a%3E%3C/`
-> `https://nodejs.org/dist/v21.2.0-aix-ppc64.tar.gz'>node-v21.2.0-aix-ppc64.tar.gz</a></`)

Closes #165

Signed-off-by: flakey5 <73616808+flakey5@users.noreply.github.com>
@flakey5 flakey5 requested a review from a team as a code owner November 11, 2024 07:14
return new Response(undefined, { status: 416 });
if (err instanceof Error) {
if (err.message.includes('10020')) {
// Object name not valid, url probably has some weirdness in it
Copy link
Member

Choose a reason for hiding this comment

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

Can you link docs to these errors? Maybe ref to the source of Wrangler?

Copy link
Member Author

Choose a reason for hiding this comment

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

There doesn't appear to be any docs regarding these, opened cloudflare/cloudflare-docs#18098

@flakey5 flakey5 merged commit bbb7ca7 into main Nov 11, 2024
5 checks passed
@flakey5 flakey5 deleted the flakey5/165 branch November 11, 2024 22:49
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.

Error: head: The specified object name is not valid. (10020)
2 participants