From d95e98b45fd11af51d80d686daf43d48b496a550 Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Thu, 2 May 2024 13:10:14 -0400 Subject: [PATCH 1/2] add identifier to pkarr error for debugging purposes --- packages/dids/src/methods/did-dht.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dids/src/methods/did-dht.ts b/packages/dids/src/methods/did-dht.ts index 00dbfafad..b5acb8b25 100644 --- a/packages/dids/src/methods/did-dht.ts +++ b/packages/dids/src/methods/did-dht.ts @@ -948,7 +948,7 @@ export class DidDhtDocument { }); } catch (error: any) { - throw new DidError(DidErrorCode.InternalError, `Failed to put Pkarr record: ${error.message}`); + throw new DidError(DidErrorCode.InternalError, `Failed to put Pkarr record for identifier ${identifier}: ${error.message}`); } // Return `true` if the DHT request was successful, otherwise return `false`. From 26d2f011a0425f0eb25fe7ec8ae22a9d05a52c5f Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Thu, 2 May 2024 13:12:10 -0400 Subject: [PATCH 2/2] add changeset --- .changeset/tall-mugs-wink.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/tall-mugs-wink.md diff --git a/.changeset/tall-mugs-wink.md b/.changeset/tall-mugs-wink.md new file mode 100644 index 000000000..38898ad91 --- /dev/null +++ b/.changeset/tall-mugs-wink.md @@ -0,0 +1,5 @@ +--- +"@web5/dids": patch +--- + +We sometimes get failures in CI publishing to the DHT. In order to make debugging these errors easier, we add the identifier to the error thrown.