pubky / pkarr

Public Key Addressable Resource Records (sovereign TLDs)
https://app.pkarr.org
MIT License
153 stars 17 forks source link

do not try to parse responses if there is an error #29

Closed rklaehn closed 10 months ago

rklaehn commented 10 months ago

also use is_success instead of comparing with OK, so other 200 series status codes don't cause a problem.

It's not really a bad bug. It will just parse the not found message, notice that it is not a proper packet, and produce an error.

2023-10-19T16:08:18.824459Z ERROR tracker: error dialing peer cytwbysn6cs6jbhdadk6ypmrbg2w3nrcrptl5xlts2yurk4mq5ca: Invalid SignedPacket bytes length, expected at least 72 bytes but got: 9