R
Railway•5mo ago
Faith

Sentry auth token help

Hey guys im having a small issue with sentry token when i try to push my project i get the following error in my code and that error crashes my whole app
error: Auth token is required for this request. Please run `sentry-cli login` and try again!

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.

Please attach the full debug log to all bug reports.
error: Auth token is required for this request. Please run `sentry-cli login` and try again!

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.

Please attach the full debug log to all bug reports.
Where do i provide the Auth token since the .sentryclirc is in the .gitingore
import * as Sentry from "@sentry/node";
import { nodeProfilingIntegration } from '@sentry/profiling-node';

// Ensure to call this before importing any other modules!
Sentry.init({
dsn: "https://*.*.de.sentry.io/*",
integrations: [
// Add our Profiling integration
nodeProfilingIntegration(),
],

// Add Tracing by setting tracesSampleRate
// We recommend adjusting this value in production
tracesSampleRate: 1.0,

// Set sampling rate for profiling
// This is relative to tracesSampleRate
profilesSampleRate: 1.0,
});
import * as Sentry from "@sentry/node";
import { nodeProfilingIntegration } from '@sentry/profiling-node';

// Ensure to call this before importing any other modules!
Sentry.init({
dsn: "https://*.*.de.sentry.io/*",
integrations: [
// Add our Profiling integration
nodeProfilingIntegration(),
],

// Add Tracing by setting tracesSampleRate
// We recommend adjusting this value in production
tracesSampleRate: 1.0,

// Set sampling rate for profiling
// This is relative to tracesSampleRate
profilesSampleRate: 1.0,
});
i have this setup right now
15 Replies
Percy
Percy•5mo ago
Project ID: 51cb3e5e-013d-43eb-b545-600daa26b09f
Faith
FaithOP•5mo ago
51cb3e5e-013d-43eb-b545-600daa26b09f
Brody
Brody•5mo ago
can you provide it via an environment variable?
Faith
FaithOP•5mo ago
thats what i dont know i cant seem to find anything on this
Brody
Brody•5mo ago
that's something you would have to consult the applicable documentation for
Faith
FaithOP•5mo ago
it wants sentry-cli login but we dont have terminal access i think
Brody
Brody•5mo ago
please consult the applicable documentation on how you would provide the token in a docker environment without an interactive shell
Faith
FaithOP•5mo ago
how do i do this tho in railway
Brody
Brody•5mo ago
service variables aka environment variables
Faith
FaithOP•5mo ago
but the sentry config is a whole file for itself wait i think i got it 💀
Brody
Brody•5mo ago
have you read the docs section I linked?
Faith
FaithOP•5mo ago
yes one sec i think i got it AHAHAHAHA NOT THE CAP EMOJI it works im a idiot
Brody
Brody•5mo ago
great!
Duchess
Duchess•2w ago
New reply sent from Help Station thread:
@definewater How did you do it?
You're seeing this because this thread has been automatically linked to the Help Station thread.
Want results from more Discord servers?
Add your server