Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curlx crashes ungracefully on invalid run id #10

Open
ynx0 opened this issue Aug 8, 2019 · 0 comments
Open

curlx crashes ungracefully on invalid run id #10

ynx0 opened this issue Aug 8, 2019 · 0 comments

Comments

@ynx0
Copy link

ynx0 commented Aug 8, 2019

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.<anonymous> (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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant