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
{{ message }}
Repository navigation
404 whilst accessing the NPX Built in Overlay #385
As per https://spotlightjs.com/sidecar/npx/ running the sidecar: If you start the sidecar independently, you can visit the overlay at http://localhost:8969/ and use a built in overlay to view your application.
I am running a react-native app so can not launch spotlight through the web frontend and am on windows so the bundled MacOS electron app is not available.
Hi @daniel-johns-99 looks like you are running sidecar from CLI, right?
are you running it manually?
if yes, what's the output when you ran that?
is it something like
$ npx @spotlightjs/spotlight
🔎 [Spotlight] Sidecar listening on 8969
🔎 [Spotlight] You can open: http://localhost:8969 to see the Spotlight overlay directly
By installing Spotlight and running sidecar in root level as I mentioned above - which will run the overlay on localhost port 8969 (useful for backend-only apps).
Activity
Shubhdeep12 commentedon Mar 28, 2024
Hi @daniel-johns-99 looks like you are running sidecar from CLI, right?
are you running it manually?
if yes, what's the output when you ran that?
is it something like
daniel-johns-99 commentedon Mar 28, 2024
Hi @Shubhdeep12
I see this:
I dont see anything about the overlay. Is there a way to run it with verboe/debug options to provide you some more info?
Shubhdeep12 commentedon Mar 28, 2024
Hi @daniel-johns-99 looks like you are running the sidecar in C drive
To access the Spotlight overlay on http://localhost:8969 you need to run the sidecar from the root directory of the project where the spotlight is installed.
run command - npx @spotlightjs/spotlight in root of your project folder.
we will update the docs as well.
daniel-johns-99 commentedon Mar 28, 2024
Hi @Shubhdeep12 Still same problem, however you mentioned I need to run from where "spotlight" is installed.
From the instructions in the release notes of Sentry/React-native it did not mention I would have to install spotlight: https://github.com/getsentry/sentry-react-native/releases/tag/5.18.0
Just add the integration to add the integration to your Sentry.init, and run the overlay.
So I have not installed it, I assumed it came bundled with Sentry?
Shubhdeep12 commentedon Mar 28, 2024
Hi @daniel-johns-99
No, Spotlight is not bundled with Sentry.
Its standalone and it is comprised of Overlay and Sidecar.
Sentry.initthere are diff ways to access the overlay :
BYK commentedon Jul 2, 2024
@daniel-johns-99 do you still experience issues?
fix: Fix npx @spotlightjs/spotlight
BYK commentedon Jul 25, 2024
I was able to replicate this locally and isolate the root cause. Fix will be out with the next release.
fix: Fix npx @spotlightjs/spotlight (getsentry#457)
fix: Fix npx @spotlightjs/spotlight (#457)