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


  • 0

Expected value but found T_END at character 1


BitBucket

Question

Hi all,



I am struggling with a weird bug that happens on a very irregular basis (once in weeks, or lately 2 times in 1 week at night).
The VD controls my home heating. After is crashes, it gets cold.
Sometimes decoding the json string kills my VD 'Main', fatal error: "Expected value but found T_END at character 1".

 

'User' has admin credentials to access the heating panel. If I deliberatly corrupt username or password, I get the same error.
For performance reasons, authentication is done once as 'Main' never ends. Function HeatRoom() runs every minute.
It looks like 'panel' from HC2:GET is an empty string once in a while but why?
Is it possible for authentication to expire?
Any idea about the cause/trigger and a fix?

 

Please login or register to see this code.

 

Please login or register to see this attachment.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

use instead following:

 

Please login or register to see this code.

 

  • Like 1
Link to comment
Share on other sites

  • 0
  • Inquirer
  • @tinman +1, works perfectly and username + password no longer needed in VD.

     

    @T.Konopka, @I.Srodka and all other experts.
    For future code, to avoid the initial problem, I would still like to get some answers to my initial post.

    Thanks in advance.

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • @boerremk thx for your code. to avoid VD stop on error.

    Problem is, the panel is needed to control the heating.

    I could wrap this in a pcall( .... ) and retry a few times.
    That would work but I rather know what the root cause is.

    Maybe a security feature, may be a bug.

    So the questions are still open!

     

    Link to comment
    Share on other sites

    • 0

    Hi,

    Have you solved this problem, I have the same as.

    Regards

    Nilmoty

     

    Edited by Nilmoty
    Link to comment
    Share on other sites

    Join the conversation

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

    Guest
    Answer this question...

    ×   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...