bluesky-social / indigo

Go source code for Bluesky's atproto services.
https://atproto.com
Apache License 2.0
834 stars 111 forks source link

atproto.RepoDescribeRepo fails with a decode error for did:plc:wflozfzpewefv46qof26vbzm #163

Open karalabe opened 1 year ago

karalabe commented 1 year ago

decoding xrpc response: unrecognized type: ""

karalabe commented 1 year ago

More info at https://github.com/bluesky-social/indigo/issues/344, seems indigo wants a type field, which is not part of a didDoc?

karalabe commented 1 year ago

Seems the type of https://github.com/bluesky-social/indigo/blob/main/api/atproto/repodescribeRepo.go#L18 should be did.Document?

timburks commented 1 year ago

As a temporary workaround, this makes the JSON decoder skip fields that can't be decoded due to missing types: https://github.com/timburks/indigo/commit/84caff0c6764a4cca665aa7c9bf240b1c57d6e87