import { TestPds, TestPlc } from "@atproto/dev-env"; import consola from "consola"; async function main() { const plc = await TestPlc.create({ port: 2580, }); const pds = await TestPds.create({ didPlcUrl: plc.url, port: 2583, }); const client = pds.getClient(); await client.createAccount({ handle: "test-account.test", password: "password-test", email: "email.test@example.com", }); consola.info("Logged in:", client.did); await client.post({ text: "test", }); } main(); /* results in: $ deno run -A ./test.ts [4:33:16 PM] ℹ Logged in: did:plc:eidpn3m5v6lvdgbezyjaxio6 error: Uncaught (in promise) Error: Internal Server Error at AtpAgent.call (file:///workspaces/airport/node_modules/.deno/@atproto+xrpc@0.7.2/node_modules/@atproto/xrpc/dist/xrpc-client.js:75:23) at eventLoopTick (ext:core/01_core.js:179:7) at async AppBskyFeedPostRecord.create (file:///workspaces/airport/node_modules/.deno/@atproto+api@0.16.3/node_modules/@atproto/api/dist/client/index.js:955:21) at async main (file:///workspaces/airport/test.ts:24:3) */