question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

koa-passport breaks node-inspector (remove Proxy)

See original GitHub issue

Thanks for the great module.

Kind of cool that it uses ES6 Proxy, but that’s too early. Right now ES6 Proxy are non-debuggable, see the discussion here https://github.com/node-inspector/node-inspector/issues/413.

Koa-passport is usually quite close to the top of the execution stream. When node-inspector meets proxy, it dies, effectively making all the application code below undebuggable.

(That’s actually a suggestion, I don’t have a stack, but koa-passport is the only module which uses ES6 proxy in the project, and node-inspector dies with that Proxy Illegal access error).

Given that the ES6 Proxy debugging issue is not going to be fixed soon, could you please remove it from the code and replace with something more-or-less stable please?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rkusacommented, Feb 14, 2020

The original linked ticket node-inspector/node-inspector#413 indicates that the bug was resolved in Node 7.7+. Since that Node version is well beyond LTS, proxies should be able to be reintroduced.

Thanks for the information! 👍

I’d really prefer going back to the Proxy implementation. However, I am not entirely sure if it is worth the hazel to go through possibly breaking people’s usage of koa-passport with it 🤔

0reactions
shellscapecommented, Apr 1, 2020

@rkusa A new major version with updated engines range would solve that neatly. Node versions < 10 are now out of LTS and support for them can be safely dropped. Most major frameworks and libs are now following LTS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internal error: illegal access (debugging ES6 proxy) · Issue #413
I'm using node-inspector for node 0.11.13 I start node ... koa-passport breaks node-inspector (remove Proxy) rkusa/koa-passport#17.
Read more >
node.js - NodeJS request -- how to disable automatic proxy ...
I am using the request npm module for making http requests in my program. The default behavior of request seems to be that...
Read more >
koa-passport - npm
Start using koa-passport in your project by running `npm i koa-passport`. There are 207 other projects in the npm registry using koa-passport.
Read more >
How to clear https proxy setting of NPM | Edureka Community
By running npm config rm proxy you remove proxy from user configuration. This can be easily verified by running: npm config list.
Read more >
How to remove/ reset npm proxy - Super User
It was a connection problem. I remember that I played with proxy configuration by mistake like this : npm config set proxy ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found