Jump to content

Emby webhook


jasonborn

Recommended Posts

jasonborn

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,

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

jasonborn

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
Link to comment
Share on other sites

jasonborn

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.com/api/webhooks/..../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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 weeks later...

@@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?

Link to comment
Share on other sites

jasonborn

@@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/community/index.php?/topic/82370-new-plugin-discord-notifications/

 

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

 

Kind regards

Link to comment
Share on other sites

  • 2 weeks later...

Im trying to get emby to work with discord but the webhook url gives an error when trying to add it to emby.

What error?

Link to comment
Share on other sites

Sorry seems the test works but it's not letting me know whos playing what. I used the same webhook URL for each person is that ok.

 

Thanks

Link to comment
Share on other sites

Sorry seems the test works but it's not letting me know whos playing what. I used the same webhook URL for each person is that ok.

 

Thanks

 

Well on the receiving end, you can parse the json and examine the request body to see what user is playing.

Link to comment
Share on other sites

  • 2 years later...
Nyazuma

Hello @Luke,

I also tried the Webhook function with Discord but have the same errors as others.

My guess is that the POST request needs to have this header :

Content-Type: application/json

Is it possible to update the webhook and add the header ?

Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...