Jump to content

Emby (500 error) notifications issue - Slack


sesipod

Recommended Posts

sesipod

I am getting an 500 error when trying to setup Slack Webhooks in Emby. 

 

Log: at the bottom of this post under images
I have tried a new webhook url and still the same issue.

 

 

 

5e86b6572a7df_embyslackissue.png

 

5e86b66d637cd_embyslackissue2.png

5e86b680b412b_embyslackissue3.png

 

 

 

Here is the log for the webhook send: I have deleted the webhook form my slack before posting for my security.

2020-04-02 23:09:08.059 Info HttpServer: HTTP Response 204 to 192.168.1.59. Time: 22ms. http://192.168.1.160:8096/emby/Webhooks
2020-04-02 23:09:08.229 Info HttpServer: HTTP GET http://192.168.1.160:8096/emby/System/Configuration/webhooks. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-02 23:09:08.231 Info HttpServer: HTTP Response 200 to 192.168.1.59. Time: 2ms. http://192.168.1.160:8096/emby/System/Configuration/webhooks
2020-04-02 23:09:09.523 Info HttpServer: HTTP GET http://192.168.1.160:8096/emby/System/Configuration/webhooks. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-02 23:09:09.524 Info HttpServer: HTTP Response 200 to 192.168.1.59. Time: 1ms. http://192.168.1.160:8096/emby/System/Configuration/webhooks
2020-04-02 23:09:09.538 Info HttpServer: HTTP GET http://192.168.1.160:8096/emby/users. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-02 23:09:09.540 Info HttpServer: HTTP Response 200 to 192.168.1.59. Time: 2ms. http://192.168.1.160:8096/emby/users
2020-04-02 23:09:10.942 Info HttpServer: HTTP POST http://192.168.1.160:8096/emby/Webhooks/Send/Test. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-02 23:09:10.943 Info HttpClient: POST https://hooks.slack.com/services/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
2020-04-02 23:09:11.582 Error HttpClient: invalid_payload
2020-04-02 23:09:11.585 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.4.0.40
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Unix 4.19.0.8
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll
	System.Environment.Version: 3.1.2
	Processor count: 6
	Program data path: /var/lib/emby
	Application directory: /opt/emby-server/system
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: BadRequest
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
	   at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()
	
2020-04-02 23:09:11.585 Info HttpServer: HTTP Response 500 to 192.168.1.59. Time: 643ms. http://192.168.1.160:8096/emby/Webhooks/Send/Test
2020-04-02 23:09:13.422 Info HttpServer: HTTP POST http://192.168.1.160:8096/emby/Sessions/Playing/Progress. UserAgent: Roku/DVP-9.20 (509.20E04807A)
2020-04-02 23:09:13.424 Info HttpServer: HTTP Response 204 to 192.168.1.55. Time: 2ms. http://192.168.1.160:8096/emby/Sessions/Playing/Progress
2020-04-02 23:09:18.119 Info HttpServer: HTTP GET http://192.168.1.160:8096/emby/Users/b658e7f05d2c4b8b9857f325f35f1c6e. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-02 23:09:18.120 Info HttpServer: HTTP Response 200 to 192.168.1.59. Time: 2ms. http://192.168.1.160:8096/emby/Users/b658e7f05d2c4b8b9857f325f35f1c6e
2020-04-02 23:09:18.162 Info HttpServer: HTTP GET http://192.168.1.160:8096/emby/System/Configuration. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-02 23:09:18.163 Info HttpServer: HTTP Response 200 to 192.168.1.59. Time: 1ms. http://192.168.1.160:8096/emby/System/Configuration
2020-04-02 23:09:18.168 Info HttpServer: HTTP GET http://192.168.1.160:8096/emby/System/Logs. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-02 23:09:18.179 Info HttpServer: HTTP Response 200 to 192.168.1.59. Time: 11ms. http://192.168.1.160:8096/emby/System/Logs
2020-04-02 23:09:21.521 Info HttpServer: HTTP GET http://192.168.1.160:8096/emby/System/Logs/embyserver.txt. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
Link to comment
Share on other sites

Hi, slack sent an error response saying it was a bad request. I think you might be misunderstanding this feature - it's not built for slack specifically. Whatever is receiving the webhook requests from emby server needs to know how to understand them.

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