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

Missing required arguments: archive-folder, bluesky-username, bluesky-password #77

Open
cjabradshaw opened this issue Nov 15, 2024 · 7 comments

Comments

@cjabradshaw
Copy link

No matter what I seem to do, I consistently get the following error:

Missing required arguments: archive-folder, bluesky-username, bluesky-password

Example script run in Terminal (macOS Sequoia 15.1):

npm run start -- -- --archive-folder '~/Users/xxx/xxx/xx/xx/xx/twitterarchive2024/' --bluesky-username xxxx.bsky.social --bluesky-password xxx-xxx-xxx --twitter-handles xxx --simulate

@marcomaroni-github
Copy link
Owner

marcomaroni-github commented Nov 15, 2024

@cjabradshaw try to update npm

look at this #60 (comment)

If you confirm that solve the problem, I'll update the readme.

@cjabradshaw
Copy link
Author

Thanks for the quick reply. I already have npm v23.2.0 installed, so that wasn't the problem. However, I called node directly as per the comment thread above, and managed to get it to work. Many thanks!

@shoelaced
Copy link

Also had to call node directly, but then it worked.

@marcomaroni-github
Copy link
Owner

@clemensv whot do you think?

@antanij
Copy link

antanij commented Nov 17, 2024

Doing this on WSL. Was getting the same error. Followed this thread and used
node app.js --archive-folder="/mnt/c/Users/[..]/OneDrive/Documents/Twitter_archive" --bluesky-username dummy[...].bsky.social --bluesky-password [...] --twitter-handles [...] --simulate --disable-import-reply --api-delay 3000

Getting error:

(node:65395) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
/mnt/c/Users/[...]/OneDrive/Documents/x2bsky/twitter-to-bluesky-0.10.0/node_modules/@atproto/xrpc/dist/xrpc-client.js:75
                throw new types_1.XRPCError(resCode, error, message, resHeaders);
                      ^

XRPCError: Invalid identifier or password
    at XrpcClient.call (/mnt/c/Users/[...]/OneDrive/Documents/x2bsky/twitter-to-bluesky-0.10.0/node_modules/@atproto/xrpc/dist/xrpc-client.js:75:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async CredentialSession.login (/mnt/c/Users/[...]/OneDrive/Documents/x2bsky/twitter-to-bluesky-0.10.0/node_modules/@atproto/api/dist/atp-agent.js:257:25)
    at async RateLimitedAgent.call (/mnt/c/Users/[...]OneDrive/Documents/x2bsky/twitter-to-bluesky-0.10.0/app.js:84:24)
    at async main (/mnt/c/Users/[...]/OneDrive/Documents/x2bsky/twitter-to-bluesky-0.10.0/app.js:474:9) {
  error: 'AuthenticationRequired',
  headers: {
    'access-control-allow-origin': '*',
    connection: 'keep-alive',
    'content-length': '77',
    'content-type': 'application/json; charset=utf-8',
    date: 'Sun, 17 Nov 2024 00:18:12 GMT',
    etag: 'W/"4d-98r3hvgolnybv7tgksQiZbSE7Zg"',
    'ratelimit-limit': '30',
    'ratelimit-policy': '30;w=300',
    'ratelimit-remaining': '28',
    'ratelimit-reset': '1731802880',
    vary: 'Accept-Encoding',
    'x-powered-by': 'Express'
  },
  success: false,
  status: 401
}

Node.js v22.11.0

@clemensv
Copy link
Contributor

This is definitely a weird NPM quirk. The easiest way to circumvent it would probably be a pair of import.bat/import.sh scripts that invoke the compiler as needed and then run app.js directly.

@ffylin
Copy link

ffylin commented Nov 17, 2024

I had the same issue. Calling node directly didn’t fix it for me. I tried using .env and that worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants