Somebody took my server down (rbr.bio), it's cool. Time to run it as a service

/root/nostr-relay-info-server/dist/index.js:14501

throw new Error("hexToBytes: received invalid unpadded hex" + hex2.length);

^

Error: hexToBytes: received invalid unpadded hex63

at Object.hexToBytes (/root/nostr-relay-info-server/dist/index.js:14501:11)

at encodeBytes (/root/nostr-relay-info-server/dist/index.js:17404:20)

at Object.npubEncode (/root/nostr-relay-info-server/dist/index.js:17398:10)

at profile (/root/nostr-relay-info-server/dist/index.js:18011:42)

at Server. (/root/nostr-relay-info-server/dist/index.js:18151:23)

at Server.emit (node:events:512:28)

at parserOnIncoming (node:_http_server:1067:12)

at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)

Node.js v19.7.0

Reply to this note

Please Login to reply.

Discussion

I still don't know what created the problem, but I added multiple levels of error handling, logging and restarting for the next time. rbr.bio is back