ChatGPT can't handle ILogger

Hey everyone!

I’m experiencing an issue with ChatGPT when it tries to generate C# code involving the ILogger interface. This problem occurs both in the native app and on the web platform. Interestingly, when I instruct the bot to use “KLogger” instead of “ILogger”, everything works as expected.

Here’s a more details:

  • GPT Version: Encountered in both GPT 3.5 and GPT 4.
  • Error Message: In GPT 4, the bot eventually returns “Error in input stream.”
  • Comparison: This issue seems specific to ILogger as I’ve tried other interfaces without triggering similar problems.

Edit: I had a GIF to demonstrate the issue but the quality was too poor to make any sense of.

Hoping someone has a fix for this soon.

Ive been encountering the same thing since a couple of days ago and wondered if anyone else was having similar issues.

‘app.usemiddleware’ also seems to have the same issue for me.

In my case, either I just don’t get a response at all, or it tries again, hoping the issue will resolve itself - often repeating the exact same statement or for some reason sending multiple, consecutive empty responses.

Since, I don’t know, 4 days back I’ve been incapable of getting any code out from it. I experience similar problems as the people here.

Some of them manage to find a way to go around the problem. See if you find something there that works for you.