Skip to content

Not connected to Sidecar on Firefox #376

Closed

Description

@c-w

Environment

  • yarn list | grep @spotlightjs/spotlight: @spotlightjs/[email protected]
  • firefox --version: Mozilla Firefox 123.0
  • uname -a: Linux pop-os 6.0.12-76060012-generic

Steps to Reproduce

  1. Run sidecar via spotlight-sidecar 8969
  2. Open http://localhost:8969/ in Firefox

Expected Result

Spotlight connects to sidecar.

Actual Result

Spotlight displays "Not connected to Sidecar" and we see an error in the Javascript console:

Firefox can’t establish a connection to the server at http://localhost:8969/stream. [main-2f8fa137.js:79:22169](http://localhost:8969/assets/main-2f8fa137.js)

EventSource failed: error { target: EventSource, isTrusted: true, srcElement: EventSource, currentTarget: EventSource, eventPhase: 2, bubbles: false, cancelable: false, returnValue: true, defaultPrevented: false, composed: false, … }
[main-2f8fa137.js:79:22596](http://localhost:8969/assets/main-2f8fa137.js)

Note that the same steps work fine on Chrome (Version 122.0.6261.69).

Activity

  1. Shubhdeep12 commented on Mar 12, 2024

    @Shubhdeep12
    Contributor

    Hi @c-w thanks for writing in.

    Looks like there is an error with firefox while connecting eventsource.

    But I guess the moment some event is received it works fine, right?

  2. c-w commented on Mar 12, 2024

    @c-w
    Author

    @Shubhdeep12 I can’t answer that question as unfortunately I never got to that spot; it never connected across multiple client and server restarts. As an added observation: I doubt it’s a networking issue between the client and server as the “clear events” button issues the DELETE request successfully.

  3. added
    Type: Bug-confirmed
    and removed
    Type: Bug-unconfirmed
    on Jul 2, 2024
  4. self-assigned this
    on Jul 2, 2024
  5. added a commit that references this issue on Jul 2, 2024
    7a591f1
  6. added a commit that references this issue on Jul 4, 2024
    17eacd5
  7. added a commit that references this issue on Jun 3, 2025
    0d4969f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions