Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


(BUG)Quickapp crash restart without permission indefinitely


Recommended Posts

Posted

It did this on the two previous version also i updated since i hoped it would be fixed.

When a Quickapp crash it try to restart the app automatically instead of just stopping, it restarts by itself  every minute on the spot indefinitely

I have a app that gets a token that only can retrieve every hour, some times they update the request headers so app crash and i have to update the app

Since the Hc3 restarts every minute with wrong headers that results in a weeks ban since the login limit is.
there are absolutlly no settings anywhere that turns off a quick app.

If it was a api that cost x amount of money per reguest one could be forced to pay 10 of thousand per month.

Can it be fixed ?

 

Please login or register to see this code.


 

Posted

You have to give us more context about your QA.

 

If you want the QA to stop polling for a token, you have to program this yourself. For example you can set a variable with a number, and add up the number to, for example, 5 before stopping retries.

Posted

You just need to catch the exception and turn the requests off based on that, that is on your side - not on the system side.
Or write down the code to not pull the token more than once per hour. 


 

  • Topic Author
  • Posted (edited)

    No matter how the code is it is still not acceptable that a crashed app restarts by it self indefensible without the option just to stop it or kill it by task.

    Even if a app crashes and you are editing it to fix it it will still try to restart in the background.

     

    You can prevent scenes from restarting but not apps or devices.

     

    Edited by mike79
    Posted

    You can disable the app. But this only works when your QA is programmed that it disables itself.

     

    And if the QA crashes, you have a big bug in it. If you are developing and get into a crash loop. Find and fix the crash.

     

    If I work with api with a rate limit, I always put in a check while debugging to not hit it when testing. When the tests are ok, I’ll remove my check code or leave it in when needed. 

    • Like 2
    Posted

    You can check on nil values, so the quickapp doesn’t have to crash. 
     

    And like Joep says, a lot of my quickapps have a simulation mode, catch the response once and use it to simulate the working of the quickapp. 

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...