[self-hosted] Mobile App not host specified

When starting the beta app and trying to connect to my self-hosted instance it delivers a strange error message:

no host specified in URI …/api/v1/login?include=tax_rates&include_static=true

Error Message Screenshot

Any idea on how this comes up and how to solve this?

From the error it seems like something may be wrong with the URL, can you email the value you’re using to contact@invoiceninja.com.

Note: please make sure you’re using the latest version of the web app (v4.5.1).

the moment you mentioned the URL… I realized I switched the suffix from .com to .de and could log in… sorry for that stupid mistake including question…

Actually another error message came up saying deserializing failed… complete messsage again as screenshot:

error2

Hmm… I’m not sure, I haven’t seen this error before.

  • Are you using v0.1.2 of the mobile app
  • Are you using v4.5.1 of the web appp
  • Have you made any manual changes to the database

a) yes
b) yes
c) no

Can you try changing this line:

https://github.com/invoiceninja/invoiceninja/blob/master/app/Libraries/Utils.php#L518

From:

});

To

})->values();

Bam! That did the trick. Awesome!
So many thanks!

Thanks, good to know!

We’ll look into including this fix with our next release.

I just need to understand why the problem doesn’t affect everyone…

Hello,

Running 4.5.14 and latest ISO app. having a similar issue with logging in.

I checked that the line in the utils was correct.

IMG-9873

In the web app on Settings > User Details are the fields filled in?

Yes, all my user info is filled out.null

null

<a href="https://ibb.co/Fn0XCsf"><img src="https://i.ibb.co/7bRQLgT/Annotation-2019-11-28-071742.png" alt="Annotation-2019-11-28-071742" border="0"></a>

What do you see if your run this SQL query

select id, email, first_name from users;