-
-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebGL Authentication #56
Comments
I may just have found a dirty work around. Doing so will make them being able to work on Webgl This is not the best, but this is what can come up quick |
Could you test with the latest release? NewtonSoft.Json and code stripping related issues must be gone with the latest changes. |
Basically I have the same issue as this: #45
and this: #47
These are markes as resolved but I didn't find any solution (and looks like the authors didn't either?)
This is the error message:
{
"error": {
"message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error",
"param": null,
"code": null
}
}
It happens ONLY in WebGL builds, not in the editor. No problem with the API key, as I pass it directly into the constructor. Tested in 2020.3.0f1, 2021.3.22f1, and 2022.2.19f1 so not a Unity version error.
There's something going on and I need a workaround to get a testable WEBGL build.
The text was updated successfully, but these errors were encountered: