Questions tagged [react-chat-engine]

Chat Engine is a free serverless chat API. react-chat-engine is the React implementation of the ui and integration with Chat Engine

Github

https://github.com/alamorre/react-chat-engine

npm

https://www.npmjs.com/package/react-chat-engine

Syntax

import React from 'react'

import { ChatEngine } from 'react-chat-engine'

export function App() {
  return (
    <ChatEngine
      publicKey={'b75e5bd5-cd84-404c-b820-06feff8c98c0'}
      userName={'john_smith'}
      userSecret={'secret_1234'}
    />
  )
}

UI

enter image description here

22 questions
3
votes
3 answers

React Chat Engine Loading

I create small chat application using react chat engine library. This is the UI image But chats are not loading even I provide correct credentials. It's gives GET https://api.chatengine.io/chats/latest/25/ 403.There is no any error of code side. I…
3
votes
1 answer

How to make a post request to create new users

I'm creating a chat app with react-chat-engine. And everything is working fine. Except for the fact that I don't know how to make a post request to create new users. Here's my code const handelSubmit = async(e) => { e.preventDefault(); if…
iamvictor
  • 103
  • 1
  • 1
  • 4
3
votes
4 answers

I can't install react-chat-engine with npm

I couldn't install npm install react-chat-engine PS C:\Users\Edgar\Downloads\project_react\aplicacion> npm install react-chat-engine npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving:…
2
votes
1 answer

How do I create a user using a post request in react-chat-engine?

I am looking to add a Registration feature to my application that uses react-chat-engine but it's failing with a 403 error. Error: Request failed with status code 403 at createError (createError.js:16) at settle (settle.js:17) at…
damian-sketch
  • 151
  • 1
  • 14
1
vote
0 answers

require is not defined error when hosting website on netlify

I tried to host my first Vite/react website on netlify. first time it got error of mime type but after some time i get another error that says "require is not defined". How can I solve this problem? P.s for the build command I used "CI=false Vite…
Ok Ok
  • 21
  • 4
1
vote
0 answers

Api CORS No Allow Credentials

i am trying to implement Chat engine to my website but when trying to access the chat engine api i get --CORS No Allow Credentials-- "Credential is not supported if the CORS header ‘Access-Control-Allow-Origin’ is ‘*’ " chat.js import { ChatEngine }…
adel bouakaz
  • 311
  • 2
  • 11
0
votes
1 answer

Fixing Chat Engine API code that would give me a Status Code 403

Trying to build chat engine IO page and getting status code 403, but all auth headers should be correct. combed for typos still could not find the issue. Console logging user shows my initial user but still getting no user loading screen and status…
Tyler R
  • 3
  • 1
0
votes
0 answers

ChatEngine "Module parse Failed" error when running React app

I am trying to configure ChatEngine api in my MERN Stack app, Im trying to test its simple implementation first, the user i'm getting from sessionStorage exists in my ChatEngine project but when I try to run the app I get the following error : [0]…
0
votes
0 answers

Get password from chat Engine

Could you Help me please I'm new on Chat Engine How can I get value of secret from Chat Engine ? Here is my problem, This code is used to log in chat engine. So All I want are email and secret to be able to log on this app But the problem is …
0
votes
0 answers

In react Firebase Chat App i have afirst issue with closed Socket and a second with redirection after signin with google

My 4 js files are the following.i use react router v6 and after the signin in useEffect tried to redirect in chats page. import "./App.css"; import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; import Login from…
0
votes
0 answers

Uncaught TypeError: Cannot read properties of null (reading 'useState')and The above error occurred in the component:

iam getting 3 errors in my console 1.Uncaught TypeError: Cannot read properties of null (reading 'useState') 2.The above error occurred in the component: 3.Get or create chat error TypeError: Cannot read properties of null (reading…
hamsheena
  • 1
  • 2
0
votes
0 answers

React: unhandled rejection (TypeError) failed to fetch

I am following a tutorial on a chat application in react with a firebase and chatengine backend. all of my code seems to be correct based on the tutorial but i keep getting this error. unhandled rejection code failing to fetch HERE my code was…
Kayla
  • 1
  • 2
0
votes
0 answers

CHATENGINE GETTING ERROR {detail: "Authentication credentials were not provided."}

useEffect(() => { if (!user) { history.push('/'); return; } axios.get('https://api.chatengine.io/users/me/', { headers: { "project-id":…
0
votes
1 answer

facing problem installing react chat engine

whenever i try to install react-chat-engine it is giving me this error PS C:\Users\HP\Desktop\React\Chat_App\chat-app-jsm> npm install react-chat-engine npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR!…
0
votes
2 answers

403-ERR_BAD_REQUEST: Request faild with status code 403 when I using get and post for React-Chat-Engine api

please tell me what I did wrong and why I have 403 axiosError? I am using React v17 and axios v0.27.2 and react-chat-engine v1.11.23 . how can I fix this problem? here is my imports import React, { useState, useEffect, useContext } from…
1
2