You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
I am reaching out to seek assistance with an issue I am encountering while using the Matrix client.
The problem arises when I call the client.joinRoom(roomId) function. It seems that an additional "/?" is appended to the URL, causing the request to fail with a "405 Unrecognized request" error.
The client already exists and the credentials are set correctly. :)
SDK Version 32.0.0
I don't see anything in the code base that would append /?. I suggest sharing a minimum reproduction case rather than a subset of one. My guess is whatever fetch polyfill you are using is doing this.
Actually I have the same problem - /? is appended to the end of every request which makes them to fail. I'm using react-native mobile app with matrix-js-sdk integrated with some polyfills. I guess I might need to check if those polyfills add /? somehow...
Okay it turns out my client was not using react-native-url-polyfill, so after adding it and applying it by adding import 'react-native-url-polyfill/auto'; now it works :)
Hey,
I am reaching out to seek assistance with an issue I am encountering while using the Matrix client.
The problem arises when I call the client.joinRoom(roomId) function. It seems that an additional "/?" is appended to the URL, causing the request to fail with a "405 Unrecognized request" error.
The client already exists and the credentials are set correctly. :)
SDK Version 32.0.0
Here are the relevant log entries:
My react native code:
The text was updated successfully, but these errors were encountered: