athombv / homey-web-api-issues

This issue tracker is for Homey Developers using the Web API.
4 stars 1 forks source link

unknown_network_interface #15

Open robertklep opened 2 years ago

robertklep commented 2 years ago

Since the release of Homey firmware v7.4.1, the HomeyKit app is regularly crashing because of this error:

Unhandled Rejection at: Promise {
   unknown_network_interface: Er is een onbekende fout opgetreden [unknown_network_interface]
      at /node_modules/athom-api/dist/index.js:1:1075967
      at processTicksAndRejections (node:internal/process/task_queues:96:5) {
    code: 500,
    cause: t {
      __athom_api_type: 'HomeyAPI.ManagerSystem.Error',
      code: 500,
      error: 'unknown_network_interface',
      error_description: 'Er is een onbekende fout opgetreden [unknown_network_interface]',
      '$stack': undefined
    }
  }
}

Jeroen Wienk, on Slack, explained this can be thrown by the HomeyAPI.forCurrentHomey() method, which is easy enough to catch, but it basically stops the entire app from working if it happens and should ideally be fixed in the API.

EDIT: it doesn't look like I'm able to catch this rejection for some reason (code here).

daneedk commented 2 years ago

Heimdall is suffering from the same issue.