logseq / logseq

A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: http://trello.com/b/8txSM12G/roadmap
https://logseq.com
GNU Affero General Public License v3.0
32.05k stars 1.87k forks source link

FetchError: request to ... failed, reason: getaddrinfo EBUSY #10996

Open davidak opened 7 months ago

davidak commented 7 months ago

Search first

What Happened?

I have set-up my firewall to block all traffic at night, so i sleep instead of continue watching youtube.

With no internet access, logseq explodes in the terminal into stacktraces.

Reproduce the Bug

  1. have logseq open in terminal
  2. have no internet access
  3. wait for logseq look for updates again
  4. see a bunch of errors in terminal output

Expected Behavior

a user should not see cryptic errors like stack traces. if the user should know about it, show an actionable error in the GUI, if looking for updates is not important enough, show a useful error only in debug log level

Screenshots

No response

Desktop or Mobile Platform Information

NixOS 23.11.3019.8bf65f17d807, desktop app, version 0.10.5

Additional Context

before trying to connect many times to the internet to look for updates for any plugin or theme, check once if internet access is generally possible. other programs like signal messanger shows an error to the user that there is no connection to the internet. when clicking on it, it will try again

full terminal output:

12:29:38.782 › [Marketplace] === Updating: trashhalo/logseq-graph-analysis ===
12:29:38.784 › [Marketplace] ERR: valid github api -  FetchError: request to https://plugins.logseq.io/github/api/rate_limit failed, reason: getaddrinfo EBUSY plugins.logseq.io
    at ClientRequest.<anonymous> (/nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:514:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
12:29:38.787 › [Marketplace] FetchError: request to https://api.github.com/repos/trashhalo/logseq-graph-analysis/releases/latest failed, reason: getaddrinfo EBUSY api.github.com
    at ClientRequest.<anonymous> (/nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:514:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
12:29:38.787 › [Marketplace] Error: [:release-channel-issue "request to https://api.github.com/repos/trashhalo/logseq-graph-analysis/releases/latest failed, reason: getaddrinfo EBUSY api.github.com"]
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:14228:11
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:13090:152
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
12:29:39.290 › [Marketplace] === Updating: xyhp915/logseq-journals-calendar ===
12:29:39.291 › [Marketplace] FetchError: request to https://api.github.com/repos/xyhp915/logseq-journals-calendar/releases/latest failed, reason: getaddrinfo EBUSY api.github.com
    at ClientRequest.<anonymous> (/nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:514:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
12:29:39.292 › [Marketplace] Error: [:release-channel-issue "request to https://api.github.com/repos/xyhp915/logseq-journals-calendar/releases/latest failed, reason: getaddrinfo EBUSY api.github.com"]
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:14228:11
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:13090:152
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
12:29:39.795 › [Marketplace] === Updating: QWxleA/log-stats ===
12:29:39.796 › [Marketplace] FetchError: request to https://api.github.com/repos/QWxleA/log-stats/releases/latest failed, reason: getaddrinfo EBUSY api.github.com
    at ClientRequest.<anonymous> (/nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:514:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
12:29:39.796 › [Marketplace] Error: [:release-channel-issue "request to https://api.github.com/repos/QWxleA/log-stats/releases/latest failed, reason: getaddrinfo EBUSY api.github.com"]
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:14228:11
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:13090:152
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
12:29:40.299 › [Marketplace] === Updating: pengx17/logseq-plugin-heatmap ===
12:29:40.300 › [Marketplace] FetchError: request to https://api.github.com/repos/pengx17/logseq-plugin-heatmap/releases/latest failed, reason: getaddrinfo EBUSY api.github.com
    at ClientRequest.<anonymous> (/nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:514:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
12:29:40.300 › [Marketplace] Error: [:release-channel-issue "request to https://api.github.com/repos/pengx17/logseq-plugin-heatmap/releases/latest failed, reason: getaddrinfo EBUSY api.github.com"]
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:14228:11
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:13090:152
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
12:29:40.803 › [Marketplace] === Updating: YU000jp/logseq-plugin-flex-date-format ===
12:29:40.804 › [Marketplace] FetchError: request to https://api.github.com/repos/YU000jp/logseq-plugin-flex-date-format/releases/latest failed, reason: getaddrinfo EBUSY api.github.com
    at ClientRequest.<anonymous> (/nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:514:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
12:29:40.805 › [Marketplace] Error: [:release-channel-issue "request to https://api.github.com/repos/YU000jp/logseq-plugin-flex-date-format/releases/latest failed, reason: getaddrinfo EBUSY api.github.com"]
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:14228:11
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:13090:152
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
12:29:41.308 › [Marketplace] === Updating: pengx17/logseq-plugin-bullet-threading ===
12:29:41.308 › [Marketplace] FetchError: request to https://api.github.com/repos/pengx17/logseq-plugin-bullet-threading/releases/latest failed, reason: getaddrinfo EBUSY api.github.com
    at ClientRequest.<anonymous> (/nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:514:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
12:29:41.309 › [Marketplace] Error: [:release-channel-issue "request to https://api.github.com/repos/pengx17/logseq-plugin-bullet-threading/releases/latest failed, reason: getaddrinfo EBUSY api.github.com"]
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:14228:11
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:13090:152
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
12:29:41.812 › [Marketplace] === Updating: g1eny0ung/logseq-github-theme ===
12:29:41.813 › [Marketplace] FetchError: request to https://api.github.com/repos/g1eny0ung/logseq-github-theme/releases/latest failed, reason: getaddrinfo EBUSY api.github.com
    at ClientRequest.<anonymous> (/nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:514:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
12:29:41.813 › [Marketplace] Error: [:release-channel-issue "request to https://api.github.com/repos/g1eny0ung/logseq-github-theme/releases/latest failed, reason: getaddrinfo EBUSY api.github.com"]
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:14228:11
    at /nix/store/0wrz0hvh8q7kya0hr94jqr54xawamfy6-logseq-0.10.5/share/logseq/resources/app/electron.js:13090:152
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Are you willing to submit a PR? If you know how to fix the bug.

github-actions[bot] commented 1 month ago

Hi There! 👋

We haven't seen any activity on this issue in a while :sleeping:, and we just wanted to make sure that it's still relevant. If you're still experiencing this issue, you might find it helpful to update to the latest version of Logseq. The latest version includes bug fixes and new features that may help to resolve this issue, and you can download it from our website. If updating to the latest version doesn't help, please let us know by adding a comment 💬. We're here to help!

If the issue has been resolved or is no longer relevant, that's great news! 🎉 We'll go ahead and close this issue to keep our backlog organized. Please note that this issue will be closed automatically in 20 days if there is no further activity. If you need more time to resolve the issue or provide more information, please just let us know by adding a comment.

Access additional Logseq 🚀 resources:

Thanks for your contributions to Logseq! If you have any other issues or feature requests, please don't hesitate to let us know. We always welcome pull requests too!