You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue can be reproduced in Chrome by temporarily switching network throttling to offline until you see a GET error in the console from https://api.particle.io/v1/devices/:deviceid/events.... If you turn off throttling at this point, events are no longer be received.
I tried adding a stream.on('error', ... handler to display_event():
activeStream.on('error', function(err) {
console.log('Subscribed event stream terminated with error. Attempting to restart.');
activeStream.active = false;
Promise.resolve()
.retry(subscribe_events,retry_conditional,1)
.then(display_event)
.catch(error_handler);
});
but this didn't seem to be called at all. It's possible that there's a bug in ParticleJS such that it doesn't actually pass on errors to the EventStream object.
The text was updated successfully, but these errors were encountered:
This issue can be reproduced in Chrome by temporarily switching network throttling to offline until you see a GET error in the console from
https://api.particle.io/v1/devices/:deviceid/events...
. If you turn off throttling at this point, events are no longer be received.I tried adding a
stream.on('error', ...
handler todisplay_event()
:but this didn't seem to be called at all. It's possible that there's a bug in ParticleJS such that it doesn't actually pass on errors to the EventStream object.
The text was updated successfully, but these errors were encountered: