Jump to content

Recommended Posts

Posted

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,

Posted

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

Posted

Hi Luke,

 

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

 

Kind regards

Posted

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.

Posted

Hi Luke,

 

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

 

Kind regards

Posted

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

Posted

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

Posted

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

 

Kind regards

Posted

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

Posted (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 by jasonborn
Posted

The request body is never empty.

Posted (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 /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
Posted

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.

  • 3 weeks later...
Posted

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

Posted

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

  • 2 weeks later...
Posted

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

Posted

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?

Posted (edited)

Webhook for emby, using url provided by discord.

 

regards

post-435883-0-41391800-1582487107_thumb.png

Edited by judgey
Posted

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

Posted

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.

  • 2 years later...
Posted

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

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...