immanuelfodor / rocketchat-push-gateway

A push gateway for RocketChat to send notifications through Gotify
Do What The F*ck You Want To Public License
42 stars 7 forks source link

Gateway to Gotify don't work #7

Open ra1qcw opened 8 months ago

ra1qcw commented 8 months ago

Trying to use gateway. Chat->Gateway = OK Curl->Gotify=OK Gateway->Gotify= don't work :(

apprise-config.yml

urls:
  - gotify://10.1.1.142:85/123123123:
    - tag: push-gw-admin, 890890890809809890890809809809

This Curl is working curl "http://10.1.1.142:85/message?token=123123123" -F "title=my title" -F "message=my message" -F "priority=5"

Gateway log:

New notification received
Forwarded the received notification, tag=890890890809809890890809809809
"POST /push/gcm/send HTTP/1.1" 200 3 "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"

What can I do in this situation?

immanuelfodor commented 8 months ago

Hi, since this is basically a 1-file project, I suspect the issue is either network related or there was a change within Apprise or Gotify why it doesn't work for you. First intuitions to help debugging it:

ra1qcw commented 8 months ago

Sorry, but I can't understand, how to get apprise logs ( Tryed to change gataway = Apprise(debug=True) , but no more info in the logs. Tryed to change gotify server in yml to WRONG but result is the same. :( Can you advice how to get Apprise logs?

upd: installed apprise cli, this is work: apprise -vv -t 'test' -b 'my test notification body' gotify://10.1.1.142:85/1234567890

ra1qcw commented 8 months ago

I found a solution! :) I thinked what fresh apprise can use fresh urllib3 and just changed urllib3==1.24.2 # requests 2.21.0 has requirement urllib3<1.25,>=1.21.1 to urllib3 in requirements.txt Thank You!

immanuelfodor commented 8 months ago

Oh, I'm happy that you managed to get it working! I'll make the change to the requirements to provide the fix for everyone.