Import Instagram archive to a Bluesky account

Auth fails on non-Bsky.social hosted account #1

open
opened by tynanpurdy.com

I tried to use this with my alt account, which is hosted on an independent PDS and it failed. I will upload a copy of the auth error. Worked fine with my main account, which is on a mushroom PDS.

tynanpurdy@MacBookAir instagram-to-bluesky % npm run start

instagramtobluesky@0.7.5 start npx tsc --sourceMap && node ./dist/main.js

[11:51:54.350] INFO (40389): Import started at 2025-09-07T15:51:54.349Z [11:51:54.350] INFO (40389): SourceFolder: "instagram-tynanpurdy-2025-09-05-hcNI62sH" username: "alt.tynanpurdy.com" SIMULATE: false [11:51:54.350] INFO (40389): --- SIMULATE mode is disabled, posts will be imported --- [11:51:54.477] ERROR (40389): Authentication error /Users/tynanpurdy/Documents/instagram/instagram-to-bluesky/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 (/Users/tynanpurdy/Documents/instagram/instagram-to-bluesky/node_modules/@atproto/xrpc/dist/xrpc-client.js:75:23) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async CredentialSession.login (/Users/tynanpurdy/Documents/instagram/instagram-to-bluesky/node_modules/@atproto/api/dist/atp-agent.js:257:25) at async BlueskyClient.login (/Users/tynanpurdy/Documents/instagram/instagram-to-bluesky/dist/bluesky/bluesky.js:19:13) at async main (/Users/tynanpurdy/Documents/instagram/instagram-to-bluesky/dist/instagram-to-bluesky.js:105:9) at async /Users/tynanpurdy/Documents/instagram/instagram-to-bluesky/dist/main.js:5:5 { error: 'AuthenticationRequired', headers: { 'access-control-allow-origin': '*', connection: 'keep-alive', 'content-length': '77', 'content-type': 'application/json; charset=utf-8', date: 'Sun, 07 Sep 2025 15:51:54 GMT', etag: 'W/"4d-98r3hvgolnybv7tgksQiZbSE7Zg"', 'ratelimit-limit': '10', 'ratelimit-policy': '10;w=86400', 'ratelimit-remaining': '9', 'ratelimit-reset': '1757346714', vary: 'Accept-Encoding', 'x-powered-by': 'Express' }, success: false, status: 401 }

Node.js v23.11.0

Try this branch added_custom_psd_support and let me know. I have added new env variable ATPROTO_PDS to set a custom PDS

I struggled to set up my own PDS instance. I will continue to get a test account running and will validate the branch.

sign up or login to add to the discussion
Labels
good-first-issue
assignee

None yet.

Participants 3
AT URI
at://did:plc:6ayddqghxhciedbaofoxkcbs/sh.tangled.repo.issue/3ly6nwyqpna22