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

Error: Internal Server Error on calling agent.getRepostedBy #3277

Open
RLeek opened this issue Dec 20, 2024 · 0 comments
Open

Error: Internal Server Error on calling agent.getRepostedBy #3277

RLeek opened this issue Dec 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@RLeek
Copy link

RLeek commented Dec 20, 2024

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:

  1. 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'})

  1. This was run using deno as follows:

deno run -allow-net main.ts

  1. 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

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

  • Operating system: Windows
  • Was originally found running deno, however issue was still replicated when running node v18.17.1
@RLeek RLeek added the bug Something isn't working label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant