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

PDS: Error viewing profiles #21

Open
rudyfraser opened this issue Sep 25, 2024 · 1 comment
Open

PDS: Error viewing profiles #21

rudyfraser opened this issue Sep 25, 2024 · 1 comment

Comments

@rudyfraser
Copy link
Member

Viewing rsky hosted profile from canonical PDS loads profile correctly
Screenshot 2024-09-25 at 2 16 02 PM

GET https://shiitake.us-east.host.bsky.network/xrpc/app.bsky.actor.getProfile?actor=did:plc:hivp4of4zpkjdlxijfplzyjd returns

{
    "did": "did:plc:hivp4of4zpkjdlxijfplzyjd",
    "handle": "rudy717.blacksky.app",
    "associated":
    {
        "lists": 0,
        "feedgens": 0,
        "starterPacks": 0,
        "labeler": false
    },
    "viewer":
    {
        "muted": false,
        "blockedBy": false,
        "following": "at://did:plc:w4xbfzo7kqfes5zb7r6qv3rw/app.bsky.graph.follow/3l4vsfoz5yo2l",
        "knownFollowers":
        {
            "count": 1,
            "followers":
            [
                {
                    "did": "did:plc:w4xbfzo7kqfes5zb7r6qv3rw",
                    "handle": "rudyfraser.com",
                    "displayName": "Rudy wants revolution.",
                    "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:w4xbfzo7kqfes5zb7r6qv3rw/bafkreigpzxzalqsknweyuesljngr7d3zbmcy76626loiaophjvllphncty@jpeg",
                    "associated":
                    {
                        "chat":
                        {
                            "allowIncoming": "all"
                        }
                    },
                    "viewer":
                    {
                        "muted": false,
                        "blockedBy": false
                    },
                    "labels":
                    [],
                    "createdAt": "2023-05-01T03:43:42.434Z"
                }
            ]
        }
    },
    "labels":
    [],
    "createdAt": "0001-01-01T00:00:00.000Z",
    "indexedAt": "0001-01-01T00:00:00.000Z",
    "followersCount": 1,
    "followsCount": 0,
    "postsCount": 0
}

Viewing any profile while logged into rsky pds returns an error in app:
Screenshot 2024-09-25 at 2 14 56 PM

GET https://blacksky.app/xrpc/app.bsky.actor.getProfile?actor=did%3Aplc%3Aw4xbfzo7kqfes5zb7r6qv3rw returns:

{
    "did": "did:plc:w4xbfzo7kqfes5zb7r6qv3rw",
    "handle": "rudyfraser.com",
    "displayName": "Rudy wants revolution.",
    "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:w4xbfzo7kqfes5zb7r6qv3rw/bafkreigpzxzalqsknweyuesljngr7d3zbmcy76626loiaophjvllphncty@jpeg",
    "associated":
    {
        "lists": 1,
        "feedgens": 4,
        "starterPacks": 1,
        "labeler": false,
        "chat":
        {
            "allowIncoming": "all"
        }
    },
    "viewer":
    {
        "muted": false,
        "blockedBy": false,
        "followedBy": "at://did:plc:w4xbfzo7kqfes5zb7r6qv3rw/app.bsky.graph.follow/3l4vsfoz5yo2l"
    },
    "labels":
    [],
    "createdAt": "2023-05-01T03:43:42.434Z",
    "description": "Building community networks and technologies blackskyweb.xyz + https://wethepeople.nyc\nmove fast and break chains;\nDonate: opencollective.com/blacksky",
    "indexedAt": "2024-09-25T02:02:41.308Z",
    "banner": "https://cdn.bsky.app/img/banner/plain/did:plc:w4xbfzo7kqfes5zb7r6qv3rw/bafkreigidwsijobc7zd7jtam4hkegim5v7byyafwpitxu6eqviahokkege@jpeg",
    "followersCount": 4321,
    "followsCount": 180,
    "postsCount": 1758
}
@rudyfraser
Copy link
Member Author

Maybe related:

Me: Any idea why the app view would return "0001-01-01T00:00:00.000Z" for createdAt and indexedAt for a profile (3p pds implementation)
e.g. https://api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=did:plc:hivp4of4zpkjdlxijfplzyjd

Jaz: that should be time.Now() of when the profile was first seen basically. we didn't see a profile creation for the actor. we just resolved the DID<->Handle. so it's actually a null createdAt/indexedAt which is getting turned into the zero time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant