srcnalt / OpenAI-Unity

An unofficial OpenAI Unity Package that aims to help you use OpenAI API directly in Unity Game engine.
MIT License
648 stars 144 forks source link

JSON Serialization Exception on Android, Not in Editor #114

Closed GavinR621 closed 5 months ago

GavinR621 commented 5 months ago

Describe the bug ChatGPT is not returning any text, and is instead returning a json serialization exception in my android logcat. Works fine in the Unity editor, but not until I build to android does the issue come about.

Screenshots image

Environment (please complete the following information):

Yorcal commented 5 months ago

I am facing the same issue, I see that you have closed your request, what did you do?

GavinR621 commented 5 months ago

I am facing the same issue, I see that you have closed your request, what did you do?

It can be caused by a lack of internet connection. If you're 100% positive your device is connected to the internet, it could be (this was my case) caused by a setting in OpenXR. Make sure the following is unchecked. image image

Yorcal commented 5 months ago

Thank you so much !! Everything is working now