jasonborn 21 Posted January 15, 2020 Share Posted January 15, 2020 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 More sharing options...
Luke 37007 Posted January 15, 2020 Share Posted January 15, 2020 Hi, what url did you configure? Is it valid? Link to comment Share on other sites More sharing options...
jasonborn 21 Posted January 15, 2020 Author Share Posted January 15, 2020 Hi Luke, I copied the webhook URL from my Discord text-channel and paste it in Emby webhook. Kind regards Link to comment Share on other sites More sharing options...
Luke 37007 Posted January 15, 2020 Share Posted January 15, 2020 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 More sharing options...
jasonborn 21 Posted January 15, 2020 Author Share Posted January 15, 2020 Hi Luke, See attached the logfile. I use Discord for Radarr, Bazarr, private trackers Rss etc. Kind regards Link to comment Share on other sites More sharing options...
Luke 37007 Posted January 16, 2020 Share Posted January 16, 2020 Hi there, did you forget to attach the log file? Link to comment Share on other sites More sharing options...
jasonborn 21 Posted January 16, 2020 Author Share Posted January 16, 2020 Damn EmbyLog.txt Link to comment Share on other sites More sharing options...
Luke 37007 Posted January 16, 2020 Share Posted January 16, 2020 Looks like your discord url sent back a response saying bad request. Link to comment Share on other sites More sharing options...
jasonborn 21 Posted January 16, 2020 Author Share Posted January 16, 2020 Hmmm, don't have much things to configure. I will dive into it. Kind regards Link to comment Share on other sites More sharing options...
Luke 37007 Posted January 16, 2020 Share Posted January 16, 2020 I would try to find out why it's sending back that response. Link to comment Share on other sites More sharing options...
jasonborn 21 Posted January 16, 2020 Author Share Posted January 16, 2020 (edited) 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 January 16, 2020 by jasonborn Link to comment Share on other sites More sharing options...
Luke 37007 Posted January 17, 2020 Share Posted January 17, 2020 The request body is never empty. Link to comment Share on other sites More sharing options...
jasonborn 21 Posted January 21, 2020 Author Share Posted January 21, 2020 (edited) 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 /slack: https://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 January 21, 2020 by jasonborn Link to comment Share on other sites More sharing options...
Luke 37007 Posted January 21, 2020 Share Posted January 21, 2020 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 More sharing options...
finish.06 0 Posted February 11, 2020 Share Posted February 11, 2020 @@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 Link to comment Share on other sites More sharing options...
Luke 37007 Posted February 11, 2020 Share Posted February 11, 2020 @@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 More sharing options...
jasonborn 21 Posted February 11, 2020 Author Share Posted February 11, 2020 @@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 More sharing options...
judgey 13 Posted February 23, 2020 Share Posted February 23, 2020 Im trying to get emby to work with discord but the webhook url gives an error when trying to add it to emby. Link to comment Share on other sites More sharing options...
Luke 37007 Posted February 23, 2020 Share Posted February 23, 2020 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 More sharing options...
judgey 13 Posted February 23, 2020 Share Posted February 23, 2020 (edited) Webhook for emby, using url provided by discord. regards Edited February 23, 2020 by judgey Link to comment Share on other sites More sharing options...
jasonborn 21 Posted February 23, 2020 Author Share Posted February 23, 2020 Try this judgey: https://emby.media/community/index.php?/topic/82370-new-plugin-discord-notifications/ Link to comment Share on other sites More sharing options...
judgey 13 Posted February 23, 2020 Share Posted February 23, 2020 Try this judgey: https://emby.media/community/index.php?/topic/82370-new-plugin-discord-notifications/ thank you works spot on Link to comment Share on other sites More sharing options...
judgey 13 Posted February 23, 2020 Share Posted February 23, 2020 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 More sharing options...
Luke 37007 Posted February 24, 2020 Share Posted February 24, 2020 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 More sharing options...
Nyazuma 0 Posted July 8, 2022 Share Posted July 8, 2022 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now