Updated to the latest version and site is broken

Hi there :slight_smile:
I’ve been using invoice ninja for more than a year and the update button have been working fine until now.
I have 2 installations in my hosting (in different subdomains) and today I updated them and I regret about that.
I keep getting the following errors:

Uncaught : Error: right-hand side of ‘in’ should be an object, got undefined unreachable code after return statement main.foss.dart.js:158261:1
unreachable code after return statement main.foss.dart.js:323542:1
Flutter Web Bootstrap: Auto. main.foss.dart.js:10419:28
wasm streaming compile failed: TypeError: WebAssembly: Response has unsupported MIME type ‘text/plain’ expected ‘application/wasm’ canvaskit.js:263:398
falling back to ArrayBuffer instantiation canvaskit.js:263:438
Uncaught : Error: right-hand side of ‘in’ should be an object, got undefined

Error on second site:

unreachable code after return statement main.profile.dart.js:292442:7
Flutter Web Bootstrap: Auto. main.profile.dart.js:20439:35
wasm streaming compile failed: TypeError: WebAssembly: Response has unsupported MIME type ‘text/plain; charset=utf-8’ expected ‘application/wasm’ canvaskit.js:43:3258
falling back to ArrayBuffer instantiation canvaskit.js:43:3298

What I did was download https://github.com/invoiceninja/invoiceninja/releases/download/v5.7.63/invoiceninja.zip and unzip it on my server and then try domain.com/update?secret=xxx and also domain.com/build=profile but I can’t make the site work again. I have deleted all my cache but nothing happens. Same issue.

After updating one of the site using the update button, I got a similar JS error on Firefox 119.0(64bit). Using Version 120.0.6099.71 (Official Build) snap (64-bit) I managed to reach the login screen but despite using the righ credential, I kept getting error 401 not valid credentials.

Any help would be appreciated.

Thanks

Hi,

Do the mobile/desktop apps work?

Are there any errors in storage/logs?

Hi, thanks for your reply. I don;t use any mobile/desktop app
I just checked storage/logs and this are my recent entries:

2023-12-03 23:30:27] production.INFO: updating currencies
[2023-12-04 23:30:26] production.INFO: updating currencies
[2023-12-05 23:30:26] production.INFO: updating currencies
[2023-12-06 23:30:31] production.INFO: updating currencies
[2023-12-07 23:30:27] production.INFO: updating currencies
[2023-12-08 23:30:04] production.INFO: updating currencies
[2023-12-09 23:30:32] production.INFO: updating currencies
[2023-12-10 23:30:26] production.INFO: updating currencies
[2023-12-11 23:30:27] production.INFO: updating currencies
[2023-12-12 23:30:26] production.INFO: updating currencies
[2023-12-13 23:30:31] production.INFO: updating currencies
[2023-12-14 23:30:04] production.INFO: updating currencies
[2023-12-15 23:30:27] production.INFO: updating currencies
[2023-12-16 23:30:26] production.INFO: updating currencies
[2023-12-17 23:30:27] production.INFO: updating currencies
[2023-12-18 23:30:26] production.INFO: updating currencies
[2023-12-19 23:30:32] production.INFO: updating currencies

I wouldn’t expect an app failure to cause a 401 error, can you confirm your email/password is correct? You may want to try reseting it.

Also, do the mobile/desktop apps work?

I downloaded the app for Linux. This one Is working with one of the site but the other keep giving me 401: Unauthorized • These credentials do not match our records. The credentials are correct. I’ll try to recover password

I can’t recover my password due to 401: Unauthorized • Email not found
Where about I can check for my credentials in the database?

You can check the email column in the users table.

Ok, cool. I mnaged to log in using the app, however, the web app is not working :frowning_face:
I’m using v5.7.63-L146
Any idea what to to or maybe rebuild or just deleted everything on my hosting and just keep .env and unzip https://github.com/invoiceninja/invoiceninja/releases/download/v5.7.63/invoiceninja.zip
If the web app doesn’t work, none of the client will log in :confused:

From the initial post it seems like one web app is working and the other isn’t, is that correct?

yep that’s correct. One web app is working only using Chromium browser Version 120.0.6099.71 (Official Build) snap (64-bit) despite having 2 JS error.


The second webb app is not working at all using the same browser

Maybe it’s a caching issue, have you tried with a different browser?

AT this stage yeah, it could be that the solution. Despite that I have deleted all my cache, I still get the same issue. I only use Firefox 119 on my laptop and Chromium Version 120.0.6099.71 (Official Build) snap (64-bit).
Both web app work fine using my android with firefox 120.1.1. However, if I toggle the desktop version for both app on my phone, I just get a graey screen.

You can try accessing the mobile version on the web by making the browser window narrow and then clearing the application cache by adding ?clear_local=true to the end of the URL.

I purged all cache for both site from cloudflare and both web app are working despite having error on my console

Glad to hear it, those errors can be ignored.

1 Like

Thank you so much for your help and time :slight_smile:
Have a great day.