Title: [BUG] Endless checking of an unpaid invoice (processor LNBits) · Issue #333 · cameri/nostream · GitHub
Open Graph Title: [BUG] Endless checking of an unpaid invoice (processor LNBits) · Issue #333 · cameri/nostream
X Title: [BUG] Endless checking of an unpaid invoice (processor LNBits) · Issue #333 · cameri/nostream
Description: Describe the bug Every minute, several times a second, LNBits is contacted to check the status of the LN invoice (my nostream is paid relay), which was canceled 6 days ago. LNBits returns a 404 error, since this hash of the invoice no lo...
Open Graph Description: Describe the bug Every minute, several times a second, LNBits is contacted to check the status of the LN invoice (my nostream is paid relay), which was canceled 6 days ago. LNBits returns a 404 err...
X Description: Describe the bug Every minute, several times a second, LNBits is contacted to check the status of the LN invoice (my nostream is paid relay), which was canceled 6 days ago. LNBits returns a 404 err...
Opengraph URL: https://github.com/cameri/nostream/issues/333
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Endless checking of an unpaid invoice (processor LNBits)","articleBody":"**Describe the bug**\r\n\r\nEvery minute, several times a second, LNBits is contacted to check the status of the LN invoice (my nostream is paid relay), which was canceled 6 days ago. LNBits returns a 404 error, since this hash of the invoice no longer exists for him. But norstream keeps checking the bill again and again every minute. A restart of nostream doesn't help.\r\n\r\n**To Reproduce**\r\n\r\nI do not know, I know that on that day I just deployed the nostream server. Perhaps this is due to the fact that at the beginning I mistakenly indicated in settings.yml:\r\n\r\n* payments.feeSchedules.admission.amount: 199000\r\n* limits.event.pubkey.minBalance: 1000000\r\n\r\nI forgot to adjust the second parameter. Having paid 199 sats for a user, I thought that his account would work. But it turned out that the minimum was 1000 sats. Then I paid for him 5 more times and his account started working. Later, I changed the second parameter to 199 sats. I don't know if it caused this error or not, but it's the only thing that comes to my mind.\r\n\r\n**Expected behavior**\r\n\r\nI think that if the payment verification already shows a HTTP 404 error from LNBits - this should stop. Or stop at least for the reason that the account has expired a long time ago (it had an expiration date of 10 minutes)\r\n\r\n**Screenshots**\r\n\r\nTo see logs below\r\n\r\n**System (please complete the following information):**\r\n - OS: Ubuntu 22.04\r\n - Platform: Docker\r\n - Version: `d1d4cb9e2512e44812f539a5da61db0e97cec266` (`v1.25.2` + 3 commits)\r\n\r\n**Logs**\r\n\r\n```\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | Unable to get invoice 523a9e10e1a318b0a8e049a88b87e911afae5792b1b4f400805e660dd9366f1a. Reason: AxiosError: Request failed with status code 404\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | at settle (/app/node_modules/axios/dist/node/axios.cjs:1859:12)\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | at IncomingMessage.handleStreamEnd (/app/node_modules/axios/dist/node/axios.cjs:2723:11)\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | at IncomingMessage.emit (node:events:525:35)\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | at endReadableNT (node:internal/streams/readable:1359:12)\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | code: 'ERR_BAD_REQUEST',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | config: {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | transitional: {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | silentJSONParsing: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | forcedJSONParsing: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | clarifyTimeoutError: false\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | adapter: [ 'xhr', 'http' ],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | transformRequest: [ [Function: transformRequest] ],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | transformResponse: [ [Function: transformResponse] ],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | timeout: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | xsrfCookieName: 'XSRF-TOKEN',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | xsrfHeaderName: 'X-XSRF-TOKEN',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxContentLength: -1,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxBodyLength: -1,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | env: { FormData: [Function], Blob: [class Blob] },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | validateStatus: [Function: validateStatus],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | headers: AxiosHeaders {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | Accept: 'application/json, text/plain, */*',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'content-type': 'application/json',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'x-api-key': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'User-Agent': 'axios/1.2.6',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'Accept-Encoding': 'gzip, compress, deflate, br'\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | baseURL: 'https://lnbits.my.host.com/',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxRedirects: 1,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | method: 'get',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | url: '/api/v1/payments/523a9e10e1a318b0a8e049a88b87e911afae5792b1b4f400805e660dd9366f1a',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | data: undefined\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | request: \u003cref *1\u003e ClientRequest {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _events: [Object: null prototype] {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | abort: [Function (anonymous)],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | aborted: [Function (anonymous)],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | connect: [Function (anonymous)],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | error: [Function (anonymous)],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | socket: [Function (anonymous)],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | timeout: [Function (anonymous)],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | finish: [Function: requestOnFinish]\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _eventsCount: 7,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _maxListeners: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | outputData: [],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | outputSize: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | writable: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | destroyed: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _last: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | chunkedEncoding: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | shouldKeepAlive: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxRequestsOnConnectionReached: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _defaultKeepAlive: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | useChunkedEncodingByDefault: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | sendDate: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _removedConnection: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _removedContLen: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _removedTE: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | strictContentLength: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _contentLength: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _hasBody: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _trailer: '',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | finished: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _headerSent: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _closed: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | socket: TLSSocket {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _tlsOptions: [Object],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _secureEstablished: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _securePending: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _newSessionPending: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _controlReleased: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | secureConnecting: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _SNICallback: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | servername: 'lnbits.my.host.com',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | alpnProtocol: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | authorized: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | authorizationError: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | encrypted: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _events: [Object: null prototype],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _eventsCount: 10,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | connecting: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _hadError: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _parent: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _host: 'lnbits.my.host.com',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _closeAfterHandlingError: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _readableState: [ReadableState],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _maxListeners: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _writableState: [WritableState],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | allowHalfOpen: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _sockname: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _pendingData: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _pendingEncoding: '',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | server: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _server: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | ssl: [TLSWrap],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _requestCert: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _rejectUnauthorized: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | parser: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _httpMessage: [Circular *1],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(res)]: [TLSWrap],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(verified)]: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(pendingSession)]: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(async_id_symbol)]: 78,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kHandle)]: [TLSWrap],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(lastWriteQueueSize)]: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(timeout)]: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kBuffer)]: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kBufferCb)]: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kBufferGen)]: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kCapture)]: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kSetNoDelay)]: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kSetKeepAlive)]: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kSetKeepAliveInitialDelay)]: 60,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kBytesRead)]: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kBytesWritten)]: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(connect-options)]: [Object]\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _header: 'GET /api/v1/payments/523a9e10e1a318b0a8e049a88b87e911afae5792b1b4f400805e660dd9366f1a HTTP/1.1\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'Accept: application/json, text/plain, */*\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'content-type: application/json\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'x-api-key: XXXXXXXXXXXXXXXXXXXXXXXXXXXX\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'User-Agent: axios/1.2.6\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'Accept-Encoding: gzip, compress, deflate, br\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'Host: lnbits.my.host.com\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'Connection: close\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | '\\r\\n',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _keepAliveTimeout: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _onPendingData: [Function: nop],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | agent: Agent {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _events: [Object: null prototype],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _eventsCount: 2,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _maxListeners: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | defaultPort: 443,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | protocol: 'https:',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | options: [Object: null prototype],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | requests: [Object: null prototype] {},\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | sockets: [Object: null prototype],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | freeSockets: [Object: null prototype] {},\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | keepAliveMsecs: 1000,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | keepAlive: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxSockets: Infinity,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxFreeSockets: 256,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | scheduling: 'lifo',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxTotalSockets: Infinity,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | totalSocketCount: 1,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxCachedSessions: 100,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _sessionCache: [Object],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kCapture)]: false\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | socketPath: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | method: 'GET',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxHeaderSize: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | insecureHTTPParser: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | joinDuplicateHeaders: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | path: '/api/v1/payments/523a9e10e1a318b0a8e049a88b87e911afae5792b1b4f400805e660dd9366f1a',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _ended: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | res: IncomingMessage {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _readableState: [ReadableState],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _events: [Object: null prototype],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _eventsCount: 4,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _maxListeners: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | socket: [TLSSocket],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | httpVersionMajor: 1,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | httpVersionMinor: 1,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | httpVersion: '1.1',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | complete: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | rawHeaders: [Array],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | rawTrailers: [],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | joinDuplicateHeaders: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | aborted: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | upgrade: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | url: '',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | method: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | statusCode: 404,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | statusMessage: 'Not Found',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | client: [TLSSocket],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _consuming: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _dumped: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | req: [Circular *1],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | responseUrl: 'https://lnbits.my.host.com/api/v1/payments/523a9e10e1a318b0a8e049a88b87e911afae5792b1b4f400805e660dd9366f1a',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | redirects: [],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kCapture)]: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kHeaders)]: [Object],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kHeadersCount)]: 10,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kTrailers)]: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kTrailersCount)]: 0\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | aborted: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | timeoutCb: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | upgradeOrConnect: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | parser: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxHeadersCount: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | reusedSocket: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | host: 'lnbits.my.host.com',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | protocol: 'https:',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _redirectable: Writable {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _writableState: [WritableState],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _events: [Object: null prototype],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _eventsCount: 3,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _maxListeners: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _options: [Object],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _ended: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _ending: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _redirectCount: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _redirects: [],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _requestBodyLength: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _requestBodyBuffers: [],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _onNativeResponse: [Function (anonymous)],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _currentRequest: [Circular *1],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _currentUrl: 'https://lnbits.my.host.com/api/v1/payments/523a9e10e1a318b0a8e049a88b87e911afae5792b1b4f400805e660dd9366f1a',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kCapture)]: false\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kCapture)]: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kBytesWritten)]: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kNeedDrain)]: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(corked)]: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kOutHeaders)]: [Object: null prototype] {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | accept: [Array],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'content-type': [Array],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'x-api-key': [Array],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'user-agent': [Array],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'accept-encoding': [Array],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | host: [Array]\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(errored)]: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kUniqueHeaders)]: null\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | response: {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | status: 404,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | statusText: 'Not Found',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | headers: AxiosHeaders {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | server: 'nginx/1.18.0 (Ubuntu)',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | date: 'Wed, 12 Jul 2023 16:57:53 GMT',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'content-type': 'application/json',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'content-length': '36',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | connection: 'close'\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | config: {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | transitional: [Object],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | adapter: [Array],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | transformRequest: [Array],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | transformResponse: [Array],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | timeout: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | xsrfCookieName: 'XSRF-TOKEN',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | xsrfHeaderName: 'X-XSRF-TOKEN',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxContentLength: -1,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxBodyLength: -1,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | env: [Object],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | validateStatus: [Function: validateStatus],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | headers: [AxiosHeaders],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | baseURL: 'https://lnbits.my.host.com/',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxRedirects: 1,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | method: 'get',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | url: '/api/v1/payments/523a9e10e1a318b0a8e049a88b87e911afae5792b1b4f400805e660dd9366f1a',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | data: undefined\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | request: \u003cref *1\u003e ClientRequest {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _events: [Object: null prototype],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _eventsCount: 7,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _maxListeners: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | outputData: [],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | outputSize: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | writable: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | destroyed: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _last: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | chunkedEncoding: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | shouldKeepAlive: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxRequestsOnConnectionReached: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _defaultKeepAlive: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | useChunkedEncodingByDefault: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | sendDate: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _removedConnection: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _removedContLen: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _removedTE: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | strictContentLength: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _contentLength: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _hasBody: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _trailer: '',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | finished: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _headerSent: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _closed: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | socket: [TLSSocket],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _header: 'GET /api/v1/payments/523a9e10e1a318b0a8e049a88b87e911afae5792b1b4f400805e660dd9366f1a HTTP/1.1\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'Accept: application/json, text/plain, */*\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'content-type: application/json\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'x-api-key: XXXXXXXXXXXXXXXXXXXXXXXXXXXX\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'User-Agent: axios/1.2.6\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'Accept-Encoding: gzip, compress, deflate, br\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'Host: lnbits.my.host.com\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | 'Connection: close\\r\\n' +\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | '\\r\\n',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _keepAliveTimeout: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _onPendingData: [Function: nop],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | agent: [Agent],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | socketPath: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | method: 'GET',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxHeaderSize: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | insecureHTTPParser: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | joinDuplicateHeaders: undefined,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | path: '/api/v1/payments/523a9e10e1a318b0a8e049a88b87e911afae5792b1b4f400805e660dd9366f1a',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _ended: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | res: [IncomingMessage],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | aborted: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | timeoutCb: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | upgradeOrConnect: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | parser: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | maxHeadersCount: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | reusedSocket: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | host: 'lnbits.my.host.com',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | protocol: 'https:',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | _redirectable: [Writable],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kCapture)]: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kBytesWritten)]: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kNeedDrain)]: false,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(corked)]: 0,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kOutHeaders)]: [Object: null prototype],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(errored)]: null,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | [Symbol(kUniqueHeaders)]: null\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | data: { detail: 'Payment does not exist.' }\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | }\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | }\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | Unable to get invoice from payments processor. Reason: AxiosError: Request failed with status code 404\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | at settle (/app/node_modules/axios/dist/node/axios.cjs:1859:12)\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | at IncomingMessage.handleStreamEnd (/app/node_modules/axios/dist/node/axios.cjs:2723:11)\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | at IncomingMessage.emit (node:events:525:35)\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | at endReadableNT (node:internal/streams/readable:1359:12)\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | code: 'ERR_BAD_REQUEST',\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | config: {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | transitional: {\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | silentJSONParsing: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | forcedJSONParsing: true,\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | clarifyTimeoutError: false\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | },\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | adapter: [ 'xhr', 'http' ],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | transformRequest: [ [Function: transformRequest] ],\r\nJul 12 16:57:53 my.host.com start[1141393]: nostream | transformResponse: [ [Function: transformResponse] ],\r\n...\r\n```\r\n\r\n**Additional context**\r\n\r\nLND side - invoice data:\r\n\r\n```\r\nlncli lookupinvoice 523a9e10e1a318b0a8e049a88b87e911afae5792b1b4f400805e660dd9366f1a\r\n{\r\n \"memo\": \"YEStr.ME Admission Fee for npub17XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"r_preimage\": \"158c56c7YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\",\r\n \"r_hash\": \"523a9e10e1a318b0a8e049a88b87e911afae5792b1b4f400805e660dd9366f1a\",\r\n \"value\": \"199\",\r\n \"value_msat\": \"199000\",\r\n \"settled\": false,\r\n \"creation_date\": \"1688624770\",\r\n \"settle_date\": \"0\",\r\n \"payment_request\": \"lnbc19XXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"description_hash\": null,\r\n \"expiry\": \"600\",\r\n \"fallback_addr\": \"\",\r\n \"cltv_expiry\": \"80\",\r\n \"route_hints\": [\r\n ],\r\n \"private\": false,\r\n \"add_index\": \"1277\",\r\n \"settle_index\": \"0\",\r\n \"amt_paid\": \"0\",\r\n \"amt_paid_sat\": \"0\",\r\n \"amt_paid_msat\": \"0\",\r\n \"state\": \"CANCELED\",\r\n \"htlcs\": [\r\n ],\r\n \"features\": {\r\n \"9\": {\r\n \"name\": \"tlv-onion\",\r\n \"is_required\": false,\r\n \"is_known\": true\r\n },\r\n \"14\": {\r\n \"name\": \"payment-addr\",\r\n \"is_required\": true,\r\n \"is_known\": true\r\n },\r\n \"17\": {\r\n \"name\": \"multi-path-payments\",\r\n \"is_required\": false,\r\n \"is_known\": true\r\n }\r\n },\r\n \"is_keysend\": false,\r\n \"payment_addr\": \"b103eec86ba64f2170be7cd735c084067d5f073018d26011aeab305e5a2f241c\",\r\n \"is_amp\": false,\r\n \"amp_invoice_state\": {\r\n }\r\n}\r\n```\r\n\r\nHere:\r\n\r\n```\r\n$ date --date='@1688624770'\r\nThu Jul 6 06:26:10 UTC 2023\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/Perlover","@type":"Person","name":"Perlover"},"datePublished":"2023-07-12T17:22:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/333/nostream/issues/333"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e19a479f-e607-90d3-9a42-10d903871b59 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97D8:20C7B:1E689DF:2A3A26B:697CB0B3 |
| html-safe-nonce | 1ac7238d461cdda230a87817e9f0923776bc411b69a7a3e0921707905ab51f37 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0Q4OjIwQzdCOjFFNjg5REY6MkEzQTI2Qjo2OTdDQjBCMyIsInZpc2l0b3JfaWQiOiI3ODMzODIxNTk1NzY3MTg5NjgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 849dc903dc7ae15376ddbf417d672084e2938ac6c1ab7c287437d0fe59cd597b |
| hovercard-subject-tag | issue:1801422826 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cameri/nostream/333/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a71e6b61a30e6ae3752b4dd31d66dbdf0a8b28f3e701cf9000d5cd5df0011b69/cameri/nostream/issues/333 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a71e6b61a30e6ae3752b4dd31d66dbdf0a8b28f3e701cf9000d5cd5df0011b69/cameri/nostream/issues/333 |
| og:image:alt | Describe the bug Every minute, several times a second, LNBits is contacted to check the status of the LN invoice (my nostream is paid relay), which was canceled 6 days ago. LNBits returns a 404 err... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Perlover |
| hostname | github.com |
| expected-hostname | github.com |
| None | f30e23787c843d478679169eb69bc1bf04c9aaf526e14cad93570a516ad7b047 |
| turbo-cache-control | no-preview |
| go-import | github.com/cameri/nostream git https://github.com/cameri/nostream.git |
| octolytics-dimension-user_id | 378886 |
| octolytics-dimension-user_login | cameri |
| octolytics-dimension-repository_id | 482383845 |
| octolytics-dimension-repository_nwo | cameri/nostream |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 482383845 |
| octolytics-dimension-repository_network_root_nwo | cameri/nostream |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 741eb70fda44f52186d2172f41929617819039d5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width