wallabyjs / console-ninja

Repository for Console Ninja questions and issues
https://console-ninja.com
Other
374 stars 17 forks source link

[Bug]: Console ninja doesn't work!(ERR! extension host process error: (node:7272) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.) #250

Open liubiliubi opened 8 months ago

liubiliubi commented 8 months ago

What happened?

I have no idea how to use it. Please help,thanks! I have launched webpack already!

Version

v1.0.268

Steps to reproduce (or sample repo)

微信图片_20231221145819

Log output

14:44:53.943 info host ------------ starting ------------
14:44:53.971 info extension 
14:44:53.984 info host client connected: extension { address: '::', family: 'IPv6', port: 65452 }
14:44:54.106 info host worker Starting Host Worker...
14:44:54.174 info host starting host: {"extensionFolder":"c:\\Users\\王洋\\.vscode\\extensions\\wallabyjs.console-ninja-1.0.268","runtimeHookFile":"c:\\Users\\王洋\\.vscode\\extensions\\wallabyjs.console-ninja-1.0.268\\out\\runtimeHook\\tracer.js","globalErrorHandlerFile":"c:\\Users\\王洋\\.vscode\\extensions\\wallabyjs.console-ninja-1.0.268\\out\\runtimeHook\\errorHandler.js","filesToInstrument":[{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\store\\dealarstorelist.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\store\\component\\xlsx.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\store\\component\\redpacket.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\store\\component\\point.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\store\\component\\organization.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\store\\component\\orders.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\store\\component\\operalist.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\store\\component\\memdetaill.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\store\\component\\eximport.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\store\\component\\coupon.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\salespromotion\\copperlockmanagement\\copperstatus.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\salespromotion\\copperlockmanagement\\copperlockmanagement.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\order\\xlsx.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\placeorder\\components\\address.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\order\\listall\\listall.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\placeorder\\components\\goodsdetails.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\placeorder\\components\\goodslist.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\placeorder\\components\\magnifier.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\order\\listall\\details.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\order\\components\\logisticsform2.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\order\\components\\changeprice2.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\index\\index.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\goodscenter\\goodsmanager\\skulist_ayd.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\beforegoodsorder\\details.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\utils\\directive.js","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\utils\\request.js","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\store\\getters.js","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\store\\modules\\account.js","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\store\\modules\\car.js","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\store\\modules\\placeorder.js","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\utils\\print.js","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\utils\\oss.js","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\utils\\jscode.js","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\router\\index.js","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\templatetable.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\templateinput.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\templateui\\templatetablecontent.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\layout\\components\\navbar.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\layout\\components\\sidebar\\sidebaritem.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\layout\\components\\sidebar\\index.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\layout\\components\\leftnavbar.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\layout\\layout.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\layout\\theme\\darkblue\\components\\leftnavbar.3.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\layout\\theme\\darkblue\\components\\leftnavbar.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\components\\temp-select.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\components\\temp-upload.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\layout\\theme\\darkblue\\components\\leftnavbar(展示全部菜单).vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\layout\\theme\\darkblue\\components\\sidebar\\sidebaritem.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\components\\common\\layout\\theme\\darkblue\\components\\sidebar\\index.vue","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\build\\build.js","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\build\\check-versions.js","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\api\\order\\index.js","reason":"search"},{"path":"c:\\users\\王洋\\desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\api\\placeorder\\index.js","reason":"search"},{"path":"c:\\Users\\王洋\\Desktop\\正泰\\b2b-bus-pc-zhengtai\\node_modules\\qj-common\\src\\views\\templates\\templateInput.vue","reason":"open"},{"path":"c:\\Users\\王洋\\Desktop\\正泰\\b2b-bus-pc-zhengtai\\node_modules\\qj-common\\src\\views\\templates\\templateTable.vue","reason":"open"},{"path":"c:\\Users\\王洋\\Desktop\\正泰\\b2b-bus-pc-zhengtai\\node_modules\\qj-common\\src\\views\\templates\\templateUi\\templateTableContent.vue","reason":"open"},{"path":"c:\\Users\\王洋\\Desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\order\\listAll\\listAll.vue","reason":"open"},{"path":"c:\\Users\\王洋\\Desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\router\\index.js","reason":"open"},{"path":"c:\\Users\\王洋\\Desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\order\\listAll\\details.vue","reason":"open"},{"path":"c:\\Users\\王洋\\Desktop\\正泰\\b2b-bus-pc-zhengtai\\src\\views\\order\\xlsx.vue","reason":"open"}],"debug":false,"config":{"dateTimeFormat":"HH:mm:ss.SSS","dateTimeDisplayMode":"Absolute","installBinToPath":true,"openLinksInEditor":true,"maxLogViewerEntries":15000,"fontSize":10,"autoClearLogViewerOnFileChanges":true,"outputMode":"Beside File","captureFunctions":false,"searchUrl":"https://www.google.com/search?q={query}","enableProFeatures":false,"toolsToAutoPatch":["vite","angular","jest","webpack","next.js","nest.js","cypress","http-server","serve","live-server","nuxt","remix","qwik","hydrogen","serverless","astro","live-server-extension","live-preview-extension"],"showErrors":true,"showLogsOnlyFromOpenedFiles":false,"showLogsFromLogPointsOnly":false,"showLogsFromMultipleRunningToolsTogether":false,"predictiveLoggingEnabled":true,"allowConsoleLogToTriggerPredictions":false},"allowedHosts":["localhost","127.0.0.1","example.cypress.io","liubiliubi","10.128.2.43","192.168.7.203"],"host":"127.0.0.1"}
14:44:54.188 ERR! extension host process error: (node:7272) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
14:44:54.188 ERR! extension (Use `Code --trace-warnings ...` to show where the warning was created)
14:44:54.188 ERR! extension 
14:44:54.187 info host starting tools discovery and integration
14:44:54.210 info host looking for tools to patch
14:44:54.500 info host found 1 tool file(s) to patch
14:44:54.501 info host patching c:\users\王洋\desktop\正泰\b2b-bus-pc-zhengtai\node_modules\webpack\lib\webpack.js
14:44:54.503 info host completed tools discovery and integration
ArtemGovorov commented 8 months ago

The NODE_TLS_REJECT_UNAUTHORIZED error should not be relevant, and from the screenshot and the log everything looks ok.

Can you please create a sample GitHub repository demonstrating the issue? We are happy to take look and investigate.

liubiliubi commented 8 months ago

ok, I have create a repository named hm-shppoing, you can have a look.(However, this is another repository , different from the project in the question, the project in this repository can connect to ninja but still cannot be used normally) (I can't upload the project mentioned in the question because it is a company project and I can't mess with it, hope you can understand! thanks) 微信图片_20231221165226 微信图片_20231221165229 ![Uploading 微信图片_20231221165409.png…]()

ArtemGovorov commented 8 months ago

We have tried the https://github.com/liubiliubi/hm-shopping repo, and Console Ninja is working as expected:

Screenshot 2023-12-21 at 7 05 06 pm

Please do the following:

liubiliubi commented 8 months ago

I did the follow but it didn't work Does this have any relevance about using vpn(I didn't use vpn between I open the project, I only use vpn to open the github) 微信图片_20231221173307 微信图片_20231221173311

ArtemGovorov commented 8 months ago

The log looks incomplete, it should contain a few more lines. Can you please run through the list of actions https://github.com/wallabyjs/console-ninja/issues/250#issuecomment-1865914136 again, but this time clear the log after closing VS Code, and before opening it (not later). Also please share the content of the log file as text.

liubiliubi commented 8 months ago

17:53:42.126 info extension stopping host 17:53:46.337 info extension stopping host 17:53:46.740 info host ------------ starting ------------ 17:53:46.775 info host removing cache folder: 972f5e57009faae76f21432179fdaaeb 17:53:46.949 info host worker Starting Host Worker... 17:53:47.076 info extension host process output: port:[62786] 17:53:47.076 info extension 17:53:47.190 info host client connected: extension { address: '::', family: 'IPv6', port: 62786 } 17:53:47.503 info host starting host: {"extensionFolder":"c:\Users\王洋\.vscode\extensions\wallabyjs.console-ninja-1.0.268","runtimeHookFile":"c:\Users\王洋\.vscode\extensions\wallabyjs.console-ninja-1.0.268\out\runtimeHook\tracer.js","globalErrorHandlerFile":"c:\Users\王洋\.vscode\extensions\wallabyjs.console-ninja-1.0.268\out\runtimeHook\errorHandler.js","filesToInstrument":[{"path":"c:\users\王洋\desktop\王洋\hm-shopping\src\views\login\index.vue","reason":"search"},{"path":"c:\users\王洋\desktop\王洋\hm-shopping\src\views\layout\user.vue","reason":"search"},{"path":"c:\users\王洋\desktop\王洋\hm-shopping\src\views\layout\home.vue","reason":"search"},{"path":"c:\Users\王洋\Desktop\王洋\hm-shopping\src\views\layout\category.vue","reason":"open"},{"path":"c:\Users\王洋\Desktop\王洋\hm-shopping\src\views\layout\home.vue","reason":"open"},{"path":"c:\Users\王洋\Desktop\王洋\hm-shopping\src\components\GoodsItem.vue","reason":"open"}],"debug":false,"config":{"dateTimeFormat":"HH:mm:ss.SSS","dateTimeDisplayMode":"Absolute","installBinToPath":true,"openLinksInEditor":true,"maxLogViewerEntries":15000,"fontSize":10,"outputMode":"Beside File","captureFunctions":false,"searchUrl":"https://www.google.com/search?q={query}","enableProFeatures":false,"toolsToAutoPatch":["vite","angular","jest","webpack","next.js","nest.js","cypress","http-server","serve","live-server","nuxt","remix","qwik","hydrogen","serverless","astro","live-server-extension","live-preview-extension"],"showErrors":true,"showLogsOnlyFromOpenedFiles":false,"showLogsFromLogPointsOnly":false,"showLogsFromMultipleRunningToolsTogether":false,"predictiveLoggingEnabled":true,"allowConsoleLogToTriggerPredictions":false},"allowedHosts":["localhost","127.0.0.1","example.cypress.io","liubiliubi","10.128.2.43","192.168.7.203"],"host":"127.0.0.1"} 17:53:47.526 info host starting tools discovery and integration 17:53:47.541 info host looking for tools to patch 17:53:47.547 ERR! extension host process error: (node:13148) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification. 17:53:47.547 ERR! extension (Use Code --trace-warnings ... to show where the warning was created) 17:53:47.547 ERR! extension 17:53:48.132 info host found 2 tool file(s) to patch 17:53:48.135 info host patching c:\users\王洋\desktop\王洋\hm-shopping\node_modules\webpack\lib\index.js 17:53:48.136 info host patching c:\users\王洋\desktop\王洋\hm-shopping\node_modules\webpack\lib\webpack.js 17:53:48.138 info host completed tools discovery and integration 17:53:51.170 info buildHook-22220 installing build hook for webpack at c:\users\王洋\desktop\王洋\hm-shopping, node v18.15.0 17:53:51.185 info buildHook-22220 allowed tools: vite, angular, jest, webpack, next.js, nest.js, cypress, http-server, serve, live-server, nuxt, remix, qwik, hydrogen, serverless, astro, live-server-extension, live-preview-extension, node 17:53:51.743 info host client connected: buildHook { address: '::', family: 'IPv6', port: 62786 } 17:53:51.186 info buildHook-22220 running tools: webpack 17:53:51.188 info buildHook-22220 installing fs interceptor 17:53:51.327 info buildHook-22220 file processed (stat): 0 log points, error handler: true 17:53:51.694 info buildHook-22220 file processed (stat): 0 log points, error handler: false 17:53:51.747 info buildHook-22220 allowed tools: vite, angular, jest, webpack, next.js, nest.js, cypress, http-server, serve, live-server, nuxt, remix, qwik, hydrogen, serverless, astro, live-server-extension, live-preview-extension, node 17:53:51.747 info buildHook-22220 running tools: webpack

smcenlly commented 8 months ago

Are you using a VPN / Firewall? If so, can you please try disabling them temporarily to see if that fixes your problem?

If that fixes your problem, please refer to your product user documentation to create an exclusion for Console Ninja.

liubiliubi commented 8 months ago

I tried to disable the Firewall and Vpn , but it didn't work anyway

smcenlly commented 8 months ago

We've tried your repo on multiple computers (both MacOS and Windows) and it's working for us.

Can you please try the following:

  1. Clone your project to a new (different) directory
  2. Install your dependencies
  3. Launch VS Code
  4. Start your project with npm run serve
  5. Navigate to src\views\layout\home.vue
  6. You should see the console.log output on line 78, and if you click on the image, you should see the additional log. output on line 74:
image

If that doesn't work, if possible, can you also please try on another computer?

erufenix commented 2 weeks ago

This same thing happens to me in Visual Studio Code with a Mac M1

But in ArcLinux it works without problems

I have already disabled the Firewall and it is still the same

erufenix commented 2 weeks ago

ERR! extension host process error: spawn /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) ENOENT

trace.log

smcenlly commented 1 week ago

@erufenix - can you please provide your full trace.log from your Mac M1 where it's not working for you?