You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the @atproto/api package in typescript, I called the function agent.getRepostedBy() with a URI and received an internal server error. Using similar functions like agent.getLikes() or agent.getPostThread() with the same URI returned the expected values.
Steps to reproduce the behavior:
The following code in main.ts was added
import { AtpAgent } from '@atproto/api';
const agent = new AtpAgent({
service: 'https://bsky.social'
})
await agent.login({
identifier: '', // actual identifer removed
password: '' // actual password removed
})
await agent.getRepostedBy({"uri": 'at://bnewbold.bsky.team/app.bsky.feed.post/3ldpdt5trts2n'})
This was run using deno as follows:
deno run -allow-net main.ts
The following error was received
error: Uncaught (in promise) Error: Internal Server Error
at AtpAgent.call (file:///C:/Users/Ricky/AppData/Local/deno/npm/registry.npmjs.org/@atproto/xrpc/0.6.5/dist/xrpc-client.js:75:23)
at eventLoopTick (ext:core/01_core.js:175:7)
at async file:///C:/Users/Ricky/Coding/Bluesky-Tree-Block/tree-block/main.ts:13:1
Using the @atproto/api package in typescript, I called the function agent.getRepostedBy() with a URI and received an internal server error. Using similar functions like agent.getLikes() or agent.getPostThread() with the same URI returned the expected values.
Steps to reproduce the behavior:
deno run -allow-net main.ts
Expected behavior
Expected behaviour is to not throw an Error:Internal Server Error and return the payload specified in https://docs.bsky.app/docs/api/app-bsky-feed-get-reposted-by
Details
The text was updated successfully, but these errors were encountered: