getsentry / sentry-cli

A command line utility to work with Sentry.
https://docs.sentry.io/cli/
BSD 3-Clause "New" or "Revised" License
898 stars 222 forks source link

upload vue source maps error: Project not found. Please check that you entered the project and organization slugs correctly. #1947

Closed beyondverage0908 closed 7 months ago

beyondverage0908 commented 7 months ago

Environment

➜ ✗ sentry-cli --version sentry-cli 2.28.6

OS: centos7, self-hosted sentry

Sentry version: Sentry 23.5.2 ad182e5

Steps to Reproduce

Step 1: self-hosted Deployment For private deployment of Sentry, I only made modifications to use an external service for Postgres. The configuration is as follows:

DATABASES = {
    "default": {
        "ENGINE": "sentry.db.postgres",
        "NAME": "sentry",
        "USER": "postgres",
        "PASSWORD": "********",
        "HOST": "10.210.*.*",
        "PORT": "****",
    }
}

Then, execute ./install.sh for installation. After successful installation, start with docker compose up -d. Access via: https://fenewmonitor.eastmoney.com/.

Step 2: Create a Test Project and Prepare to Upload Source Maps Check the organization and project names and generate the authToken.

image

image

image

Step 3: Upload Source Maps Using sentry-cli

sentry-cli sourcemaps upload dist -p bibivue -o emnj --auth-token 005db25e4131457dbe4d45f0c***********61c984d2b804802469d714c8e -r release_01 --log-level debug

Expected Result

The sourcemaps were successfully uploaded, and you can view them in the release section on the web platform.

Actual Result

tip:error: Project not found. Please check that you entered the project and organization slugs correctly.

Logs

new-sentry git:(main) ✗ sentry-cli sourcemaps upload dist -p bibivue -o emnj --auth-token 005db25e4131457dbe4**********f07c7a61c984d2b804802469d714c8e -r release_01 --log-level debug
  DEBUG   2024-02-19 15:03:05.967888 +08:00 sentry-cli version: 2.28.6, platform: "darwin", architecture: "arm64"
  INFO    2024-02-19 15:03:05.969965 +08:00 sentry-cli was invoked with the following command line: "/Users/jishusanzu/Library/pnpm/global/5/.pnpm/@sentry+cli-darwin@2.28.6/node_modules/@sentry/cli-darwin/bin/sentry-cli" "sourcemaps" "upload" "dist" "-p" "bibivue" "-o" "emnj" "--auth-token" "005db25e4131457dbe4****************a61c984d2b804802469d714c8e" "-r" "release_01" "--log-level" "debug"
  DEBUG   2024-02-19 15:03:05.971953 +08:00 request GET <https://fenewmonitor.eastmoney.com/api/0/organizations/emnj/chunk-upload/>
  DEBUG   2024-02-19 15:03:05.971995 +08:00 using token authentication
  DEBUG   2024-02-19 15:03:05.972132 +08:00 retry number 0, max retries: 0
  DEBUG   2024-02-19 15:03:06.062899 +08:00 > GET /api/0/organizations/emnj/chunk-upload/ HTTP/1.1
  DEBUG   2024-02-19 15:03:06.062924 +08:00 > Host: fenewmonitor.eastmoney.com
  DEBUG   2024-02-19 15:03:06.062927 +08:00 > Accept: */*
  DEBUG   2024-02-19 15:03:06.062930 +08:00 > Connection: TE
  DEBUG   2024-02-19 15:03:06.062932 +08:00 > TE: gzip
  DEBUG   2024-02-19 15:03:06.062935 +08:00 > User-Agent: sentry-cli/2.28.6
  DEBUG   2024-02-19 15:03:06.063714 +08:00 > Authorization: Bearer 005db25e***
  DEBUG   2024-02-19 15:03:06.243694 +08:00 < HTTP/1.1 200 OK
  DEBUG   2024-02-19 15:03:06.243769 +08:00 < Server: Tengine
  DEBUG   2024-02-19 15:03:06.243793 +08:00 < Date: Mon, 19 Feb 2024 07:03:06 GMT
  DEBUG   2024-02-19 15:03:06.243813 +08:00 < Content-Type: application/json
  DEBUG   2024-02-19 15:03:06.243839 +08:00 < Content-Length: 334
  DEBUG   2024-02-19 15:03:06.243866 +08:00 < Connection: keep-alive
  DEBUG   2024-02-19 15:03:06.243886 +08:00 < Keep-Alive: timeout=5
  DEBUG   2024-02-19 15:03:06.243903 +08:00 < Allow: GET, POST, HEAD, OPTIONS
  DEBUG   2024-02-19 15:03:06.243921 +08:00 < Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS
  DEBUG   2024-02-19 15:03:06.243990 +08:00 < Access-Control-Allow-Headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding, sentry-trace, baggage, X-CSRFToken
  DEBUG   2024-02-19 15:03:06.244021 +08:00 < Access-Control-Expose-Headers: X-Sentry-Error, Retry-After
  DEBUG   2024-02-19 15:03:06.244042 +08:00 < Access-Control-Allow-Origin: *
  DEBUG   2024-02-19 15:03:06.244060 +08:00 < Vary: Accept-Language, Cookie
  DEBUG   2024-02-19 15:03:06.244078 +08:00 < Content-Language: en
  DEBUG   2024-02-19 15:03:06.244094 +08:00 < X-Frame-Options: deny
  DEBUG   2024-02-19 15:03:06.244110 +08:00 < X-Content-Type-Options: nosniff
  DEBUG   2024-02-19 15:03:06.244127 +08:00 < X-XSS-Protection: 1; mode=block
  DEBUG   2024-02-19 15:03:06.244149 +08:00 < Content-Security-Policy-Report-Only: base-uri 'none'; connect-src 'self'; script-src 'self' 'unsafe-inline' 'report-sample'; frame-ancestors 'none'; object-src 'none'; default-src 'none'; img-src 'self' blob: data: <https://secure.gravatar.com>; font-src 'self' data:; style-src 'self' 'unsafe-inline'
  DEBUG   2024-02-19 15:03:06.244172 +08:00 < Set-Cookie: sentrysid=eyJfbGFuZ3VhZ2UiOiJlbiJ9:1rbxgA:KS37WIyO3dheEDXmU446svoiprA; expires=Mon, 04 Mar 2024 07:03:06 GMT; HttpOnly; Max-Age=1209600; Path=/; Secure
  DEBUG   2024-02-19 15:03:06.244469 +08:00 response status: 200
  DEBUG   2024-02-19 15:03:06.244496 +08:00 body: {"url":"<http://fenewmonitor.eastmoney.com/api/0/organizations/emnj/chunk-upload/","chunkSize":8388608,"chunksPerRequest":64,"maxFileSize":2147483648,"maxRequestSize":33554432,"concurrency":8,"hashAlgorithm":"sha1","compression":["gzip"],"accept":["debug_files","release_files","pdbs","sources","bcsymbolmaps","il2cpp","portablepdbs"]}>
  DEBUG   2024-02-19 15:03:06.251496 +08:00 built glob set; 0 literals, 0 basenames, 0 extensions, 0 prefixes, 0 suffixes, 4 required extensions, 0 regexes  (from globset)
  DEBUG   2024-02-19 15:03:06.252362 +08:00 ignoring dist/index.html: Ignore(IgnoreMatch(Types(Glob(UnmatchedIgnore))))  (from ignore)
  DEBUG   2024-02-19 15:03:06.252591 +08:00 whitelisting dist/assets/index-legacy.6ba4617b.js.map: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "map", globs: ["*.map"] } }))))  (from ignore)
  INFO    2024-02-19 15:03:06.252838 +08:00 found: dist/assets/index-legacy.6ba4617b.js.map (1802496 bytes)
  DEBUG   2024-02-19 15:03:06.254163 +08:00 whitelisting dist/assets/index.ab9f8503.js.map: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "map", globs: ["*.map"] } }))))  (from ignore)
  INFO    2024-02-19 15:03:06.254187 +08:00 found: dist/assets/index.ab9f8503.js.map (1740498 bytes)
  DEBUG   2024-02-19 15:03:06.279329 +08:00 whitelisting dist/assets/index.ab9f8503.js: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "js", globs: ["*.js"] } }))))  (from ignore)
  INFO    2024-02-19 15:03:06.279379 +08:00 found: dist/assets/index.ab9f8503.js (327754 bytes)
  DEBUG   2024-02-19 15:03:06.279772 +08:00 whitelisting dist/assets/polyfills-legacy.47492575.js: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "js", globs: ["*.js"] } }))))  (from ignore)
  INFO    2024-02-19 15:03:06.279800 +08:00 found: dist/assets/polyfills-legacy.47492575.js (136821 bytes)
  DEBUG   2024-02-19 15:03:06.280035 +08:00 whitelisting dist/assets/index-legacy.6ba4617b.js: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "js", globs: ["*.js"] } }))))  (from ignore)
  INFO    2024-02-19 15:03:06.280058 +08:00 found: dist/assets/index-legacy.6ba4617b.js (377345 bytes)
> Found 5 files
> Analyzing 5 sources
> Analyzing completed in 0.117s
> Rewriting sources
> Rewriting completed in 0.06s
> Adding source map references
  DEBUG   2024-02-19 15:03:06.466664 +08:00 request POST <https://fenewmonitor.eastmoney.com/api/0/projects/emnj/bibivue/releases/>
  DEBUG   2024-02-19 15:03:06.466674 +08:00 using token authentication
  DEBUG   2024-02-19 15:03:06.467482 +08:00 json body: {"version":"release_01","projects":["bibivue"]}
  DEBUG   2024-02-19 15:03:06.467491 +08:00 retry number 0, max retries: 0
  DEBUG   2024-02-19 15:03:06.467565 +08:00 > POST /api/0/projects/emnj/bibivue/releases/ HTTP/1.1
  DEBUG   2024-02-19 15:03:06.467571 +08:00 > Host: fenewmonitor.eastmoney.com
  DEBUG   2024-02-19 15:03:06.467574 +08:00 > Accept: */*
  DEBUG   2024-02-19 15:03:06.467576 +08:00 > Connection: TE
  DEBUG   2024-02-19 15:03:06.467579 +08:00 > TE: gzip
  DEBUG   2024-02-19 15:03:06.467581 +08:00 > User-Agent: sentry-cli/2.28.6
  DEBUG   2024-02-19 15:03:06.467593 +08:00 > Authorization: Bearer 005db25e***
  DEBUG   2024-02-19 15:03:06.467596 +08:00 > Content-Type: application/json
  DEBUG   2024-02-19 15:03:06.467599 +08:00 > Content-Length: 47
  DEBUG   2024-02-19 15:03:06.837757 +08:00 < HTTP/1.1 208 Already Reported
  DEBUG   2024-02-19 15:03:06.837833 +08:00 < Server: Tengine
  DEBUG   2024-02-19 15:03:06.837855 +08:00 < Date: Mon, 19 Feb 2024 07:03:07 GMT
  DEBUG   2024-02-19 15:03:06.837875 +08:00 < Content-Type: application/json
  DEBUG   2024-02-19 15:03:06.837895 +08:00 < Content-Length: 692
  DEBUG   2024-02-19 15:03:06.837928 +08:00 < Connection: keep-alive
  DEBUG   2024-02-19 15:03:06.837948 +08:00 < Keep-Alive: timeout=5
  DEBUG   2024-02-19 15:03:06.837965 +08:00 < Allow: GET, POST, HEAD, OPTIONS
  DEBUG   2024-02-19 15:03:06.837983 +08:00 < Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS
  DEBUG   2024-02-19 15:03:06.838024 +08:00 < Access-Control-Allow-Headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding, sentry-trace, baggage, X-CSRFToken
  DEBUG   2024-02-19 15:03:06.838047 +08:00 < Access-Control-Expose-Headers: X-Sentry-Error, Retry-After
  DEBUG   2024-02-19 15:03:06.838066 +08:00 < Access-Control-Allow-Origin: *
  DEBUG   2024-02-19 15:03:06.838084 +08:00 < Vary: Accept-Language, Cookie
  DEBUG   2024-02-19 15:03:06.838102 +08:00 < Content-Language: en
  DEBUG   2024-02-19 15:03:06.838118 +08:00 < X-Frame-Options: deny
  DEBUG   2024-02-19 15:03:06.838135 +08:00 < X-Content-Type-Options: nosniff
  DEBUG   2024-02-19 15:03:06.838152 +08:00 < X-XSS-Protection: 1; mode=block
  DEBUG   2024-02-19 15:03:06.838175 +08:00 < Content-Security-Policy-Report-Only: base-uri 'none'; connect-src 'self'; script-src 'self' 'unsafe-inline' 'report-sample'; frame-ancestors 'none'; object-src 'none'; default-src 'none'; img-src 'self' blob: data: <https://secure.gravatar.com>; font-src 'self' data:; style-src 'self' 'unsafe-inline'
  DEBUG   2024-02-19 15:03:06.838200 +08:00 < Set-Cookie: sentrysid=eyJfbGFuZ3VhZ2UiOiJlbiJ9:1rbxgB:XmSyoKcJ3B8Dt7_cs5FDhg3ALgQ; expires=Mon, 04 Mar 2024 07:03:07 GMT; HttpOnly; Max-Age=1209600; Path=/; Secure
  DEBUG   2024-02-19 15:03:06.838310 +08:00 response status: 208
  DEBUG   2024-02-19 15:03:06.838394 +08:00 body: {"id":62,"version":"release_01","status":"open","shortVersion":"release_01","versionInfo":{"package":null,"version":{"raw":"release_01"},"description":"release_01","buildHash":null},"ref":null,"url":null,"dateReleased":"2024-02-19T06:34:33.843392Z","dateCreated":"2024-02-19T06:32:01.560411Z","data":{},"newGroups":0,"owner":null,"commitCount":0,"lastCommit":null,"deployCount":0,"lastDeploy":null,"authors":[],"projects":[{"id":6,"slug":"bibivue","name":"bibivue","newGroups":0,"platform":"javascript-vue","platforms":[],"hasHealthData":false}],"firstEvent":"2024-02-19T06:35:12Z","lastEvent":"2024-02-19T06:36:33Z","currentProjectMeta":{},"userAgent":"sentry-cli/2.28.6 vite-plugin/2.14.1"}
  DEBUG   2024-02-19 15:03:06.857909 +08:00 request GET <https://fenewmonitor.eastmoney.com/api/0/projects/emnj/bibivue/releases/release_01/files/?cursor=&checksum=06dd9901e1d20697b1dfe8adf86fa573cff55295&checksum=37f4b75b24afebacc7cf19b3fb3c808de50c78dd&checksum=49a90d2b8362b23a67021fd81dff5bfa26d1c2e9&checksum=bac15ca53ae96e3971351059ce609a75f120c788&checksum=dabb356f23843387342d685033d2d1b5cb8444e3>
  DEBUG   2024-02-19 15:03:06.857929 +08:00 using token authentication
  DEBUG   2024-02-19 15:03:06.857935 +08:00 retry number 0, max retries: 0
  DEBUG   2024-02-19 15:03:06.858017 +08:00 > GET /api/0/projects/emnj/bibivue/releases/release_01/files/?cursor=&checksum=06dd9901e1d20697b1dfe8adf86fa573cff55295&checksum=37f4b75b24afebacc7cf19b3fb3c808de50c78dd&checksum=49a90d2b8362b23a67021fd81dff5bfa26d1c2e9&checksum=bac15ca53ae96e3971351059ce609a75f120c788&checksum=dabb356f23843387342d685033d2d1b5cb8444e3 HTTP/1.1
  DEBUG   2024-02-19 15:03:06.858023 +08:00 > Host: fenewmonitor.eastmoney.com
  DEBUG   2024-02-19 15:03:06.858026 +08:00 > Accept: */*
  DEBUG   2024-02-19 15:03:06.858029 +08:00 > Connection: TE
  DEBUG   2024-02-19 15:03:06.858032 +08:00 > TE: gzip
  DEBUG   2024-02-19 15:03:06.858034 +08:00 > User-Agent: sentry-cli/2.28.6
  DEBUG   2024-02-19 15:03:06.858048 +08:00 > Authorization: Bearer 005db25e***
  DEBUG   2024-02-19 15:03:07.014268 +08:00 < HTTP/1.1 200 OK
  DEBUG   2024-02-19 15:03:07.014405 +08:00 < Server: Tengine
  DEBUG   2024-02-19 15:03:07.014428 +08:00 < Date: Mon, 19 Feb 2024 07:03:07 GMT
  DEBUG   2024-02-19 15:03:07.014448 +08:00 < Content-Type: application/json
  DEBUG   2024-02-19 15:03:07.014468 +08:00 < Content-Length: 2
  DEBUG   2024-02-19 15:03:07.014487 +08:00 < Connection: keep-alive
  DEBUG   2024-02-19 15:03:07.014515 +08:00 < Keep-Alive: timeout=5
  DEBUG   2024-02-19 15:03:07.014542 +08:00 < Link: <http://fenewmonitor.eastmoney.com/api/0/projects/emnj/bibivue/releases/release_01/files/?checksum=06dd9901e1d20697b1dfe8adf86fa573cff55295&checksum=37f4b75b24afebacc7cf19b3fb3c808de50c78dd&checksum=49a90d2b8362b23a67021fd81dff5bfa26d1c2e9&checksum=bac15ca53ae96e3971351059ce609a75f120c788&checksum=dabb356f23843387342d685033d2d1b5cb8444e3&cursor=100:-1:1>; rel="previous"; results="false"; cursor="100:-1:1", <http://fenewmonitor.eastmoney.com/api/0/projects/emnj/bibivue/releases/release_01/files/?checksum=06dd9901e1d20697b1dfe8adf86fa573cff55295&checksum=37f4b75b24afebacc7cf19b3fb3c808de50c78dd&checksum=49a90d2b8362b23a67021fd81dff5bfa26d1c2e9&checksum=bac15ca53ae96e3971351059ce609a75f120c788&checksum=dabb356f23843387342d685033d2d1b5cb8444e3&cursor=100:1:0>; rel="next"; results="false"; cursor="100:1:0"
  DEBUG   2024-02-19 15:03:07.014571 +08:00 < Allow: GET, POST, HEAD, OPTIONS
  DEBUG   2024-02-19 15:03:07.014591 +08:00 < Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS
  DEBUG   2024-02-19 15:03:07.014616 +08:00 < Access-Control-Allow-Headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding, sentry-trace, baggage, X-CSRFToken
  DEBUG   2024-02-19 15:03:07.014647 +08:00 < Access-Control-Expose-Headers: X-Sentry-Error, Retry-After
  DEBUG   2024-02-19 15:03:07.014667 +08:00 < Access-Control-Allow-Origin:*
  DEBUG   2024-02-19 15:03:07.014685 +08:00 < Vary: Accept-Language, Cookie
  DEBUG   2024-02-19 15:03:07.014703 +08:00 < Content-Language: en
  DEBUG   2024-02-19 15:03:07.014720 +08:00 < X-Frame-Options: deny
  DEBUG   2024-02-19 15:03:07.014737 +08:00 < X-Content-Type-Options: nosniff
  DEBUG   2024-02-19 15:03:07.014756 +08:00 < X-XSS-Protection: 1; mode=block
  DEBUG   2024-02-19 15:03:07.014777 +08:00 < Content-Security-Policy-Report-Only: base-uri 'none'; connect-src 'self'; script-src 'self' 'unsafe-inline' 'report-sample'; frame-ancestors 'none'; object-src 'none'; default-src 'none'; img-src 'self' blob: data: <https://secure.gravatar.com>; font-src 'self' data:; style-src 'self' 'unsafe-inline'
  DEBUG   2024-02-19 15:03:07.014800 +08:00 < Set-Cookie: sentrysid=eyJfbGFuZ3VhZ2UiOiJlbiJ9:1rbxgB:XmSyoKcJ3B8Dt7_cs5FDhg3ALgQ; expires=Mon, 04 Mar 2024 07:03:07 GMT; HttpOnly; Max-Age=1209600; Path=/; Secure
  DEBUG   2024-02-19 15:03:07.014863 +08:00 response status: 200
  DEBUG   2024-02-19 15:03:07.016509 +08:00 body: []
  DEBUG   2024-02-19 15:03:07.035403 +08:00 request POST <https://fenewmonitor.eastmoney.com/api/0/projects/emnj/bibivue/releases/>
  DEBUG   2024-02-19 15:03:07.035425 +08:00 using token authentication
  DEBUG   2024-02-19 15:03:07.035433 +08:00 json body: {"version":"release_01","projects":["bibivue"]}
  DEBUG   2024-02-19 15:03:07.035437 +08:00 retry number 0, max retries: 0
  DEBUG   2024-02-19 15:03:07.035523 +08:00 > POST /api/0/projects/emnj/bibivue/releases/ HTTP/1.1
  DEBUG   2024-02-19 15:03:07.035528 +08:00 > Host: fenewmonitor.eastmoney.com
  DEBUG   2024-02-19 15:03:07.035531 +08:00 > Accept: */*
  DEBUG   2024-02-19 15:03:07.035534 +08:00 > Connection: TE
  DEBUG   2024-02-19 15:03:07.035536 +08:00 > TE: gzip
  DEBUG   2024-02-19 15:03:07.035539 +08:00 > User-Agent: sentry-cli/2.28.6
  DEBUG   2024-02-19 15:03:07.035553 +08:00 > Authorization: Bearer 005db25e***
  DEBUG   2024-02-19 15:03:07.035556 +08:00 > Content-Type: application/json
  DEBUG   2024-02-19 15:03:07.035558 +08:00 > Content-Length: 47
  DEBUG   2024-02-19 15:03:07.349535 +08:00 < HTTP/1.1 208 Already Reported
  DEBUG   2024-02-19 15:03:07.349558 +08:00 < Server: Tengine
  DEBUG   2024-02-19 15:03:07.349562 +08:00 < Date: Mon, 19 Feb 2024 07:03:07 GMT
  DEBUG   2024-02-19 15:03:07.349566 +08:00 < Content-Type: application/json
  DEBUG   2024-02-19 15:03:07.349570 +08:00 < Content-Length: 692
  DEBUG   2024-02-19 15:03:07.349574 +08:00 < Connection: keep-alive
  DEBUG   2024-02-19 15:03:07.349576 +08:00 < Keep-Alive: timeout=5
  DEBUG   2024-02-19 15:03:07.349579 +08:00 < Allow: GET, POST, HEAD, OPTIONS
  DEBUG   2024-02-19 15:03:07.349583 +08:00 < Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS
  DEBUG   2024-02-19 15:03:07.349590 +08:00 < Access-Control-Allow-Headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding, sentry-trace, baggage, X-CSRFToken
  DEBUG   2024-02-19 15:03:07.349595 +08:00 < Access-Control-Expose-Headers: X-Sentry-Error, Retry-After
  DEBUG   2024-02-19 15:03:07.349599 +08:00 < Access-Control-Allow-Origin: *
  DEBUG   2024-02-19 15:03:07.349602 +08:00 < Vary: Accept-Language, Cookie
  DEBUG   2024-02-19 15:03:07.349605 +08:00 < Content-Language: en
  DEBUG   2024-02-19 15:03:07.349608 +08:00 < X-Frame-Options: deny
  DEBUG   2024-02-19 15:03:07.349611 +08:00 < X-Content-Type-Options: nosniff
  DEBUG   2024-02-19 15:03:07.349614 +08:00 < X-XSS-Protection: 1; mode=block
  DEBUG   2024-02-19 15:03:07.349618 +08:00 < Content-Security-Policy-Report-Only: base-uri 'none'; connect-src 'self'; script-src 'self' 'unsafe-inline' 'report-sample'; frame-ancestors 'none'; object-src 'none'; default-src 'none'; img-src 'self' blob: data: <https://secure.gravatar.com>; font-src 'self' data:; style-src 'self' 'unsafe-inline'
  DEBUG   2024-02-19 15:03:07.349622 +08:00 < Set-Cookie: sentrysid=eyJfbGFuZ3VhZ2UiOiJlbiJ9:1rbxgB:XmSyoKcJ3B8Dt7_cs5FDhg3ALgQ; expires=Mon, 04 Mar 2024 07:03:07 GMT; HttpOnly; Max-Age=1209600; Path=/; Secure
  DEBUG   2024-02-19 15:03:07.349636 +08:00 response status: 208
  DEBUG   2024-02-19 15:03:07.349642 +08:00 body: {"id":62,"version":"release_01","status":"open","shortVersion":"release_01","versionInfo":{"package":null,"version":{"raw":"release_01"},"description":"release_01","buildHash":null},"ref":null,"url":null,"dateReleased":"2024-02-19T06:34:33.843392Z","dateCreated":"2024-02-19T06:32:01.560411Z","data":{},"newGroups":0,"owner":null,"commitCount":0,"lastCommit":null,"deployCount":0,"lastDeploy":null,"authors":[],"projects":[{"id":6,"slug":"bibivue","name":"bibivue","newGroups":0,"platform":"javascript-vue","platforms":[],"hasHealthData":false}],"firstEvent":"2024-02-19T06:35:12Z","lastEvent":"2024-02-19T06:36:33Z","currentProjectMeta":{},"userAgent":"sentry-cli/2.28.6 vite-plugin/2.14.1"}
> Bundling completed in 0.172s
> Bundled 5 files for upload
> Bundle ID: 7ce56458-5f51-58d1-b623-62531776d52d
> Optimizing completed in 0.007s
  INFO    2024-02-19 15:03:07.529735 +08:00 using 'gzip' compression for chunk upload
  DEBUG   2024-02-19 15:03:07.573490 +08:00 request POST <http://fenewmonitor.eastmoney.com/api/0/organizations/emnj/chunk-upload/>
  DEBUG   2024-02-19 15:03:07.573630 +08:00 sending form data
  DEBUG   2024-02-19 15:03:07.573647 +08:00 using token authentication
  DEBUG   2024-02-19 15:03:07.573662 +08:00 retry number 0, max retries: 5
  DEBUG   2024-02-19 15:03:07.575492 +08:00 > POST /api/0/organizations/emnj/chunk-upload/ HTTP/1.1
  DEBUG   2024-02-19 15:03:07.575512 +08:00 > Host: fenewmonitor.eastmoney.com
  DEBUG   2024-02-19 15:03:07.575526 +08:00 > Accept: */*
  DEBUG   2024-02-19 15:03:07.575552 +08:00 > Connection: TE
  DEBUG   2024-02-19 15:03:07.575578 +08:00 > TE: gzip
  DEBUG   2024-02-19 15:03:07.575593 +08:00 > User-Agent: sentry-cli/2.28.6
  DEBUG   2024-02-19 15:03:07.576185 +08:00 > Authorization: Bearer 005db25e***
  DEBUG   2024-02-19 15:03:07.576199 +08:00 > Content-Length: 1244746
  DEBUG   2024-02-19 15:03:07.576212 +08:00 > Content-Type: multipart/form-data; boundary=------------------------4db0579469d34784
  DEBUG   2024-02-19 15:03:07.622727 +08:00 < HTTP/1.1 302 Moved Temporarily
  DEBUG   2024-02-19 15:03:07.622757 +08:00 < Server: Tengine
  DEBUG   2024-02-19 15:03:07.622771 +08:00 < Date: Mon, 19 Feb 2024 07:03:07 GMT
  DEBUG   2024-02-19 15:03:07.622785 +08:00 < Content-Type: text/html
  DEBUG   2024-02-19 15:03:07.622798 +08:00 < Content-Length: 215
  DEBUG   2024-02-19 15:03:07.622811 +08:00 < Connection: keep-alive
  DEBUG   2024-02-19 15:03:07.622824 +08:00 < Keep-Alive: timeout=5
  DEBUG   2024-02-19 15:03:07.622836 +08:00 < Location: <https://fenewmonitor.eastmoney.com:443/api/0/organizations/emnj/chunk-upload/>
  DEBUG   2024-02-19 15:03:07.622956 +08:00 response status: 302
**error: Project not found. Please check that you entered the project and organization slugs correctly.**
  INFO    2024-02-19 15:03:07.624829 +08:00 Skipping update nagger update check
szokeasaurusrex commented 7 months ago

It seems like the CLI is configured to upload to the incorrect URL. Your issue description states that your self-hosted instance is located at https://fenewmonitor.money.com/, but according to the CLI logs, the CLI is making requests to https://fenewmonitor.eastmoney.com.

You should reconfigure the CLI URL to https://fenewmonitor.money.com/. You can configure the URL in an environment variable or the .sentryclirc configuration file.

beyondverage0908 commented 7 months ago

Awkward, there was a typo. The correct access address is: https://fenewmonitor.eastmoney.com/. I have also configured the .sentryclirc file as follows. However, the same error still occurs.

szokeasaurusrex commented 7 months ago

@beyondverage0908 You accidentally included your auth token in the screenshot of your .sentryclirc above. I already edited your comment to remove the screenshot, but I would recommend that you revoke the auth token immediately and regenerate it. Since this issue is public, anyone could have seen your auth token!

I will continue investigating, thank you for the information!

beyondverage0908 commented 7 months ago

@szokeasaurusrex Thank you very much. Through continuous attempts, it was found that after modifying the system.url-prefix and system.internal-url-prefix in the deployment configuration file config.yml, the previous error no longer appeared, and the artifacts were successfully uploaded.

before:

system.url-prefix: "http://fenewmonitor.eastmoney.com"
system.internal-url-prefix: 'http://web:9000'

after:

# use https
system.url-prefix: "https://fenewmonitor.eastmoney.com"
system.internal-url-prefix: "https://fenewmonitor.eastmoney.com"

However, I still have a question. After a successful upload, the release details panel displays the number of artifacts. Yet, when navigating to the Source Maps panel, I cannot view the artifact files. As shown in the following image:

release details panel : image

Source Maps panel: image image

szokeasaurusrex commented 7 months ago

@beyondverage0908, according to the issue description, you were uploading to release_01, not to release_v_04. Can you please check and confirm whether you were uploading to the correct release?