Jump to content


Photo

Emby webhook

Discord Webhook

  • Please log in to reply
16 replies to this topic

#1 jasonborn OFFLINE  

jasonborn

    Advanced Member

  • Members
  • 37 posts
  • Local time: 11:41 AM

Posted 15 January 2020 - 08:18 AM

Hi Folks,

 

I try to configure the Webhooks functionality in emby Server (server events). In Discord I made a channel and copied the web-hook-link in Emby.

When I send a testmessage from Emby, I get the following message: ...There was an error sending the webhook test message. Please check that the url you entered is correct and try again...

 

Any idea what i'm doing wrong?

 

Kind regards,



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148965 posts
  • Local time: 05:41 AM

Posted 15 January 2020 - 02:16 PM

Hi, what url did you configure? Is it valid?

#3 jasonborn OFFLINE  

jasonborn

    Advanced Member

  • Members
  • 37 posts
  • Local time: 11:41 AM

Posted 15 January 2020 - 04:37 PM

Hi Luke,

 

I copied the webhook URL from my Discord text-channel and paste it in Emby webhook.

 

Kind regards



#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148965 posts
  • Local time: 05:41 AM

Posted 15 January 2020 - 05:02 PM

Is that url supposed to be able to receive post requests? It must be sending back an error, which you can find in the emby server log. or you can attach the log here and i'll find it.



#5 jasonborn OFFLINE  

jasonborn

    Advanced Member

  • Members
  • 37 posts
  • Local time: 11:41 AM

Posted 15 January 2020 - 05:29 PM

Hi Luke,

 

See attached the logfile. I use Discord for Radarr, Bazarr, private trackers Rss etc.

 

Kind regards



#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148965 posts
  • Local time: 05:41 AM

Posted 16 January 2020 - 12:03 AM

Hi there, did you forget to attach the log file?



#7 jasonborn OFFLINE  

jasonborn

    Advanced Member

  • Members
  • 37 posts
  • Local time: 11:41 AM

Posted 16 January 2020 - 01:06 AM

Damn :)

Attached Files



#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148965 posts
  • Local time: 05:41 AM

Posted 16 January 2020 - 01:37 AM

Looks like your discord url sent back a response saying bad request.



#9 jasonborn OFFLINE  

jasonborn

    Advanced Member

  • Members
  • 37 posts
  • Local time: 11:41 AM

Posted 16 January 2020 - 12:19 PM

Hmmm, don't have much things to configure. I will dive into it.

 

Kind regards



#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148965 posts
  • Local time: 05:41 AM

Posted 16 January 2020 - 01:15 PM

I would try to find out why it's sending back that response.

#11 jasonborn OFFLINE  

jasonborn

    Advanced Member

  • Members
  • 37 posts
  • Local time: 11:41 AM

Posted 16 January 2020 - 05:19 PM

What I found out is that it is not allowed to send an empty message to a Discord channel:

 

Logging from fiddler:

 

{message: "Cannot send an empty message", code: 50006}
message: "Cannot send an empty message"
code: 50006
 
To be continued..
 
Kind regards

Edited by jasonborn, 16 January 2020 - 05:20 PM.


#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148965 posts
  • Local time: 05:41 AM

Posted 16 January 2020 - 11:34 PM

The request body is never empty.



#13 jasonborn OFFLINE  

jasonborn

    Advanced Member

  • Members
  • 37 posts
  • Local time: 11:41 AM

Posted 21 January 2020 - 03:36 PM

Well, I see a difference in the URL when sending a message to Discord.

 

If I send a testmessage (working) from Radarr to a discord channel, the URL ends with /slackhttps://discordapp.c...ooks/..../slack. An enter gives the text OK in the browserscreen. When I send a testmessage (not working) from emby Server to a Discord channel, the URL don't ends with /slack. An enter gives 2 lines of text: type, id, name, avatar etc.

 

Kind regards.


Edited by jasonborn, 21 January 2020 - 03:37 PM.


#14 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148965 posts
  • Local time: 05:41 AM

Posted 21 January 2020 - 04:39 PM

Then customize the url so that it ends with /slack. When you configure the webhook you get to pick what the url is going to be.



#15 finish.06 OFFLINE  

finish.06

    Newbie

  • Members
  • 3 posts
  • Local time: 04:41 AM

Posted 11 February 2020 - 09:09 AM

@jasonborn,

 

Did you figure out what was necessary for this to work?  I played around with it and did not have any success.

Thanks!

 

Caleb



#16 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148965 posts
  • Local time: 05:41 AM

Posted 11 February 2020 - 11:40 AM

@jasonborn,

 

Did you figure out what was necessary for this to work?  I played around with it and did not have any success.

Thanks!

 

Caleb

 

Hi, what problem did you have?



#17 jasonborn OFFLINE  

jasonborn

    Advanced Member

  • Members
  • 37 posts
  • Local time: 11:41 AM

Posted 11 February 2020 - 11:52 AM

@jasonborn,
 
Did you figure out what was necessary for this to work?  I played around with it and did not have any success.

Thanks!
 
Caleb


Hi Caleb,

No sorry, and the slack plugin is not working either. On Discord I saw this post:https://emby.media/c...-notifications/

I'm on Mauritius so not able to check out further.

Kind regards





Also tagged with one or more of these keywords: Discord, Webhook

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users