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


[SOLVED]Update broke some QA's - error: "Host not found (authoritative)"


Recommended Posts

Posted

As the title says, the update broke some of my QA's giving the error message:  error: "Host not found (authoritative)"

These QA's were running just fine for at least 6 months. 

Even more, some other QA's which are basically the same (all make a http call to read some json from other devices) still work fine.

 

Any ideas please ?

 

Cheers 

Posted

Hi. Are you able to extract piece of LUA code that cause that error?
I have just updated and just checked several of my QuickApps that call different http services, from local devices and cloud, so opened and with different authentication protocols, and all works fine.

  • Topic Author
  • Posted

    Ok, so i figured it out...

    In some QA's the update introduced an extra space in a variable....

     

    It looks ok in the variables QA screen: 

    Please login or register to see this image.

    /monthly_2022_09/image.png.949ebe87f5f23371fe457158eef58d19.png" />

    But the Path have an extra blank space that came out of nowhere 

     

    image.png.f7db48698bee763118b0cbb82878cad1.png

     

    Obviously i did not put it there as those QA's used to work for months wihtout me touching them.

     

     

    Cheers.

     

     

    • Thanks 1
    Posted

    Is it possibile that those spaces were there always? We changed a bit in the system in this GA and maybe before the update those was ignored.

     

    There was no migration od any data related to variables in this version, probably never.

     

    • Thanks 1
  • Topic Author
  • Posted (edited)

    There is no way that those spaces were there as they would have shown up in composing the called URL and hence failed to get the answer.  I think..  would have been strange that they were there and still get ignored when composing the URL.

     

      local http = net.HTTPClient({timeout=3000}) 
      local ipaddress = self:getVariable("IPaddress"
      local path = self:getVariable("Path")
      local interval = tonumber(self:getVariable("Interval")) 
      local UserID = tonumber(self:getVariable("UserID"))
      local url = "http://"..ipaddress..path
      self:debug("Url: "..url)
     
     
    Edited by Momos
    Posted

    I am getting the same errors.

    Posted (edited)

    I am also having issues  with http calls, that where working fine for months.
    But I can't find any added spaces anywhere in the variables.
    "Operation cancelled" is the error I am seeing.

    Edit: Increasing timeout to 10s solved the issue, 5s wasn't enough somehow anymore.

    Edited by SDeath

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