RocketChat / EmbeddedChat

An easy to use full-stack component (ReactJS) embedding Rocket.Chat into your webapp
https://www.npmjs.com/package/@embeddedchat/react
108 stars 216 forks source link

EmbeddedChat connecting 401 (Unauthorized) #393

Open IgorDevR opened 6 months ago

IgorDevR commented 6 months ago

I started the server on a virtual machine with ubuntu. I configured it to my IP address.

I created a client separately, in the client I can receive a token using a login and password, register users, create channels, receive channels.

I'm adding a chat component to react <EmbeddedChat host={RocketChatBaseUrl} roomId="659fe0328178c3edbc8efe7a" auth={{ flow: 'TOKEN', credentials: { accessToken: 'wEOzAoEV8tNV9qO78rXVps7kci7ZhlIsgk1U23сRsWe', }, }} /> and I get the error: "GET http://192.168.222.132:3000/api/v1/channels.members?roomId="659fe0328178c3edbc8efe7a" 401 (Unauthorized)

I don't understand why I can do various things, but when I add a component I get a 401 (Unauthorized) error.

Скриншот 11 01 24_22 27 20

Spiral-Memory commented 5 months ago

Is your channel private ?