GithubHelp home page GithubHelp logo

Comments (8)

mitchhentges avatar mitchhentges commented on May 25, 2024 1

Dang, looks like an underlying issue is in hoxy.
Global error handlers are a little 👻, but I'll set one up as a temporary measure and do a new release.
Thanks for reporting this and providing a solution!

from james.

mitchhentges avatar mitchhentges commented on May 25, 2024 1

I've discovered that Sentry, of all things, is related to this problem.
A workaround will be released soon

from james.

jamezrin avatar jamezrin commented on May 25, 2024

I worked around this by adding this handler jamezrin@2313986

process.on('uncaughtException', (e) => {
  if (e.code === 'ECONNRESET') {
    console.warn('uncaught connection reset'); // eslint-disable-line
  } else if (e.code === 'ECONNREFUSED') {
    console.warn('uncaught refused connection'); // eslint-disable-line
  } else throw e;
});

from james.

mitchhentges avatar mitchhentges commented on May 25, 2024

Hmm, investigating this further, the issue doesn't show up in "development mode" because Electron absorbs the error and logs it.

This explains why it wasn't obvious in local development.
In related news, when I tested the process.on('uncaughtException') locally, it worked in development mode. However, once a release was created, the issue re-appeared.

I'm not sure why Electron is stopping upon receiving a "fatal error" if we're intercepting it. Maybe we need to do something Electron-specific rather than process.on(...)?

Either way, more investigation is needed

from james.

jamezrin avatar jamezrin commented on May 25, 2024

Seems to be relationed with greim/hoxy#60 and greim/hoxy#93 (comment), but supposedly it's fixed

from james.

kadamgreene avatar kadamgreene commented on May 25, 2024

Is there a new version of James available with this fix in it??

from james.

mitchhentges avatar mitchhentges commented on May 25, 2024

Not yet, this issue was trickier than it first seemed.
I haven't had the time to debug further into this, but PRs are always welcome :)

from james.

jamezrin avatar jamezrin commented on May 25, 2024

I think this is fixed in this PR.
How can this be incorporated into james without having to wait for it to get merged?
The project seems a bit inactive in my opinion.

from james.

Related Issues (20)

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.