Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    hubsdk.flic.io is currently down

    Flic Hub
    4
    6
    696
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • james.korzekwa
      james.korzekwa last edited by

      hubsdk.flic.io is currently down. Please fix this.

      1 Reply Last reply Reply Quote 3
      • Emil
        Emil FlicTeam @szczepan.kuzniarz last edited by

        @szczepan-kuzniarz Thanks! The new ES version is more strict that "new" must be placed before a constructor. We have just released a new firmware update that is more relaxed regarding creations of new Sockets, as a workaround for users of that lib.

        1 Reply Last reply Reply Quote 0
        • szczepan.kuzniarz
          szczepan.kuzniarz last edited by

          @Emil I use the MQTT publisher from https://github.com/id628/flic2hass. It constantly writes to console following error:

          Error: Crashed
              at <anonymous> (root/MQTT/main.js:226)
              at runNextTimeout (core.js:964)
          

          and the underlying exception is:

          TypeError: class constructors must be invoked with 'new'
              at Socket (core.js:1158)
              at <anonymous> (root/MQTT/mqtt.js:418)
              at <anonymous> (root/MQTT/main.js:230)
              at require (core.js:2895)
              at requireMain (core.js:2903)
              at handlePacket (core.js:2937)
              at onPipeData (core.js:2974)
          

          It seem the line 418 in mqtt.js:

          client = require("net").Socket().connect({ host: mqo.server, port: mqo.port }, onConnect);
          

          has to be changed to:

          const net = require("net")
          ...
          client = new net.Socket().connect({ host: mqo.server, port: mqo.port }, onConnect);
          
          Emil 1 Reply Last reply Reply Quote 0
          • Emil
            Emil FlicTeam last edited by Emil

            The website is up and running now. We have upgraded the js engine to a new modern one. If your previous code is not working, please share it.

            1 Reply Last reply Reply Quote 0
            • szczepan.kuzniarz
              szczepan.kuzniarz last edited by

              In my installation SDK-based MQTT communication is the only way I use Flics, so now it is completely useless 😞 I suspect there was some Matter related update, that broke the SDK functionality.

              1 Reply Last reply Reply Quote 1
              • sakari.bergen
                sakari.bergen last edited by

                All my SDK-based actions also stopped working yesterday, which seems related. I'll be very curious to know what happened, as I thought everything should be running locally.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post