Skip to content

caused by: sentry reported an error: Invalid token (http status: 401) #1461

@Seol827

Description

@Seol827

Environment

@sentry/nextjs : 7.27.0
@sentry/cli : 2.12.0

on-premise


First of all, Thanks for your reply yesterday.
I checked the docs and applied @sentry/cli (npm install), sentry.properties, .sentryclirc.
But I found some errors.
Please check my content is correct or not.

sentry.properties
defaults.url=https://~    (how can I confirm the url? I just applied a domain url of project.)
defaults.org=~               (I applied the Organization Slug via Organization Settings page.)
defaults.project=~         (the project name)
.sentryclirc
[auth]
token=~ 

I applied the token via Auth Tokens page. I created the token as follow.
capt

capt2

I got the errors such as "API request failed, caused by: sentry reported an error: Invalid token (http status: 401)" (when I applied defaults.url=https://sentry.io/")

or "not a JSON response". (when I applied defaults.url as a domain url my project)

please check as soon as possible.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions