Grey Screen after activated Flutter

Hello hello :slight_smile:

I am totaly new in Invoice ninja, a just get it since yesturday, realy great work by the way !

I just get this morning the grey screen beug after testing the flutter version, so i can only acces it from mobile app or pc app, but no more from https who appear grey. i have take a look on solution, but i am a little lost, can i just back flutter off somewhere in parameters ? I push last update too, but same result :frowning:

Thanks in advance for help

Hi,

Are there any errors in the browser console?

You can run this SQL query to change to the React app.

UPDATE accounts SET set_react_as_default_ap = 1;

yep ! maby my in-vhost.conf… Uncaught (in promise) TypeError: Failed to register a ServiceWorker for scope (‘https://XXXXXX.fr/’) with script (‘https://XXXXX.fr/flutter_service_worker.js?v=5.8.46’): A bad HTTP response code (404) was received when fetching the script. (i change the domaine by XX)

“UPDATE accounts SET set_react_as_default_ap = 1;”
Did i need launch this from invoiceninja.db cointainer terminal ?

Thanks a lot for help

i try the native method to make it pushing in script.sql Update commande line, and try send it to the invoiceninja-db coontainer with mysql -h 172.19.0.3 -p 3306 -u root -p < /tmp/script.sql but dont get the root passsword, i try with it with ninjauser/ninjapass. Sorry i was totaly noob lol

Dont loose time for this, i will start back from new install, that’s will give me time to test backup systeme :slight_smile:

thanks a lot

@david could this be related to any recent changes?

@hillel

I don’t think so. First report we’ve had on this.

I’m having the same issues as mentioned above after updating to 5.8.43 cannot access from browser at all only getting a grey screen.

Everything works perfectly from the app iOS/Windows/Mac

Updating to 5.8.46 hasn’t helped at all stuck on the same issue no access from browser.

Getting the same errors as OP on browser console

My setup runs on Docker over unraid.

Is there a fix for this ? Using Invoice Ninja for close to a year now and would love to get this resolved

Are you seeing a similar 404 error for the flutter_service_worker.js?

Also, is there a reason you’re using the Flutter web app rather than the React web app or the Flutter desktop app? Over time we plan to phase out the Flutter web since the React app is a better web app and the Flutter desktop app is identical to the web app only faster.

These are the 2 errors that im seeing

"Failed to load resource: the server responded with a status of 404 (Not Found)
192.168.10.38/:1

Uncaught (in promise) TypeError: Failed to register a ServiceWorker for scope (‘https://192.168.10.38/’) with script (‘https://192.168.10.38/flutter_service_worker.js?v=5.8.46’): A bad HTTP response code (404) was received when fetching the script."

I have always used the default web app i tried the react web app but switched back because did not see any reason to switch from the deafult settings.

Is there anyway i can switch to the react web app without access through the browser ?

We’ve tagged a new release, please let us know if it helps.

You can run this SQL query to enable the React app.

UPDATE accounts SET set_react_as_default_ap = 1;

Is there a reason to use the Flutter web app rather than the desktop app?

We are using the desktop app for everyone else but I’m using a MacBook running Catalina which doesn’t support the current app. Hence I need to access from the browser.

I’m depended on maihai’s release of the updates for invoice ninja on unraid so usually a day or two late from the offical releases.

Will post back with an update after I’m on the latest release.

Thanks for all the help

Thanks, that’s helpful to know!

The latest version of the framework we’re using dropped support for older versions of macOS, there isn’t much we can do. In the not too distant future we’ll likely deprecate the Flutter web app but hopefully we can get the React app working for you before then.

The latest release 5.8.47 has fixed the issue for me thanks a lot guys

Glad to hear it, thanks for the update!

cc @david