Open eboileau opened 1 week ago
The message
Module "util" has been externalized for browser compatibility. Cannot access "util.debuglog" in client code.
should only appear in DEV server setup.
I fixed a few more things, but error handling is to be re-written. In short, BE should always handle errors, then send however much error handling and feedback to the FE.
I guess I don't want to touch the VirtualScroller now. We're using primevue@3.53.0, and the latest version has been rewritten using the a preprocessor approach with apply instead of pass-through (I don't know if this would still work)... updating PrimeVue will most likely break a few things...
Error handling still fail to catch and backtrace unhandled errors, in particular the API throws TypeError: error.response is undefined
.
A clear and concise description of what the bug is.
Branch feature/typescript, cf. 5fd9fad0eb3f8a0f308298f6415363b66a55a654
Index (Release)
console.trace() WARN: trace index ( undefined ) is not a number or is out of bounds
Index (Login)
Failed to login - please try again: AxiosError: Request failed with status code 401
. This should beFailed to login - please try again: Wrong user or password
.Failed to register: User exists
and notFailed to register: AxiosError: Request failed with status code 403
. The Ok button has the same problem as above. On the other hand, the blue box is better displayed.Sorry - something went wrong: AxiosError: Request failed with status code 404
. We had previouslySorry - something went wrong: Unknown user
. On sign up, this results inFailed to register: AxiosError: Request failed with status code 500
, while previously this worked, i.e. a box with a success message appeared.Search
Module "util" has been externalized for browser compatibility. Cannot access "util.debuglog" in client code.
Module "util" has been externalized for browser compatibility. Cannot access "util.inspect" in client code.
[Vue Router warn]: Discarded invalid param(s) "eufid" when navigating.
(also on the tables accessed with the info button).Browse
Compare - this view is critical, and it is difficult to check everything, but it looks substantially broken...
Project template
PMID must be a number!
Maybe we should also check for consistency e.g. do we have length criteria somewhere for DOI, PMID, etc.?Dataset upload
SMID is required!
.Failed to post dataset: HTTP status 500 - File upload failed. Too many skipped records.
instead of justFile upload failed. Too many skipped records.
Same comment for all errors. Sometimes, the error message is not well formatted (very long box), e.g.Failed to post dataset: HTTP status 422 - File upload failed. Mismatch for organism and/or assembly between the file header and the selected values. Click 'Cancel'. Modify the form or the file and start again.
. The console logs are slightly different, we now getUncaught (in promise) Error: ...
Previously, the error was reported using a style similar to that for validation (red color, with a cross), not it is a green box?!