400 response, missing model parameter #52
-
Hello, im using the sample project, which works well in the editor, but when attempting in Webgl build i get the following:
Has anyone experienced this? I do see the model being set in code:
Suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 5 replies
-
Hi @chrisecoleman, similar issues reported before that certain versions of Unity does not handle requests properly. You may try on different versions of Unity and see if it works fine. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your prompt response, I’ll check it on a different version tonight. I’m on the latest build, do you have a recommended version?
…On Apr 30, 2023 at 2:59 PM -0700, Sercan Altundas ***@***.***>, wrote:
Hi @chrisecoleman, similar issues reported before that certain versions of Unity does not handle requests properly. You may try on different versions of Unity and see if it works fine.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately the issue persist, ive tried 4 different unity versions. If there is a reccomended version i can target that. I've tried a few different unity libraries for openai, but none are functional for me in webgl, this seems to be the closest. appreciate any further advice you may have. |
Beta Was this translation helpful? Give feedback.
-
Ok, that is encouraging, i tried a fresh build just now. are there steps i am doing differently than you? I really appreciate your help with this! |
Beta Was this translation helpful? Give feedback.
-
Here is the JSON in the editor:
When i run in the browser, the JSON is empty! Here is where im calling it:
the newtonsoft json version is 3.1.0 |
Beta Was this translation helpful? Give feedback.
-
Can confirm this shows the same behavior when deployed to unity play instead of localhost. |
Beta Was this translation helpful? Give feedback.
-
I was able to work through this by removing the {Get; Set;} properties in the datatypes.cs file. it seems newtonsoft has issues with serializign properties that are setup that way. Thank you for your help! |
Beta Was this translation helpful? Give feedback.
I was able to work through this by removing the {Get; Set;} properties in the datatypes.cs file. it seems newtonsoft has issues with serializign properties that are setup that way.
Thank you for your help!