Android app cannot connect on selfhosting instance

InvoiceNinja : 4.5.9
Debian GNU/Linux 9.7 (stretch)
Nginx : 1.10.3
MariaDB : 10.1.37
App : 0.1.29

Hello !

I have a problem with the connection of the android app on my installation.

When connecting, the application displays an error message (see screenshot

At the same time, in the Nginx log: - - [01/Feb/2019:15:52:36 +0100] "POST /api/v1/login?include=tax_rates,users,custom_payment_terms,task_statuses&include_static=true HTTP/1.1" 200 7870 "-" "Dart/2.1 (dart:io)"

The API token is generated and visible in the parameters:
invoice-ninja-android-app value

Then .env file contains the entry : API_SECRET=secret

The test whith replies “Invalid token” and the Nginx logs shows: - - [01/Feb/2019:18:50:14 +0100] “GET /api/v1/ping?API_SECRET=secret HTTP/2.0” 403 158 “-” “Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0”

and nothing else…

InvoiceNija works very well, except for this connection, which is quite frustrating…

Does anyone have an idea (I’ve already tried all the recipes in this forum…) ?


Maybe it’s related to this issue?

Bravo !