Cannot connect WebGL to New Characters

Original Discord Post by csidevandsales_05354 | 2024-08-06 17:39:16

In two separate accounts I’ve created new characters. When I build my program for WebGL, I get a crash with the error Convai Client is undefined. Characters created before today import just fine using their character ID. I think this may be an error on the backend.

Reply by csidevandsales_05354 | 2024-08-06 17:41:35

Update, it just started working.

Reply by csidevandsales_05354 | 2024-08-06 17:41:58

Is there a lag time between creating a character and being able to bring it into Unity?

Reply by k3kalinix | 2024-08-06 17:48:46

Hello <@1186179379982778468>,

No, maybe there is another reason for this error.

Reply by csidevandsales_05354 | 2024-08-06 18:30:50

Interesting. I’ll build and it’ll work, then after changing nothing I’ll build again and it won’t it seems almost random.

Reply by k3kalinix | 2024-08-06 21:49:57

Is this a new project?

Reply by csidevandsales_05354 | 2024-08-06 21:53:33

It’s happening in multiple projects, any with the new web plugin

Reply by csidevandsales_05354 | 2024-08-06 21:53:39

I think it’s related to this

Reply by csidevandsales_05354 | 2024-08-06 21:53:42

[Error][Character]: System.EntryPointNotFoundException: sendTextRequest assembly: type: member:(null)
at (wrapper managed-to-native) Convai.Scripts.Runtime.Core.ConvaiGRPCWebAPI.sendTextRequest(string)
at Convai.Scripts.Runtime.Core.ConvaiGRPCWebAPI.SendTextData (System.String text) [0x00000] in C:\Users\Holop\ReadWebFinal\Assets\Convai\Scripts\Runtime\Core\ConvaiGRPCWebAPI.cs:188
at Convai.Scripts.Runtime.Core.ConvaiNPC.SendTextData (System.String text) [0x00000] in C:\Users\Holop\ReadWebFinal\Assets\Convai\Scripts\Runtime\Core\ConvaiNPC.cs:268

Reply by k3kalinix | 2024-08-06 21:53:53

This is an expected error.

Reply by k3kalinix | 2024-08-06 21:54:06

You cannot test the WebGL SDK in the Editor.

Reply by csidevandsales_05354 | 2024-08-06 21:54:22

Right, but when this error is thrown, the UI doesn’t come up either.

Reply by csidevandsales_05354 | 2024-08-06 21:54:43

With the last version of the plugin the UI would always show when I was in range of a character

Reply by csidevandsales_05354 | 2024-08-06 21:54:55

Now it’s not nearly as reliable.

Reply by k3kalinix | 2024-08-06 21:55:59

Which error?

Replying to csidevandsales_05354’s Message

Reply by csidevandsales_05354 | 2024-08-06 21:54:43
With the last version of the plugin the UI would always show when I was in range of a character

Reply by k3kalinix | 2024-08-06 21:56:37

You can change the range by checking the NPC manager component.

Reply by csidevandsales_05354 | 2024-08-06 21:56:41

System.EntryPointNotFoundException

Reply by csidevandsales_05354 | 2024-08-06 21:56:47

Changing the range has no effect

Reply by k3kalinix | 2024-08-06 21:57:03

Because you cannot initialize the character.

Reply by csidevandsales_05354 | 2024-08-06 21:59:00

Why?