Home Forums Support Mobile app error with 4.5.5 self hosted and Android

This topic contains 11 replies, has 2 voices, and was last updated by  Hillel Coren 1 month, 3 weeks ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #16731

    svegliando
    Participant

    I just installed the mobile app and tried to connect to my self-hosted (4.5.5) instance. I have updated the .env with the APP_SECRET. I know the mobile app is reaching my installation because it recognizes when I use an incorrect password. However, when all of the data is correct I get a longish message that reads

    “Deserializing ‘[data,{accounts: [{account_key:***],user_id: 1…’to …” and it ends with “Tried to construct class “FrequencyEntity” with null field ‘dateinterval”. This is forbidden; to allow it, mark “dateinterval” with @nullable.”

    #16732

    svegliando
    Participant

    Note I am using API_SECRET not APP_SECRET as reported above.

    #16739

    Hillel Coren
    Keymaster

    From the error it looks like the previous update didn’t complete.

    Try loading /update (or /public/update) to check it.

    https://invoice-ninja.readthedocs.io/en/latest/update.html

    #16740

    svegliando
    Participant

    I get the same results. The update indicates it was successful and I cleared the cache.

    This may be a separate issue but after each update I have to manually delete 1 or 2 custom gateways from the gateways table in order for my gateway to work. However, even retaining those rows did not prevent the mobile app error message.

    #16741

    Hillel Coren
    Keymaster

    What do you see if you run this SQL query:

    select * from frequencies;

    #16743

    svegliando
    Participant

    Just the following results:

    “id”;”name”;”date_interval”
    “1”;”Weekly”;”1 week”
    “2”;”Two weeks”;”2 weeks”
    “3”;”Four weeks”;”4 weeks”
    “4”;”Monthly”;”1 month”
    “5”;”Two months”;”2 months”
    “6”;”Three months”;”3 months”
    “7”;”Six months”;”6 months”
    “8”;”Yearly”;NULL
    “9”;”Annually”;”1 year”
    “10”;”Four months”;”4 months”
    “11”;”Two years”;”2 years”

    #16746

    Hillel Coren
    Keymaster

    Thanks! The values are wrong, they should be:

    
    mysql> select * from frequencies;
    +----+--------------+---------------+
    | id | name         | date_interval |
    +----+--------------+---------------+
    |  1 | Weekly       | 1 week        |
    |  2 | Two weeks    | 2 weeks       |
    |  3 | Four weeks   | 4 weeks       |
    |  4 | Monthly      | 1 month       |
    |  5 | Two months   | 2 months      |
    |  6 | Three months | 3 months      |
    |  7 | Four months  | 4 months      |
    |  8 | Six months   | 6 months      |
    |  9 | Annually     | 1 year        |
    | 10 | Two years    | 2 years       |
    +----+--------------+---------------+
    
    #16748

    svegliando
    Participant

    Wow, that was the problem. I’m now able to access the mobile app. Thanks for your help (and product).

    #16750

    Hillel Coren
    Keymaster

    Glad to hear it’s working!

    If you like the new mobile app we greatly appreciate reviews on the app stores.

    #16753

    svegliando
    Participant

    Definitely! One last question: where do we post/send feature requests for the mobile app?

    #16754

    Hillel Coren
    Keymaster

    Thanks! You can create an issue here:

    https://github.com/invoiceninja/flutter-mobile/issues

    #16755

    Hillel Coren
    Keymaster

    Thank you for the really nice review!!

    It means a tremendous amount to us…

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.

Posted in: