Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@monkbroc
Copy link
Member

@monkbroc monkbroc commented Nov 5, 2024

Story details: https://app.shortcut.com/particle/story/132018

Firefox has an inexplicable behavior where doing multiple fetch calls to the same endpoint with the same parameters makes the second request stall. It doesn't resolve or reject. Chrome and Edge do not have this issue.

One workaround I found is to use a different path by passing a nonce. We can discuss in a broader team what might be going on but it's sufficient to fix the issue for now.

Steps to test:

const particle = new Particle();
particle.getEventStream({ deviceId: '250029001550483553353620', product: 8178, auth }).then(stream => {
    console.log('event stream 1 connected');
});
particle.getEventStream({ deviceId: '250029001550483553353620', product: 8178, auth }).then(stream => {
    console.log('event stream 2 connected');
});

Expect to see both log lines. In Chrome, this is the case. In Firefox, before the fix, only the first log is shown.

@monkbroc monkbroc force-pushed the bug/sc-132018/device-events-console-page-is-not-working branch from 70f562a to 6f158ca Compare November 5, 2024 20:30
@monkbroc monkbroc force-pushed the bug/sc-132018/device-events-console-page-is-not-working branch from 6f158ca to d73da54 Compare November 5, 2024 20:32
@monkbroc monkbroc merged commit 808190f into master Nov 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants