Closed dhylands closed 4 years ago
I'm unable to reproduce this. Was this with the latest gateway and thing-url-adapter?
I'll have to check exactly which versions I was using. I'll try to keep better track and see if I can up with a set of steps to reproduce this. I've run into this quite a few times recently while trying to work with the thing-url-adapter.
When the gateway try to pairing devices, thing-url-adapter remove device temporally and add device again. https://github.com/mozilla-iot/thing-url-adapter/blob/master/thing-url-adapter.js#L448 Perhaps, If we try to remove thing between remove device and add device, we can reproduce this issue.
Maybe reproduce steps.
I also run into this with the zigbee adapter. There, I think what happens is that the unpairing process gets started and never completes (and handleDeviceRemoved never gets called).
With the thing-url-adapter, if removing the device from the config fails, then it also doesn't call handleDeviceRemoved
If I try to remove a thing which the thing-url-adapter can no longer talk to, then it fails. I see the following in run-app.log:
and on the web console I see:
Disabling the thing-url-adapter will cause the thing to be removed.