No error log - app quits (async problem?)
Hey,
I am working on an app that has multiple background workers:
StepOne works correctly, in StepTwo I am calling OpenAI API via this NuGet (https://github.com/OkGoDoIt/OpenAI-API-dotnet).
On this line my app (Console application) just turns off - no error log, nothing.
So I tried doing try-catch block - nothing.
I debugged and figured out problem is here (L133):
https://github.com/OkGoDoIt/OpenAI-API-dotnet/blob/5f7c23a928be39da87e89d5105a044ecb7401727/OpenAI_API/EndpointBase.cs#L133
It's being called with following:
Seems to be correct (calling other endpoint with same NuGet - e.g. chat completion works)
I cloned the repo, put try-catch block around that line - still nothing.
When trying to debug the HttpClient method my debugger is just jumping all around place without sense.
I guess I would have to get the code of HttpClient locally and do it like that - but at that point I am wondering.
Anyone has idea why this is happening? I expect it's because of how I use Tasks?
I am clueless here, not getting any output or error anywhere :/
I am working on an app that has multiple background workers:
StepOne works correctly, in StepTwo I am calling OpenAI API via this NuGet (https://github.com/OkGoDoIt/OpenAI-API-dotnet).
On this line my app (Console application) just turns off - no error log, nothing.
So I tried doing try-catch block - nothing.
I debugged and figured out problem is here (L133):
https://github.com/OkGoDoIt/OpenAI-API-dotnet/blob/5f7c23a928be39da87e89d5105a044ecb7401727/OpenAI_API/EndpointBase.cs#L133
It's being called with following:
Seems to be correct (calling other endpoint with same NuGet - e.g. chat completion works)
I cloned the repo, put try-catch block around that line - still nothing.
When trying to debug the HttpClient method my debugger is just jumping all around place without sense.
I guess I would have to get the code of HttpClient locally and do it like that - but at that point I am wondering.
Anyone has idea why this is happening? I expect it's because of how I use Tasks?
I am clueless here, not getting any output or error anywhere :/
