Skip to content

WebGL Authentication #56

Open
Open
@MaximilianCroissant

Description

@MaximilianCroissant

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions