daneedk / com.amazon.ring

Ring Doorbell and Camera support for Homey
https://community.homey.app/t/76364
Other
0 stars 4 forks source link

`Invalid App Event URI: homey:manager:api` on `homey app run` #13

Closed stefan-schweiger closed 1 year ago

stefan-schweiger commented 1 year ago

Hi,

I want to contribute to this project and add the support for the Ring Intercom. I already have it working in a separate project which I started from scratch, but I think it's better to not further split the available Ring integrations, so I want to include it in this project.

But when I try to run this app locally with homey app run I just get the following output:

✓ Pre-processing app...
✓ Validating app...
✓ App validated successfully against level `debug`
✓ Creating Remote Debug Session...
✓ Preparing Environment Variables...
✓ Connecting to `Homey`...
✓ Starting `com.amazon.ring@2.10.28` remotely...
✓ Starting debugger at 0.0.0.0:9229...
 — Open `about://inspect` in Google Chrome and select the remote target.
✓ Starting `com.amazon.ring@2.10.28` in a Docker container...
 — Press CTRL+C to quit.
─────────────── Logging stdout & stderr ───────────────
Debugger listening on ws://0.0.0.0:9229/693fbff6-3e6f-47d0-b155-446dc53428fd
For help, see: https://nodejs.org/en/docs/inspector
2023-10-29T14:47:20.336Z [log] [Homey:65157d41a8798869ce2c5377] [App] com.amazon.ring 2.10.28    initialising --------------
2023-10-29T14:47:20.340Z [log] [Homey:65157d41a8798869ce2c5377] [App] com.amazon.ring 2.10.28    initialising done ---------
2023-10-29T14:47:20.340Z [log] [Homey:65157d41a8798869ce2c5377] [Api] Api.js                     initialising ==============
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Invalid App Event URI: homey:manager:api".] {
  code: 'ERR_UNHANDLED_REJECTION'
}
───────────────────────────────────────────────────────
✓ Uninstalling `com.amazon.ring`...
✓ Removing container...
✓ Removed container
✓ Uninstalled `com.amazon.ring`

I'm on macOS 14.0, with nodejs v21.1.0 and homey 3.0.8. Are there any dependencies I'm not aware of or are certain versions of nodejs/homey required for this?

stefan-schweiger commented 1 year ago

Suddenly started working a few days later, no clue why.