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

getting error Uncaught (in promise) TypeError: Cannot read property 'apply' of undefined #72

Open
nsharma1989 opened this issue Oct 16, 2020 · 1 comment

Comments

@nsharma1989
Copy link

Hi I am using webpack with target: web

I see this error on running
var options = { url: url, method: method, insecure: ignoreSSL }; curl.request(options, function (err, response) { if (err) throw err; console.log(response); });

bundle.js:63366 Uncaught (in promise) TypeError: Cannot read property 'apply' of undefined at ./node_modules/curlrequest/spawn.js.module.exports (bundle.js:63366) at Object../node_modules/curlrequest/index.js.exports.request (bundle.js:63181) at bundle.js:107092 at step (bundle.js:107048) at Object.next (bundle.js:107029) at bundle.js:107023 at new Promise (<anonymous>) at ./service/Service.js.__awaiter (bundle.js:107019) at sendCurl (bundle.js:107084) at Object.<anonymous> (bundle.js:107186)

Thank you

@nsharma1989
Copy link
Author

Hi I just noticed that the command is running

curl --silent --show-error --no-buffer --globoff --url https://MYURL/api/v1/ --insecure --request GET --location --max-redirs 3 --header Accept: application/json --header Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 --header Accept-Language: en-US,en;q=0.8 --header Content-Type: application/json

but it still gives certificate errors even with the --insecure flag. Any solutions?

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