We’re working on integrating Inworld AI into a project hosted on 8th Wall, and we’ve encountered issues with both the latest version of the Inworld SDK and version 8.
The main error always points to line 90 in component_inworld.js, “console.error(err)”
Here’s a breakdown of the challenges:
- Using the Latest SDK Version:
- Error:
"authentication is required"
(code: 16) orSyntaxError: The string did not match the expected pattern.
- Details: We are using the same API Key, Secret, Scene ID, and Character ID that work in Unity, but the browser environment fails to authenticate.
- Using SDK Version 8:
- Error:
SyntaxError: Unexpected token
incomponent_inworld.js
. - Details: The error appears to stem from modern JavaScript/TypeScript syntax, but even with Babel transpilation, the issue persists.
Testing Setup:
- Our project, works with Unity (using a different api key, but the same workspace)
- The
head.html
file includes the required Inworld Web SDK scripts (inworld-web-core
andinworld-web-threejs-8thwall.min.js
). - Attached are relevant screenshots of the errors and our configurations.
We are a premium user on 8th wall.