mikedilger / relay-tester

nostr relay tester
MIT License
13 stars 2 forks source link

NIP-11 lookup fails #1

Closed alexgleason closed 5 months ago

alexgleason commented 5 months ago

curl:

curl -H 'Accept: application/nostr+json' https://gleasonator.dev/relay
{"name":"Gleasonator","description":"Building the next generation of social media. Speak Freely.","pubkey":"db0e60d10b9555a39050c258d460c5c461f6d18f467aa9f62de1a728b8a891a4","contact":"postmaster@gleasonator.dev","supported_nips":[1,5,9,11,16,45,50,46,98],"software":"Ditto","version":"0.0.0","limitation":{}}%

relay-tester results:

nip11_provided: FAIL (JSON: expected value at line 1 column 1)
claimed_support_for_nip1: UNTESTED
claimed_support_for_nip4: FAIL (JSON: expected value at line 1 column 1)
claimed_support_for_nip9: FAIL (JSON: expected value at line 1 column 1)
claimed_support_for_nip11: FAIL (JSON: expected value at line 1 column 1)
claimed_support_for_nip26: FAIL (JSON: expected value at line 1 column 1)
claimed_support_for_nip29: FAIL (JSON: expected value at line 1 column 1)
claimed_support_for_nip40: FAIL (JSON: expected value at line 1 column 1)
claimed_support_for_nip42: FAIL (JSON: expected value at line 1 column 1)
claimed_support_for_nip45: FAIL (JSON: expected value at line 1 column 1)
claimed_support_for_nip50: FAIL (JSON: expected value at line 1 column 1)
claimed_support_for_nip59: FAIL (JSON: expected value at line 1 column 1)
claimed_support_for_nip65: FAIL (JSON: expected value at line 1 column 1)
claimed_support_for_nip70: UNTESTED
claimed_support_for_nip94: FAIL (JSON: expected value at line 1 column 1)
claimed_support_for_nip96: FAIL (JSON: expected value at line 1 column 1)

I think it's because it's normalizing the URL before calling it, but my relay is at a path.

https://github.com/mikedilger/relay-tester/blob/64bbbf7d68669044e3844371d8530d5d0eab42a3/src/runner.rs#L151

mikedilger commented 5 months ago

I see. I can fix that.

mikedilger commented 5 months ago

I took this code from elsewhere and I don't remember why I did it that way.