Cannot login - v5.3.29-30

Hi,

All of a sudden i cannot login on new browsers, but all logged in session works on the old browser.

Getting the following error on the login screen

Error :: ‘[invoice, {columns: [], sort_ascending: true, sort_totals_ascending: true}, e…’ to ‘minified:F<String, minified:oH>’ failed due to: Deserializing ‘[columns, [], sort_ascending, true, sort_totals_ascending, true]’ to ‘minified:oH’ failed due to: Tried to construct class “ReportSettingsEntity” with null field “sortTotalsIndex”. This is forbidden; to allow it, mark “sortTotalsIndex” with @nullable.

not getting anything on the larvel.log nor the invoiceninja.log.

Howerver i get the email notification of a new login into my email.

Hi,

Are you using the desktop app? The version seems odd, v5.3.29 is the latest version of the web app but 30 is a very old version of the admin portal.

Hi,

This is the only session that is currently logged in and it is the Mac Desktop app. I am getting the error when i try to login from my mobile web app or my browser in my computer.

Note: I have updated the desktop application and now i cannot login from it as well.

Note2: When i revert my VM to the snapshot before my upgrade to 4.3.29 it works with no problem. I just did the update last week.

Do you know which version you upgraded from?

You may be able to workaround this by manually clearing the user company settings in the database. If you do so please make a backup first.

I upgraded from 5.3.25, and how to manually clear the user company settings in the database ?

@david can you please advise?

this all sounds very odd. are you able to generate a password reset link and reset your password?

Hi David,

It is not about the password, i get the email of new logins after i type in the password, and after thinking for a few seconds i get this error.

However also tried the reset password, and i get the email and it allows me to reset the password with no issues, and once i try to login again it gives me the same error

Error :: ‘[invoice, {columns: [number, client, amount, balance, date, due_date, age], s…’ to ‘minified:F<String, minified:oH>’ failed due to: Deserializing ‘[columns, [number, client, amount, balance, date, due_date, age], sort_ascend…’ to ‘minified:oH’ failed due to: Tried to construct class “ReportSettingsEntity” with null field “sortTotalsIndex”. This is forbidden; to allow it, mark “sortTotalsIndex” with @nullable.

also when i type in a wrong password it recognize it is invalid credentials.

All I remember the last thing i did before i start see this error, i was playing with the reports and which columns should be displayed. Not sure if it has anything to do with the error. Also when i go back to the snapshot before i upgrade from the 5.3.25 i am able to login with no issues.

I have seen something like that after changing report settings. Can you try logging out actively and loading ?clear_local=true

Hi,

How can i log out actively ? i am already logged out. Also i tried “https://server/?clear_local=true#/” and it cleared the dark theme for me, but still getting the same error.

Also this is what i see in my browser console:

"unreachable code after return statement main.foss.dart.js:3:42
unreachable code after return statement 2 main.foss.dart.js:3:48

ERROR (app_middleware - load state): New app version - clearing state main.foss.dart.js:5284:78

unreachable code after return statement main.foss.dart.js:3:52
unreachable code after return statement main.foss.dart.js:3:44
unreachable code after return statement main.foss.dart.js:3:47
unreachable code after return statement main.foss.dart.js:3:47
unreachable code after return statement main.foss.dart.js:3:47
unreachable code after return statement main.foss.dart.js:3:47
unreachable code after return statement main.foss.dart.js:3:46
unreachable code after return statement main.foss.dart.js:3:46
Uncaught Error: LateInitializationError: Local ‘command’ has not been initialized.
h https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:4097
d https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:4104
$0 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:70759
b1z https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:70749
aC9 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:66932
aSv https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115372
I1 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115414
iR https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115765
s https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:5881
$2 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:73192
R https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:5867
aNb https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115773
iR https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115759
hX https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115849
s https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:5881
$2 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:73192
R https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:5867
b2b https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115853
hX https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115845
wa https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115846
Uz https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:118914
aGz https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:119052
anonymous https://in5.ghf.loc/main.foss.dart.js?v=5.3.29 line 4235 > Function:3
b2O https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:90321
e5p https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:5720
cf https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:90345
Ut https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:119530
aD0 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:119674
anonymous https://in5.ghf.loc/main.foss.dart.js?v=5.3.29 line 4235 > Function:3
epD https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:6038
eui https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:6040
$1 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:73122
eDj https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:4178
s https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:4186
main.foss.dart.js:4097:3
unreachable code after return statement main.foss.dart.js:3:44
POST: https://in5.ghf.loc/api/v1/login?first_load=true&include_static=true main.foss.dart.js:5284:78
unreachable code after return statement main.foss.dart.js:3:46
unreachable code after return statement main.foss.dart.js:3:43
unreachable code after return statement main.foss.dart.js:3:46
unreachable code after return statement main.foss.dart.js:3:43
unreachable code after return statement main.foss.dart.js:3:52
unreachable code after return statement main.foss.dart.js:3:52

Login error: 401: These credentials do not match our records main.foss.dart.js:5284:78

Uncaught Error: 401: These credentials do not match our records main.foss.dart.js:4097:3
Uncaught Error: LateInitializationError: Local ‘command’ has not been initialized.
h https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:4097
d https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:4104
$0 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:70759
b1z https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:70749
aC9 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:66932
aSv https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115372
I1 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115414
iR https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115765
s https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:5881
$2 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:73192
R https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:5867
aNb https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115773
iR https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115759
hX https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115849
s https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:5881
$2 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:73192
R https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:5867
b2b https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115853
hX https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115845
wa https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:115846
Uz https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:118914
aGz https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:119052
anonymous https://in5.ghf.loc/main.foss.dart.js?v=5.3.29 line 4235 > Function:3
b2O https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:90321
e5p https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:5720
cf https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:90345
Ut https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:119530
aD0 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:119674
anonymous https://in5.ghf.loc/main.foss.dart.js?v=5.3.29 line 4235 > Function:3
epD https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:6038
eui https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:6040
$1 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:73122
eDj https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:4178
s https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:4186
main.foss.dart.js:4097:3
POST: https://in5.ghf.loc/api/v1/login?first_load=true&include_static=true main.foss.dart.js:5284:78

Login error: Deserializing ‘[data, [{permissions: , notifications: {email: []}, settings: {table_columns:…’ to ‘minified:wM’ failed due to: Deserializing ‘[{permissions: , notifications: {email: []}, settings: {table_columns: [], re…’ to ‘minified:a3minified:cL’ failed due to: Deserializing ‘[permissions, , notifications, {email: []}, settings, {table_columns: [], rep…’ to ‘minified:cL’ failed due to: Deserializing ‘[table_columns, [], report_settings, {invoice: {columns: [number, client, amo…’ to ‘minified:EO’ failed due to: Deserializing ‘[invoice, {columns: [number, client, amount, balance, date, due_date, age], s…’ to ‘minified:F<String, minified:oH>’ failed due to: Deserializing ‘[columns, [number, client, amount, balance, date, due_date, age], sort_ascend…’ to ‘minified:oH’ failed due to: Tried to construct class “ReportSettingsEntity” with null field “sortTotalsIndex”. This is forbidden; to allow it, mark “sortTotalsIndex” with @nullable. main.foss.dart.js:5284:78

Uncaught Error: Error :: ‘[invoice, {columns: [number, client, amount, balance, date, due_date, age], s…’ to ‘minified:F<String, minified:oH>’ failed due to: Deserializing ‘[columns, [number, client, amount, balance, date, due_date, age], sort_ascend…’ to ‘minified:oH’ failed due to: Tried to construct class “ReportSettingsEntity” with null field “sortTotalsIndex”. This is forbidden; to allow it, mark “sortTotalsIndex” with @nullable. main.foss.dart.js:4097:3
h https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:4097
$0 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:74507
epD https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:6038
eui https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:6040
$1 https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:73122
eDj https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:4178
s https://in5.ghf.loc/main.foss.dart.js?v=5.3.29:4186
unreachable code after return statement main.foss.dart.js:3:42
unreachable code after return statement main.foss.dart.js:3:42
"

@gerootech

In the DB, in the company_user table, set the settings column to NULL

this should allow you to log in.

Hi David,

This worked, but may i know what does this reset exactly to go and check my settings?

It resets the client’s app UI settings such as the columns show in the tables/reports.

Thanks for the update, i have tested it again and seems working now, i have added the date column to the expenses report, but didn’t make any issues. Could be because of the old Desktop app i was using earlier ?

Yes, it’s very possible