forked from arcbtc/fossa
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Similar to #3190
Differences on v1.3.1 and FOSSA v1.3.0 "FOSSA strings"
- return 404 if LNbits is not restarted.
- Fo
eg
http://192.168.1.nnn/fossa/api/v1/lnurl/bPwCS,9v5QRMmyKeXmnz3S,EUR
Logs before restart - long URLs
POST /upgrades/60f74331a6f4968e2847ee07247c4d22a172245a2d62257a72124a1d8dd9df9d/fossa/api/v1/fossa HTTP/1.1" 200
PUT /upgrades/60f74331a6f4968e2847ee07247c4d22a172245a2d62257a72124a1d8dd9df9d/fossa/api/v1/fossa/bPwCS HTTP/1.1" 200
And after restart - also long URLs
2025-10-28 13:43:04.00 | INFO | <remoteIP>:56766 - "GET /fossa/static/js/index.js?v=1761658932 HTTP/1.1" 200
2025-10-28 13:43:04.32 | INFO | <remoteIP>:56765 - "GET /static/bundle.min.css?v=1761658932 HTTP/1.1" 200
2025-10-28 13:43:04.32 | INFO | <remoteIP>:56768 - "GET /static/bundle-components.min.js?v=1761658932 HTTP/1.1" 200
2025-10-28 13:43:04.32 | INFO | <remoteIP>:56767 - "GET /static/bundle.min.js?v=1761658932 HTTP/1.1" 200
2025-10-28 13:43:06.43 | INFO | <remoteIP>:56768 - "GET /api/v1/currencies HTTP/1.1" 200
2025-10-28 13:43:06.50 | INFO | <remoteIP>:56767 - "GET /upgrades/60f74331a6f4968e2847ee07247c4d22a172245a2d62257a72124a1d8dd9df9d/fossa/api/v1/fossa HTTP/1.1" 200
2025-10-28 13:43:06.52 | DEBUG | Websocket connected to e345ddb83e3041d19a1bf468f3d905cd
2025-10-28 13:43:06.53 | INFO | <remoteIP>:56770 - "WebSocket /api/v1/ws/e345ddb83e3041d19a1bf468f3d905cd" [accepted]
2025-10-28 13:43:06.53 | INFO | connection open
2025-10-28 13:43:06.57 | INFO | <remoteIP>:56767 - "GET /static/fonts/material-icons-v50.woff2?v=1761658932 HTTP/1.1" 200
2025-10-28 13:43:06.61 | INFO | <remoteIP>:56768 - "GET /api/v1/extension HTTP/1.1" 200
2025-10-28 13:43:06.63 | INFO | <remoteIP>:56768 - "GET /favicon.ico HTTP/1.1" 307
2025-10-28 13:43:06.65 | INFO | <remoteIP>:56765 - "GET /upgrades/60f74331a6f4968e2847ee07247c4d22a172245a2d62257a72124a1d8dd9df9d/fossa/api/v1/atm HTTP/1.1" 200
2025-10-28 13:43:06.71 | INFO | <remoteIP>:56767 - "GET /api/v1/extension HTTP/1.1" 200
2025-10-28 13:43:06.76 | INFO | <remoteIP>:56765 - "GET /api/v1/extension HTTP/1.1" 200
2025-10-28 13:43:41.73 | ERROR | RequestValidationError: [{'loc': ('query', 'p'), 'msg': 'field required', 'type': 'value_error.missing'}]
2025-10-28 13:43:41.73 | INFO | <remoteIP>:56815 - "GET /upgrades/60f74331a6f4968e2847ee07247c4d22a172245a2d62257a72124a1d8dd9df9d/fossa/api/v1/lnurl/kHi2r%2CBYcodEmTYUqcwuxz%2CUSD HTTP/1.1" 400
But FOSSA Strings (URLS) it creates are short before and also after restart.
Unfortunately there is another issue:
- FOSSA string doesn't include :port.
http://192.168.1.nnn/fossa/api/v1/lnurl/bPwCS,9v5QRMmyKeXmnz3S,EUR
this would be correct on local net
http://192.168.1.nnn:5000/fossa/api/v1/lnurl/bPwCS,9v5QRMmyKeXmnz3S,EUR
Metadata
Metadata
Assignees
Labels
No labels