Skip to content

Cannot upload a server file from URL #133

Description

@rmartinoscar

When using any github or pastebin link it fails but with a direct https://pelican.rm0.fr/pelican.ico it works

INFO: [Oct 21 22:56:46.396] starting pull of remote file to disk download_id=2eadcb43-e663-4f49-8dd3-ac38c4636953 server=3d82c234-a74f-44d0-8663-bbf324677dc9 url=https://raw.githubusercontent.com/pelican-dev/panel/refs/heads/main/Dockerfile
ERROR: [Oct 21 22:56:46.517] failed to pull remote file download_id=2eadcb43-e663-4f49-8dd3-ac38c4636953 error=downloader: request is missing ContentLength server=3d82c234-a74f-44d0-8663-bbf324677dc9

Stacktrace:
downloader: request is missing ContentLength
github.com/pelican-dev/wings/router/downloader.(*Download).Execute
github.com/pelican-dev/wings/router/downloader/downloader.go:203
github.com/pelican-dev/wings/router.postServerPullRemoteFile.func1
github.com/pelican-dev/wings/router/router_server_files.go:359
github.com/pelican-dev/wings/router.postServerPullRemoteFile.func2
github.com/pelican-dev/wings/router/router_server_files.go:369
runtime.goexit
runtime/asm_amd64.s:1700

INFO: [Oct 21 22:58:51.058] starting pull of remote file to disk download_id=95d05dbc-5d35-498e-a594-3a1eb7e4a729 server=3d82c234-a74f-44d0-8663-bbf324677dc9 url=https://pelican.rm0.fr/pelican.ico
DEBUG: [Oct 21 22:58:51.071] writing remote file to disk path=/pelican.ico server=3d82c234-a74f-44d0-8663-bbf324677dc9
INFO: [Oct 21 22:58:51.072] completed pull of remote file download_id=95d05dbc-5d35-498e-a594-3a1eb7e4a729 server=3d82c234-a74f-44d0-8663-bbf324677dc9

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions