You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JsonSerializationException: No JSON content found and type 'OpenAI.CreateAudioResponse' is not nullable. Path '', line 0, position 0. #119
Hi @Exiro001, the received response is not a JSON, so it might me a message about quota limit or something else. You can print out the response before it gets parsed and see what the error says.
I've encountered the same error but I haven't reached my quota limit. I just bought 5$ worth of tokens / quota. The error I see in VR is:
JsonSerializationException: No JSON Content found and type 'OpenAI.CreateAudioResponse' is not nullable. Path '', line 0, position 0
It works in the editor but doesn't work in VR. Since the API key is being read from auth.json, I manually placed the API key inside the script instead inside the = new OpenAI("apikey", "orgkey");. To my surprise, I still receive the same error.
I have had the same issue, after adding the API/Organization key had the same issue still, what solved it for me is going to: build settings -> player settings -> publishing settings, then enable Custom Main Manifest. Go to the manifest file and add the following line:
@JensDijkgraaf we have the same issue... what is the line you have added to the manifest?
Its not visible in your post 😄
In our case its working on the Editor as well but on iOS we are seeing the issue from above.
as can be seen in the line this is specifically for android, but i can imagine there would be a similar but slightly different solution for iOS, hope it helps!
I added in what you said @JensDijkgraaf, however, I am still receiving the same issue. Any other ideas perhaps?
EDIT/UPDATE: After having issues, I realized I needed to do something similar to what was done here #117 --> with the XR settings and force internet permissions. Thank you all for your help!
Activity
srcnalt commentedon Mar 29, 2024
Hi @Exiro001, the received response is not a JSON, so it might me a message about quota limit or something else. You can print out the response before it gets parsed and see what the error says.
markaeron-ns commentedon Apr 15, 2024
I've encountered the same error but I haven't reached my quota limit. I just bought 5$ worth of tokens / quota. The error I see in VR is:
JsonSerializationException: No JSON Content found and type 'OpenAI.CreateAudioResponse' is not nullable. Path '', line 0, position 0
It works in the editor but doesn't work in VR. Since the API key is being read from auth.json, I manually placed the API key inside the script instead inside the = new OpenAI("apikey", "orgkey");. To my surprise, I still receive the same error.
JensDijkgraaf commentedon Apr 16, 2024
I have had the same issue, after adding the API/Organization key had the same issue still, what solved it for me is going to: build settings -> player settings -> publishing settings, then enable Custom Main Manifest. Go to the manifest file and add the following line:
within the manifest class. Hope this helps!
tobivr commentedon Apr 17, 2024
@JensDijkgraaf we have the same issue... what is the line you have added to the manifest?
Its not visible in your post 😄
In our case its working on the Editor as well but on iOS we are seeing the issue from above.
JensDijkgraaf commentedon Apr 17, 2024
@tobivr my bad, the line you need to add is:
as can be seen in the line this is specifically for android, but i can imagine there would be a similar but slightly different solution for iOS, hope it helps!
hridayc7 commentedon Jun 25, 2024
I added in what you said @JensDijkgraaf, however, I am still receiving the same issue. Any other ideas perhaps?
EDIT/UPDATE: After having issues, I realized I needed to do something similar to what was done here #117 --> with the XR settings and force internet permissions. Thank you all for your help!