zoernert / nr-gotify-push

NodeRED Node to send Push Messages via Gotify (self-hosted or cloud)
Apache License 2.0
3 stars 1 forks source link

Can not connect to the self-hosted Gotify server #2

Closed alexsahka closed 1 year ago

alexsahka commented 2 years ago

Can not connect to the self-hosted Gotify server. image image

Node red connects with the gotify-notification image image

zoernert commented 2 years ago

The red bubble means that you are missing a required configuration-node. Is the message receive node working for you? Or only the sende node?

alexsahka commented 2 years ago

Both, Neither send nor receive working.

alexsahka commented 2 years ago

My self-hosted Gotify server, working just fine with the https://flows.nodered.org/node/node-red-contrib-gotify

alexsahka commented 2 years ago

image image

App token and Gotify-server field outline are red.

toomyem commented 1 year ago

It is important to have trailing slash in Gotify-Server address.

https://gotify.example.com/ -> works https://gotify.example.com -> displays error message in node-red's log: "Error: getaddrinfo ENOTFOUND gotify.toomyem.netmessage at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)"

This could be quite easily fixed by changing the line from send.js: axios.post(config.server+"message?token="+config.token,msg.payload); to: axios.post(config.server+"/message?token="+config.token,msg.payload);

alexsahka commented 1 year ago

It is important to have trailing slash in Gotify-Server address.

I have tried with/without trailing slash with the same result. The app token and the Gotify-server field still outline in red.

I think this is interference with the https://flows.nodered.org/node/node-red-contrib-gotify which is installed in the NodeRed

alexsahka commented 1 year ago

Just confirmed the interference with the https://flows.nodered.org/node/node-red-contrib-gotify Installed the nr-gotify-push on testing Nodered and everything is working

alexsahka commented 1 year ago

I think these two nodes share the same folder = /node_modules/nr-gotify/