Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty nostr.json #20

Open
dadofsambonzuki opened this issue Oct 4, 2024 · 4 comments
Open

Empty nostr.json #20

dadofsambonzuki opened this issue Oct 4, 2024 · 4 comments

Comments

@dadofsambonzuki
Copy link

dadofsambonzuki commented Oct 4, 2024

Have setup a domain and a user, but have an empty nostr.json.

It was also unclear what the relay field did. Shouldn't NIP-05 be totally independent of relay?

Running 0.2.9 ext and 0.12.11 lnbits.

@dadofsambonzuki
Copy link
Author

Follow-up ...

I'm seeing a 500 - No API Key found for LN Address error pop-up.

I've re-installed the extension and nuked the DB, but no change.

@gallizoltan
Copy link

Have setup a domain and a user, but have an empty nostr.json.

It's kind of counterintuitive, but nostr.json is not a static file, it's generated dynamically every time it's opened. Please, try it with a valid name parameter, like this:
https://core.btcmap.org/nostrnip5/api/v1/domain/QhuWY6kMqu5qVPGhmPSPAN/nostr.json?name={username}
Also, a more informative error message would be nice if the parameter is missing.

It was also unclear what the relay field did. Shouldn't NIP-05 be totally independent of relay?

The relay field is 'recommended', see the specs: https://github.com/nostr-protocol/nips/blob/master/05.md

I'm seeing a 500 - No API Key found for LN Address error pop-up.

Yeah, that was a stumper for me too. The lnurlp (Pay Links) extension needs to be installed (it wasn't installed by default for me). Then the nostrnip5 extension has a settings page that can be accessed as an admin. See the screenshot below: image
You can find your Lightning Address Admin Key under your wallet's Node URL, API keys and API docs section.

Don't give up, give it another try; it took me some time, but now it works for me!

@dadofsambonzuki
Copy link
Author

Ah, I didn't know it was dynamically generated. However, it should return a non-empty file when is is generated, right? Clients don't provide query parameters afiak.

Even using the filter doesn't work for me.

@gallizoltan
Copy link

Ah, I didn't know it was dynamically generated. However, it should return a non-empty file when is is generated, right? Clients don't provide query parameters afiak.

Even using the filter doesn't work for me.

Clients should provide query parameters, as per the specs: https://github.com/nostr-protocol/nips/blob/master/05.md#reasoning-for-the-well-knownnostrjsonnamelocal-part-format

It took a while, but now it works for me: https://lnbits.noszter.hu/nostrnip5/api/v1/domain/JTai6rMtFMhjjSfYt7duaC/nostr.json?name=zoltan

Can you check your nostrnip5 plugin? Is your address present and active?
nostrnip5screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants