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

Frontend: file import not shown if 404 response returned by #1430

Closed
5 tasks done
iainsproat opened this issue Mar 1, 2023 · 1 comment
Closed
5 tasks done

Frontend: file import not shown if 404 response returned by #1430

iainsproat opened this issue Mar 1, 2023 · 1 comment
Labels
bug Something isn't working [ frontend ] Main app related issues

Comments

@iainsproat
Copy link
Contributor

iainsproat commented Mar 1, 2023

Prerequisites

What package are you referring to?

frontend

Describe the bug

If a non-201 response is returned by the web UI's call to POST /api/file/:fileType/:streamId/:branchName?, the UI for file import does not show the file or its status.

To Reproduce

When importing a file via the web /streams/:streamId/uploads.
After selecting a file
After clicking import file
If POST /api/file/:fileType/:streamId/:branchName? returns a 404 response

No file is shown in the list of imported files. No status is shown for the file.

Expected behavior

I expect to see the file listed and the error status reported.

Screenshots

System Info

Smartphone (please complete the following information):

Failure Logs

In the browser we can see the 404 response:

Screenshot 2023-03-01 at 16 49 22

From the server logs we can see the 404 being returned:

{"level":"info","time":"2023-03-01T16:12:15.996Z","req":{"id":"b60b80ff826affaf6568dde2b7e27d50","method":"POST","path":"/api/file/autodetect/a0154c1724/main
","headers":{"x-request-id":"b60b80ff826affaf6568dde2b7e27d50","referer":"streams/a0154c1724/uploads
"}},"res":{"statusCode":404,"headers":{"content-length":175,"content-type":"text/html; charset=utf-8","x-ratelimit-remaining":499,"x-request-id":"b60b80ff826
affaf6568dde2b7e27d50"}},"responseTime":90,"msg":"request completed"}

Additional context

Proposed Solution (if any)

Optional: Affected Projects

@iainsproat iainsproat added bug Something isn't working [ frontend ] Main app related issues labels Mar 1, 2023
@iainsproat
Copy link
Contributor Author

Closing, will re-open if it recurrs.

@iainsproat iainsproat closed this as not planned Won't fix, can't repro, duplicate, stale Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working [ frontend ] Main app related issues
Projects
None yet
Development

No branches or pull requests

1 participant