Open AjayiMike opened 2 years ago
The Owner of this chat needs to make the API call or you need to Auth with the Private-Key instead.
I user should not be able to add them-self to any chat by default. This is a permission/security feature.
FIX: Authenticate with the Private-Key on your server (in the headers) instead 👍
I already solved the Issue. I kept guessing what the UserName and User-secret in the header means. It finally worked when I imputed the chat admin credentials. I suggest it should be renamed to tell whose credentials is supposed to be in the header to avoid guessing. Maybe chatAdmin-username and chatAdmin-user-secret would be better. Thanks
I'm using a nodejs server as a proxy between my react app and the chat engine api, everything works well except adding a new member to an existing chat. I get a 404 error. I checked everywhere, I couldn't find help
part of the frontend where the request is sent to the backend
The backend code: getting or creating a user works well, so I'll only share the part of the code that is not working, which is adding new member to a chat
I am however receiving 404 not found error, and I'm sure that the chat with that chat id exist in my project