Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strapi Transfer CLI Request failed with status code 401 #20111

Open
suryaadtmaja opened this issue Apr 14, 2024 · 1 comment
Open

Strapi Transfer CLI Request failed with status code 401 #20111

suryaadtmaja opened this issue Apr 14, 2024 · 1 comment
Assignees
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:data-transfer Source is core/data-transfer package status: pending reproduction Waiting for free time to reproduce the issue, or more information

Comments

@suryaadtmaja
Copy link

suryaadtmaja commented Apr 14, 2024

Bug report

Required System information

  • Node.js version: v20.9.0
  • NPM version: 10.1.0
  • Strapi version: 4.23.0
  • Database: mysql
  • Operating system: MacOs Monterey
  • Is your project Javascript or Typescript: Typescript

Describe the bug

⠧ assets: 0 transfered (size: 0) (elapsed: 0 ms) node:events:492
throw er; // Unhandled 'error' event
^

Error: Request failed with status code 401
at ClientRequest. (/Users/fil/strapi-projects/node_modules/@strapi/data-transfer/dist/index.js:2304:17)
at Object.onceWrapper (node:events:629:26)
at ClientRequest.emit (node:events:514:28)
at ClientRequest.emit (node:domain:488:12)
at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:535:22)
at TLSSocket.emit (node:events:514:28)
at TLSSocket.emit (node:domain:488:12)
at addChunk (node:internal/streams/readable:376:12)
Emitted 'error' event on Duplexify instance at:
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v20.9.0

Cannot transfer anything with strapi cli

Steps to reproduce the behavior

  1. create transfer token on strapi cloud
  2. run the transfer from local development yarn strapi transfer --to https://cloud.strapiapp.com/admin --to-token 123123123 --force

Expected behavior

Transfer data successfully

Screenshots

Screen Shot 2024-04-14 at 23 47 51

If applicable, add screenshots to help explain your problem.

Code snippets

If applicable, add code samples to help explain your problem.

Additional context

I'm using the right token, and it keep returning the same error without any clue whats wrong with it other than 401 response

@suryaadtmaja suryaadtmaja closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2024
@suryaadtmaja suryaadtmaja reopened this Apr 14, 2024
@ststaynov
Copy link

Ref #19674 ?

@joshuaellis joshuaellis added issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around status: pending reproduction Waiting for free time to reproduce the issue, or more information source: core:data-transfer Source is core/data-transfer package labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:data-transfer Source is core/data-transfer package status: pending reproduction Waiting for free time to reproduce the issue, or more information
Projects
Status: To be reviewed (Open)
Status: To review
Development

No branches or pull requests

4 participants