Error on VPS public IP not on local machine

Original Discord Post by eddie_83408 | 2024-07-02 23:50:32

Hello, I develop an app for personal purpuse, I develop it in local machine, everything work fine with convai sdk, but when I delploy on a vps there is an error that I could call any convai SDK for three js functionnality

Images:

Reply by k3kalinix | 2024-07-02 23:50:55

<@368669084952428554>

Reply by eddie_83408 | 2024-07-02 23:54:41

I would like to correct the issue, when I type on local yarn dev to launch everything is fine, but on local machine when I type yarn dev --host, I have the same issue as on the VPS

Reply by eddie_83408 | 2024-07-02 23:55:12

maybe is due to yarn, I will check tomorrow

Reply by k3kalinix | 2024-07-02 23:55:53

My teammate will help you.
He’s in a different time zone. He will probably respond within 12 hours.

Reply by eddie_83408 | 2024-07-02 23:56:18

No problem, it’s time also in my time zone to go to bed :wink:

Reply by saurav0037 | 2024-07-03 15:16:35

<@922595772367798292> hosting issue

Reply by eddie_83408 | 2024-07-03 15:19:01

It happen when you expose the app to hosting

Reply by eddie_83408 | 2024-07-03 15:22:25

For exemple on local yarn dev is ok, but yarn dev --host is not ok

Reply by saurav0037 | 2024-07-03 15:23:16

You are not able to create a build?

Reply by saurav0037 | 2024-07-03 15:23:27

Or just while hosting

Reply by eddie_83408 | 2024-07-03 15:25:31

I can create a build (I can have some warning about minification) on VPS, never the less when I launch with PM2, there is always an error about addModule

Reply by eddie_83408 | 2024-07-03 15:25:33

Images:

Reply by eddie_83408 | 2024-07-03 15:25:56

Images:

Reply by saurav0037 | 2024-07-03 16:18:05

addModule is related to getting microphone access. It has to be there. For now can you try free hosting it in vercel and check if it works there

Reply by k3kalinix | 2024-07-07 21:15:09

<@1241348931133374466>

Reply by eddie_83408 | 2024-07-08 11:56:39

I do not test on vercel, I try to test local LLM + RAG + local TTS for voice cloning on 2 RTX3070

Reply by eddie_83408 | 2024-07-08 11:56:53

and rhubarb for lipsync

Reply by eddie_83408 | 2024-07-08 11:57:11

I could like to compare the solution

This conversation happened on the Convai Discord Server, so this post will be closed.