Backend connection error

Hi,

I am trying to integrate the openvidu-call app with another application. The backend is working fine. When i click on “Join”, I am getting the below error.

There was an error getting the token:
Cannot connect with backend. http://localhost:4200/call not found.

When I connect the openvidu-call-frontend cloned from github to my backed it is working fine. I have embedded the same files into my application, i am getting this error. The backend is running on port 5000.

The error on development console is below.

[VideoRoomComponent] ERROR: There was an error getting the token: 404 Cannot connect with backend. http://localhost:4200/call not found 2 logger.service.ts:37:17
e logger.service.ts:37
getToken video-room.component.ts:476
step tslib.es6.js:100
verb tslib.es6.js:81
rejected tslib.es6.js:72

Please help me out in this regard.

Hello,

Have you read and followed this https://docs.openvidu.io/en/2.14.0/demos/openvidu-call/#get-and-execute-the-code ?

Have you started openvidu-server?

Yes, had read and followed the instructions as per the doc and the openvidu server is also running. I have a project which is running in angular and had integrated the openvidu front end with that project. The backend of my project is a node server running on port 5000. My project front end and openvidu front end connects to this node server. My project is working fine, but when i click to join session, i am getting the error http://localhost:4200/call not found.

When i start the openvidu frontend separately and connect to the backend of my project, it is working fine.

Please let me know if you require any more details.

Hello @josefedrick,

First of all, openvidu-call-backend has a config.ts file which provides the default configuration.

Secondable, openvidu-call-front uses a proxy that allows to redirect to the backend when ng serve command is run. This is configured in the angular.json file.

You should edit this configuration with your needs