Having trouble registering a user in the following code:
const client = new AmityClient({apiKey, apiEndpoint})
const success = wait client.registerSession({userId})
console.log(success)
The error is:
-
XHRPOST
http://wowness.local/eu/api/v4/sessions
[HTTP/1.1 404 Not Found 19ms] -
Uncaught (in promise) TypeError: can’t access property “code”, t.t0.response.body is null
I need help