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

[ fatal] Runtime error: End of file


10der

Question

HI!

 

@I.Srodka

 

are there any limitation on net.HTTPClient + setTimeout

 

"image-schema"

 

Please login or register to see this code.

Please login or register to see this image.

 

Thanks!

 

  • Like 1
Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

Hi @10der!

 

Your code seems incomplete. Could you paste the whole code?

 

Where are debugging tags, etc.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • thank you so much for answering.

     

    5 mins, Ill minimize code for reproducing! 

    Please login or register to see this code.

     

     

    Please login or register to see this code.

     

    • Like 1
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • so, I have reproduced situation on the local net. I have emulated ring responses via php on local raspberry pi and Apache. I am not sure but my guess issue in 

    header("Transfer-Encoding: chunked");

    after some time I got 

    Please login or register to see this code.

    here is an exception.

    selfhttp:request('http://192.168.1.29/clients_api/dings/active'.."?api_version=9&auth_token="..ringToken, 

     

    I'll continue the investigation.

    Link to comment
    Share on other sites

    • 0

    Hello,

     

    I fell on this thread because one of my Fibaro's scene ended up with the same message.

    It is running all the time, with a setTimeout running every minute. The callback function uses net.HTTPClient.

     

    If someone has a clue ..... I'll be happy :-)

     

    Thank you

    Edited by dynek
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 33 minutes ago, dynek said:

     

    If someone has a clue .....

     

     

    No. Fibaro officially (via case) told me to hit the highway.

     

    Link to comment
    Share on other sites

    • 0
    11 minutes ago, 10der said:

    No. Fibaro officially (via case) told me to hit the highway.

     

    Well, that's too bad they aren't able to implement a watchdog restarting the scene.

    That sounds like a double bug to me. Why the message and why the missing watchdog?

     

    Well, well, what do you mean with "hit the highway"?

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 5 minutes ago, dynek said:

    what do you mean with "hit the highway"?

    "look, you're bugging me" :) 

    cuz, I have 2 weeks conversion with support. more than I provided simple code for reproducing and give to understand what issue in FIBARO core.

     

    are you have https connection? Fibaro support said what Fibaro LUA scenes not support https connections.

     

    Quote

    Problem może również być spowodowany protokołem HTTPS (kodowanym). W zasadzie nasze urządzenia wirtualne nie działają z tym protokołem, a jedynie HTTP.

     

    Quote

    "Let me remind you that virtual devices works with HTTP, not HTTPS." 

     

    TJskOcNoGL.png

    Link to comment
    Share on other sites

    • 0

    Well I have a scene working since long time that make httpS calls to api.netatmo.net.

    It does work rock solid for several days/weeks.

     

    Anyway, that's the first time I have seen this message. Might be a temporary/unexpected issue.

    I'm still puzzled though that the scene doesn't get restarted by a watchdog...

    Edited by dynek
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Sir, one notice from me.

    you always said about "watchdog". This sounds very difficult for you, but... FIBARO core doesn't have "watchdog" for scenes or VD's.

     

    Please login or register to see this code.

     

    run this scene periodically or uncomment --%%autostart line in the header

     

    Edited by 10der
    fixed!
    • Thanks 1
    Link to comment
    Share on other sites

    • 0

    @10der Thanks for sharing

    I tested your scene but its too smart :)

    it even tryes to start my disabled scenes.

     

    image.png.d8e648447304cf89b82d1d3505e78806.png

     

    Please login or register to see this attachment.

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