httptoolkit / httptoolkit-desktop

Electron wrapper to build and distribute HTTP Toolkit for the desktop
https://httptoolkit.com
GNU Affero General Public License v3.0
615 stars 83 forks source link

Install issue #57

Open ShirinBY opened 1 year ago

ShirinBY commented 1 year ago

Hi, After running the exe file for windows 10 and 11, I keep getting "Server shut down unexpectedly with code 1" please file an issue with GitHub

pimterry commented 1 year ago

Hi @ShirinBY, can you share your logs after this happens? They're available from the application menu, under 'Help', 'View HTTP Toolkit logs'.

ShirinBY commented 1 year ago

Hi @pimterry , Thank you for your reply. But I cannot install the app at all to be able to give you any log.

pimterry commented 1 year ago

I don't understand - if you're seeing the "Server shut down unexpectedly with code 1" message, then you must already be running the application. The logs are created before the server is launched, so they must already be present.

ShirinBY commented 1 year ago
Screenshot 2023-04-04 163045

I dont understand it either. After running the exe file I see this error! Its not only me. My other friends get the same error.

ShirinBY commented 1 year ago

@pimterry , Ok now I searched for it, I can see its installed under the apps, but when I run it I get below error.

Screenshot 2023-04-04 233409
ShirinBY commented 1 year ago

Have you tried to install the app in windows 10 or 11 lately?

pimterry commented 1 year ago

Have you tried to install the app in windows 10 or 11 lately?

I haven't personally reinstalled it recently, but hundreds of users install HTTP Toolkit on Windows every day, and I haven't heard any other reports of issues like this lately.

Interestingly though, looking at your screenshot, that's showing a different error to the previous case ('UI stopped unexpectedly' vs 'Server shut down unexpectedly with code 1'). Any idea why that might be? Does the error change randomly, or is it that you're launching the app in a different way somehow?

Ok now I searched for it, I can see its installed under the apps, but when I run it I get below error.

Ok, yes, that means you have already installed it successfully, it's just that running the application fails.

If you can't see the menu, you can find the logs manually in C:\Users\<username>\AppData\Roaming\httptoolkit\logs\. Can you share the contents from there?

ShirinBY commented 1 year ago

Hi @pimterry , Sorry for delay, due to time gap. Please see the log file: last-run.log

pimterry commented 1 year ago

Ok, so there's two different errors here: the 'UI crashed case' and the 'Server shut down' case. The log you've shared there is for the UI crash.

For that case, I'm not sure what could cause this, and there's not much I can do. What's happening here is that electron is firing a render-process-gone event saying launch-failed. That doesn't tell us very much. For whatever reason, on your computer when Electron tries to render the UI with Chromium, your computer fails to even launch that process. This could be due to security restrictions on your machine, or corruption in the app somewhere, or serious memory issues, or some major graphics driver problem, or one of a million other small things, but it's definitely not a general issue (HTTP Toolkit has error reporting for this kind of thing, and there's very few reports of this).

Reinstalling the app might help. If it doesn't, checking that your graphics drivers are working etc is probably a good idea.

For the other case, where the server is crashing, that log doesn't help much unfortunately. Is it still possible to reproduce that issue? If you can share a log from that crash I can investigate further - that error is a crash from HTTP Toolkit itself (rather than from Electron) which means it's much more likely to be something fixable.