Skylar-Tech / node-red-contrib-matrix-chat

Matrix chat server support for Node-RED
GNU General Public License v3.0
31 stars 10 forks source link

Cannot obtain access token #112

Closed CapricaBSG closed 4 months ago

CapricaBSG commented 4 months ago

Hello,

I cannot obtain an access token. On the backend its synapse and when I attempt to call it, it says 405 Method Not Allowed.

I do not know if this is an issue at my end or with the server. Looking at the source code it seems to call url + /matrix-chat/login, when I try to do a POST call the terminal it also returns a 405 error. I do not know what I am doing wrong. Thanks

skylord123 commented 4 months ago

Are you logged into Node-RED with a user that has the flows.write permission?

Is Node-RED behind a reverse proxy?

EDIT: If you could provide version info for Node-RED and node-red-contrib-matrix-chat that will help as well.

CapricaBSG commented 4 months ago

Yes my user has flows.write, and node-red is currently running in home assistant as a docker container. v 1.3.5 of node-red and 0.7.1 of node-red-contrix-matrix-chat.

I also used insomina to do a POST call to the same url, and it also says error 405

CapricaBSG commented 4 months ago

I have found out the error, for custom servers, e.g. test.org, its critical to append the matrix.test.org, it was specific to me