7rebux / league-tools

A cross-platform desktop app with many League Client exploits (e.g profile customization)
MIT License
51 stars 2 forks source link

Empty lcu responses throw a error #13

Closed 7rebux closed 1 year ago

7rebux commented 1 year ago
(node:34144) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Http1Response.json (...\league-tools\.webpack\main\index.js:41648:17)
    at LCU.<anonymous> (...\league-tools\.webpack\main\index.js:41074:55)
    at step (...\league-tools\.webpack\main\index.js:41018:23)
    at Object.next (...\league-tools\.webpack\main\index.js:40999:53)
    at fulfilled (...\league-tools\.webpack\main\index.js:40990:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
(node:34144) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)