But everyone else can zap me, this is weird...

Reply to this note

Please Login to reply.

Discussion

Do you have any country restrictions applied to your zapper node? Let me check quickly and come back to you! 🐢🐾🫑

Not that I know of but it is going over cloudflare

I can access https://pay.utxo.one/.well-known/lnurlp/zap from web browser! 🐢🐾🫑

🐢🐾🫑 Damus gives me error!

Hmmmmmm... Ok checking cloudflare logs thanks for helping

Anytime! 🐢🐾🫑

CORS? πŸΆπŸΎπŸ€”

curl -I https://pay.utxo.one/.well-known/lnurlp/zap

HTTP/2 405

date: Fri, 05 May 2023 01:28:20 GMT

allow: GET

content-security-policy: script-src 'self'

referrer-policy: same-origin

x-content-type-options: nosniff

x-frame-options: DENY

x-xss-protection: 1; mode=block

cf-cache-status: DYNAMIC

report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=Z637JraaPjTHoe5nChKvqWfwWnmNl7upNtdtXYfOFrruRpGWK4dPf89CSlvKp5iGOdxeLXIQTYqgUYBEw3YzOjip1GpZ8xv3jKMFxYNK6HbgWkPSSk9T2snS8xZxCE8AEqubnhdzZy0BsR4%3D"}],"group":"cf-nel","max_age":604800}

nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}

strict-transport-security: max-age=0; includeSubDomains

server: cloudflare

cf-ray: 7c2534c9ba39e04b-NRT

alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400

In CF panel, go to your Website, Rules, Transform Rules, Modify Response Headers. Add a rule β€œAll Incoming requests β€œ

Add Access-Control-Allow-Origin *

🐢🐾🫑

And zapping you from snort. HTTP-400 (bad request) 🐢🐾🫑

Ok thanks can you try now?

Same problem! Did you clear cache? 🐢🐾🫑

Ok I see it in snort, gonna fix soon! Thank you

Snort console log:

cess to fetch at 'https://pay.utxo.one/.well-known/lnurlp/zap' from origin 'https://snort.social' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

CORS! Fucking CORS πŸΆπŸΎπŸ˜‚

You’ll need to disable CF rule. Now you have two CORS headers! πŸΆπŸΎπŸ˜‚πŸ˜‚πŸ˜‚

Ok I think it's working now officially

I am still failing from Damus! Let me try your profile and snort again 🐢🐾🫑

Profile worked🐢🐾🫑 314⚑️

πŸ™πŸ™

Damus on Mac worked! Damus on iPhone still failing despite Clear Cache. Let me restart my phone and try! 🐢🐾🫑

I think now it’s cache! I would suggest adding this rule! 🐢🐾🫑

And clear cache for https://pay.utxo.one/* 🐢🐾🫑

Ok purged cache and added page rule! 🫑🫑

This is weird! I still cannot zap your note for whatever reasons. Snort also gives me a strange issue now.

https://pay.utxo.one/BTC/UILNURL/pay/i/xCjhqApga3aN5vMrrxpD9?amount=1000&nostr=%7B%22id%22%3A%223d1dbdb5b813812eda26239939099e61487201ff19a3627f20794cb12b9bb26e%22%2C%22pubkey%22%3A%228fb140b4e8ddef97ce4b821d247278a1a4353362623f64021484b372f948000c%22%2C%22content%22%3A%22%22%2C%22kind%22%3A9734%2C%22created_at%22%3A1683253000%2C%22tags%22%3A%5B%5B%22e%22%2C%22539832ba16c2b60e5ef68f8cee3cd5fc4d6747e6b5c55f86aef6e6b7c5bef636%22%5D%2C%5B%22p%22%2C%22e2ccf7cf20403f3f2a4a55b328f0de3be38558a7d5f33632fdaaefc726c1c8eb%22%5D%2C%5B%22relays%22%2C%22wss%3A%2F%2Flightningrelay.com%2F%22%2C%22wss%3A%2F%2Fnostr-pub.semisol.dev%2F%22%2C%22wss%3A%2F%2Frelay.nostrati.com%2F%22%2C%22wss%3A%2F%2Fnostr.azte.co%2F%22%2C%22wss%3A%2F%2Frelay.nostr.band%2F%22%2C%22wss%3A%2F%2Fbotrelay.com%2F%22%2C%22wss%3A%2F%2Frelay.damus.io%2F%22%2C%22wss%3A%2F%2Frelay.nostrgraph.net%2F%22%2C%22wss%3A%2F%2Frelay.nostriches.org%2F%22%2C%22wss%3A%2F%2Funiverse.nostrich.land%2F%22%2C%22wss%3A%2F%2Fnostr.semisol.dev%2F%22%2C%22wss%3A%2F%2Frelay.utxo.one%2F%22%2C%22wss%3A%2F%2Frelay.orangepill.dev%2F%22%2C%22wss%3A%2F%2Frelay.nostrview.com%2F%22%2C%22wss%3A%2F%2Fnostr.wine%2F%22%2C%22wss%3A%2F%2Feden.nostr.land%2F%22%2C%22wss%3A%2F%2Foffchain.pub%2F%22%2C%22wss%3A%2F%2Frelay.nostrplebs.com%2F%22%2C%22wss%3A%2F%2Frelay.nostrich.land%2F%22%2C%22wss%3A%2F%2Fpuravida.nostr.land%2F%22%2C%22wss%3A%2F%2Fnos.lol%2F%22%2C%22wss%3A%2F%2Fpurplepag.es%2F%22%5D%2C%5B%22amount%22%2C%221000%22%5D%5D%2C%22sig%22%3A%22f4d6be4260ddb3a5c8a3b22fb23adf83b7a2c9bc8ccb95ffc357f589ea5a76a6ec438de716ab90590904810537c0eee81b1abf5031f73362faa386286915a9f4%22%7D

{"status":"ERROR","reason":"Lightning node could not generate invoice with description hash: The HTTP status code of the response was not expected (500)."}

in.a2133f39.js:1 GET https://pay.utxo.one/BTC/UILNURL/pay/i/xCjhqApga3aN5vMrrxpD9?amount=1000&nostr=%7B%22id%22%3A%223d1dbdb5b813812eda26239939099e61487201ff19a3627f20794cb12b9bb26e%22%2C%22pubkey%22%3A%228fb140b4e8ddef97ce4b821d247278a1a4353362623f64021484b372f948000c%22%2C%22content%22%3A%22%22%2C%22kind%22%3A9734%2C%22created_at%22%3A1683253000%2C%22tags%22%3A%5B%5B%22e%22%2C%22539832ba16c2b60e5ef68f8cee3cd5fc4d6747e6b5c55f86aef6e6b7c5bef636%22%5D%2C%5B%22p%22%2C%22e2ccf7cf20403f3f2a4a55b328f0de3be38558a7d5f33632fdaaefc726c1c8eb%22%5D%2C%5B%22relays%22%2C%22wss%3A%2F%2Flightningrelay.com%2F%22%2C%22wss%3A%2F%2Fnostr-pub.semisol.dev%2F%22%2C%22wss%3A%2F%2Frelay.nostrati.com%2F%22%2C%22wss%3A%2F%2Fnostr.azte.co%2F%22%2C%22wss%3A%2F%2Frelay.nostr.band%2F%22%2C%22wss%3A%2F%2Fbotrelay.com%2F%22%2C%22wss%3A%2F%2Frelay.damus.io%2F%22%2C%22wss%3A%2F%2Frelay.nostrgraph.net%2F%22%2C%22wss%3A%2F%2Frelay.nostriches.org%2F%22%2C%22wss%3A%2F%2Funiverse.nostrich.land%2F%22%2C%22wss%3A%2F%2Fnostr.semisol.dev%2F%22%2C%22wss%3A%2F%2Frelay.utxo.one%2F%22%2C%22wss%3A%2F%2Frelay.orangepill.dev%2F%22%2C%22wss%3A%2F%2Frelay.nostrview.com%2F%22%2C%22wss%3A%2F%2Fnostr.wine%2F%22%2C%22wss%3A%2F%2Feden.nostr.land%2F%22%2C%22wss%3A%2F%2Foffchain.pub%2F%22%2C%22wss%3A%2F%2Frelay.nostrplebs.com%2F%22%2C%22wss%3A%2F%2Frelay.nostrich.land%2F%22%2C%22wss%3A%2F%2Fpuravida.nostr.land%2F%22%2C%22wss%3A%2F%2Fnos.lol%2F%22%2C%22wss%3A%2F%2Fpurplepag.es%2F%22%5D%2C%5B%22amount%22%2C%221000%22%5D%5D%2C%22sig%22%3A%22f4d6be4260ddb3a5c8a3b22fb23adf83b7a2c9bc8ccb95ffc357f589ea5a76a6ec438de716ab90590904810537c0eee81b1abf5031f73362faa386286915a9f4%22%7D 400

(anony

I think I know why!!!! I cannot zap you as anon or private! πŸΆπŸΎπŸ«‘πŸ˜‚

Yes! Public zaps only! Seems that your zapper has issues with anon and private zaps! Use nostdress for real! Or check zapper logs and see why it goes http-500 when anon. Make sure you allow for a 512 chat comment on the invoice! This might be it! 🐢🐾🫑

Ah ok I'll bring this up with the team. I am a btcpayserver dev I have to stay loyal 🫑🫑

🐢🐾🫑 understandable! We better fix it! That was fun troubleshooting! Thank you! Real pleasure! πŸΆπŸΎπŸ«‘πŸ«‚