Self-hosted "Profile not found" #2645
-
logpds-1 |
{
"level": 50,
"time": 1721208261085,
"pid": 6,
"hostname": "d99c15d24ec2",
"name": "InvalidRequest",
"status": 400,
"message": "Profile not found",
"msg": "error in xrpc method app.bsky.actor.getProfile"
}
bsky-1 |
{
"level": 50,
"time": 1721208261069,
"pid": 7,
"hostname": "6a75d6082678",
"name": "xrpc-server",
"status": 400,
"message": "Profile not found",
"msg": "error in xrpc method app.bsky.actor.getProfile"
} pdspds used two src.
testf=~/.config/atproto/token.json
token=`cat $f|jq -r .accessJwt`
did=`cat $f|jq -r .did`
handle=`cat $f|jq -r .handle`
host=`cat $f|jq -r ".didDoc.service.[].serviceEndpoint"`
get_profile=app.bsky.actor.getProfile
get_timeline=app.bsky.feed.getTimeline
# get profile (did/handle)
$ curl -sL "$host/xrpc/$get_profile?actor=$did" -H "Authorization: Bearer $token"
{"error":"InvalidRequest","message":"Profile not found"}
$ curl -sL "$host/xrpc/$get_profile?actor=$handle" -H "Authorization: Bearer $token"
{"error":"InvalidRequest","message":"Profile not found"}
# get timeline
$ curl -sL "$host/xrpc/$get_timeline" -H "Authorization: Bearer $token"
{"feed":[]} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
@syui regarding my self-hosting env, I succeeded to call PDS/xrpc/app.bsky.actor.getProfile as normal, like below. my self-hosting env is based on the main branches of bluesky-social/* asof 2024-07-17 (today's commits). you can check all commit hashes via https://github.com/itaru2622/bluesky-REPO/tree/asof-2024-07-17 curl -sL "https://$host/xrpc/app.bsky.actor.getProfile?actor=$handle" -H "Authorization: Bearer $token" | jq
{
"did": "$did",
"handle": "$handle",
"associated": {
"lists": 0,
"feedgens": 0,
"starterPacks": 0,
"labeler": false
},
"viewer": {
"muted": false,
"blockedBy": false
},
"labels": [],
"followersCount": 0,
"followsCount": 0,
"postsCount": 0
} |
Beta Was this translation helpful? Give feedback.
@syui regarding my self-hosting env, I succeeded to call PDS/xrpc/app.bsky.actor.getProfile as normal, like below.
my self-hosting env is based on the main branches of bluesky-social/* asof 2024-07-17 (today's commits).
refer https://github.com/itaru2622/bluesky-selfhost-env/blob/master/README.md to test with mine env.
all docker images are also published at https://hub.docker.com/search?q=itaru2622%2Fbluesky- so you need not re-build any.
just pulling docker images and starts them, with make command.
you can check all commit hashes via https://github.com/itaru2622/bluesky-REPO/tree/asof-2024-07-17
like https://github.com/itaru2622/bluesky-atproto/tree/asof-2024-07-17 for atproto (PDS and…