[GH-ISSUE #1226] file 0 does not exist when trying to download a nonexistent user data export #6339

Closed
opened 2026-04-20 16:55:37 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @sentry[bot] on GitHub (Aug 3, 2025).
Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/1226

Originally assigned to: @Copilot on GitHub.

Sentry Issue: API-OSS-22

files.ErrFileDoesNotExist: file 0 does not exist
*echo.HTTPError: code=500, message=Internal Server Error, internal=file 0 does not exist
  File "/go/src/code.vikunja.io/api/pkg/routes/routes.go", line 172, in 1
  File "/go/src/code.vikunja.io/api/pkg/routes/routes.go", line 170, in setupSentry.func1
  File "/go/src/code.vikunja.io/api/pkg/routes/routes.go", line 97, in NewEcho.slogHTTPMiddleware.func1.1
...
(2 additional frame(s) were not displayed)

This should be fixed by checking if the file exists and there is a user export file id set and returning a 404 if it does not exist.

Originally created by @sentry[bot] on GitHub (Aug 3, 2025). Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/1226 Originally assigned to: @Copilot on GitHub. Sentry Issue: [API-OSS-22](https://vikunja.sentry.io/issues/6787787216/?referrer=github_integration) ``` files.ErrFileDoesNotExist: file 0 does not exist *echo.HTTPError: code=500, message=Internal Server Error, internal=file 0 does not exist File "/go/src/code.vikunja.io/api/pkg/routes/routes.go", line 172, in 1 File "/go/src/code.vikunja.io/api/pkg/routes/routes.go", line 170, in setupSentry.func1 File "/go/src/code.vikunja.io/api/pkg/routes/routes.go", line 97, in NewEcho.slogHTTPMiddleware.func1.1 ... (2 additional frame(s) were not displayed) ``` This should be fixed by checking if the file exists and there is a user export file id set and returning a 404 if it does not exist.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#6339