jpsider / RestPS

Simple ReST Framework for Powershell
MIT License
112 stars 30 forks source link

REST server stops with exit code 1 #80

Open chbwien opened 12 months ago

chbwien commented 12 months ago

The current version running with the current PS7 under Windows Server 2022 stops every some days with the exit code 1 (unhandled exception). It looks like there is some exception handling missing, which occurs in some rare cases. Unfortunately there is nothing in the log file that indicates where the problem occurs.

jpsider commented 12 months ago

Interesting. I am not even sure where that exit code would come from!

I have not done much testing with PS7. I'm not sure where we could add additional logging if we don't know where its coming from.

Is it dying on a specific rest call?

Is it running out of memory?

chbwien commented 11 months ago

After some testing, it looks like exactly the logging causes the problem. I am running two instances of the rest server and did not set different logging files. After setting different files, the problem did not occur again. So maybe there is an update on the logging unit? Or the default logging file should contain the port number, so this problem does not occur...