Comments (8)
Dang, looks like an underlying issue is in hoxy
.
Global error handlers are a little
Thanks for reporting this and providing a solution!
from james.
I've discovered that Sentry, of all things, is related to this problem.
A workaround will be released soon
from james.
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.
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.
Seems to be relationed with greim/hoxy#60 and greim/hoxy#93 (comment), but supposedly it's fixed
from james.
Is there a new version of James available with this fix in it??
from james.
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.
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)
- Release of version 2.1.0 HOT 12
- Switch back to hoxy HOT 2
- Use dedicated Sentry client for Electron
- Refresh inspect-request panel if selected request becomes completed
- James auto-closes itself a few seconds after starting HOT 5
- Performance: don't send entire request list over IPC
- Solved: Run james without GUI and listen on all interface? HOT 7
- More advanced URL patterns? HOT 1
- Not Found: [email protected] HOT 3
- "Request Query Params" use multiple parameters to display errors HOT 8
- Create James-specific, faster web proxy [wasm]
- Make query parameter display consistent
- Solved: HTTPS access not work HOT 12
- How can I disable the validation check for hosts with a selfsigned certificate? HOT 3
- Import custom certificates
- Support Windows x86 HOT 1
- Allow configuring proxy for James to use HOT 7
- Export to HAR HOT 1
- https not working for my iphone, I've import root-ca.crt.pem to my phone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from james.