shivkanthb / curlx

◼️ Supercharge curl with history, collections and more.
https://curlx.dev
263 stars 5 forks source link

curlx crashes ungracefully on invalid run id #10

Open ynx0 opened 5 years ago

ynx0 commented 5 years ago

When running the command: $ cx run 150, I get the following error.

Stacktrace ``` C:\Users\lux> cx run 150 C:\Users\lux\AppData\Roaming\npm\node_modules\curlx\cmds\run.js:15 if (request_id.indexOf(':') == -1) { ^ TypeError: request_id.indexOf is not a function at module.exports (C:\Users\lux\AppData\Roaming\npm\node_modules\curlx\cmds\run.js:15:18) at module.exports (C:\Users\lux\AppData\Roaming\npm\node_modules\curlx\index.js:25:28) at Object. (C:\Users\lux\AppData\Roaming\npm\node_modules\curlx\bin\cx:2:15) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) at Function.Module.runMain (internal/modules/cjs/loader.js:742:12) at startup (internal/bootstrap/node.js:283:19) ```

Here is a link to the relevant code.