Giter Site home page Giter Site logo

trackjs / trackjs-node Goto Github PK

View Code? Open in Web Editor NEW
30.0 3.0 2.0 291 KB

TrackJS Error Monitoring agent for NodeJS

Home Page: https://trackjs.com/

License: Other

TypeScript 84.04% JavaScript 13.01% PowerShell 2.94%
error-monitoring error-reporting error-handling logging javascript nodejs debugging debugger debugging-tool error

trackjs-node's People

Contributors

dependabot[bot] avatar toddhgardner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

trackjs-node's Issues

NetworkWatcher: Module not found: Error: Can't resolve '_http_agent'

Versions:

"trackjs-node": "1.0.1",
"@angular/core": "^14.0.0",

I can't serve my app because of this:
./node_modules/trackjs-node/dist/watchers/NetworkWatcher.js:13:16-38 - Error: Module not found: Error: Can't resolve '_http_agent' in '{userlocation}\node_modules\trackjs-node\dist\watchers'

NetworkWatcher: Module not found: Error: Can't resolve '_http_agent'

I want to use trackjs-node in our ssr react app server side code and it throws errors.
I found the same error info in the previous closed issue. But there is no solution and just suggest to use browser package.

versions:

"trackjs-node": "1.0.1",
"node": 16.16.0,
"react": 18.2.0

errors:

ERROR in ../../node_modules/.pnpm/[email protected]/node_modules/trackjs-node/dist/watchers/NetworkWatcher.js 7:16-38
Module not found: Error: Can't resolve '_http_agent' in '/Users/ccui/Dev/wpt-cms-unification/node_modules/.pnpm/[email protected]/node_modules/trackjs-node/dist/watchers'

Faults recorded during dependency discovery in secure environments.

We've recorded various faults from the internal operations indicating a failure when discovery environmental dependencies. This appears to be caused by security settings preventing us from accessing the shell, or mangling the response in some way.

Some examples:

**msg:**Unexpected end of JSON input
**stack:**SyntaxError: Unexpected end of JSON input at JSON.parse () at /Users/REDACTED/Projects/REDACTED/node_modules/trackjs-node/dist/Environment.js:31:43 at Array.forEach () at /Users/REDACTED/Projects/REDACTED/node_modules/trackjs-node/dist/Environment.js:30:25 at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:85:5) **url: a:**trackjs-node **v:**0.0.11 **h:**4de2b2772dd850249087ccef36efec78039c23ca

┌──────────────────────────────────────────────────────────────────┐ │ npm update check failed │ │ Try running with sudo or get access │ │ to the local update config store via │ │ sudo chown -R $USER:$(id -gn $USER) C:\Users\REDACTED.config │ └──────────────────────────────────────────────────────────────────┘ Other

These appear to be caused by this code:
https://github.com/TrackJs/TrackJS-Node/blob/master/src/Environment.ts#L41

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.