Jump to content

New Plugin: Emby.Notification.Slack


Recommended Posts

ryderjj89
Posted

That would be fine. If you see the URL in my example, if it uses that, that would be fine, at least for me, and probably anyone else that uses something that can preview the images.

Natilus13
Posted (edited)

Yeah, a link like that wouldn't be bad. It would also then provide Slack users an easy way to find out more info by clicking on the link.

Edited by Natilus13
Grammar
  • Agree 1
ryderjj89
Posted

Good morning. Wanted to report that notifications are now broken in Slack. I've updated to 1.2.2 but can't do a test to see if that fixed it. This picture below is in the logs from this morning (before updating to 1.2.2). There was no changelog in either update for slack notifications so I can't tell what was fixed.

I can say that on 1.2.2, I can't do a test because it gives the same 400 bad request error and when I look at the dev tools console, there's the link that runs the test, which when I click on it, I get this: "The file '/emby/Notifications/Services/Test' cound not be found."

image.thumb.png.4a911801dd9f63d061d703725faf4bd9.png

ryderjj89
Posted

Giving this a bump @Luke

I see that 1.2.3 came out and I installed that. I see the option to attach the image to the notification so that's great. However, the test is still not working.

I get this in the dev tools console, 500 internal server error with this URL:

https://emby.REDACTED/emby/Notifications/Services/Test?X-Emby-Client=Emby+Web&X-Emby-Device-Name=Microsoft+Edge+Windows&X-Emby-Device-Id=REDACTED&X-Emby-Client-Version=4.8.10.0&X-Emby-Token=REDACTED&X-Emby-Language=en-us&reqformat=json

That link displays just this text:

"The file '/emby/Notifications/Services/Test' cound not be found." Yes, cound is a spelling error here.

ryderjj89
Posted

Can we get a status update on this? Currently have no working notifications now.

Posted
45 minutes ago, ryderjj89 said:

Can we get a status update on this? Currently have no working notifications now.

Does unchecking the box to attach images resolve it?

ryderjj89
Posted
25 minutes ago, Luke said:

Does unchecking the box to attach images resolve it?

It does not. Doesn't work whether it's checked or not. Just tells me bad request.

ryderjj89
Posted (edited)

Good afternoon @Luke

I updated to 4.8.11 today and now there's a new error.

The log is attached.

Here's the main portion.

Quote

2025-03-11 18:00:50.593 Error Notifications: Error sending notification
*** Error Report ***
Version: 4.8.11.0
Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
Operating system: Linux version 6.11.0-19-generic (buildd@lcy02-amd64-014) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, GNU ld (GNU Binutils for Ubun
Framework: .NET 6.0.36
OS/Process: x64/x64
Runtime: system/System.Private.CoreLib.dll
Processor count: 12
Data path: /config
Application path: /system
System.MissingMethodException: System.MissingMethodException: Method not found: 'System.String MediaBrowser.Controller.Entities.ApiImageInfo.GetRemoteApiImageUrl(MediaBrowser.Controller.Entities.ApiImageOptions)'.
at Emby.Notification.Slack.Notifier.SendNotification(InternalNotificationRequest request, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Emby.Notification.Slack.Notifier.SendNotification(InternalNotificationRequest request, CancellationToken cancellationToken)
at Emby.Notifications.UserNotifier.SendNotification(InternalNotificationRequest request, CancellationToken cancellationToken)
at Emby.Notifications.NotificationQueueManager.StartProcessingQueue()
Source: Emby.Notification.Slack
TargetSite: Void MoveNext()

 

embyserver.txt

Edited by ryderjj89
words are hard
ryderjj89
Posted
7 minutes ago, Luke said:

A 4.8.11 compatibility update is up. Thanks.

Thanks. Just installed 1.2.4 but we are back to the old error message. "Bad Request". This same error happens with and without attaching images.

2025-03-12 13:29:30.570 Error Server: Error processing request
*** Error Report ***
Version: 4.8.11.0
Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
Operating system: Linux version 6.11.0-19-generic (buildd@lcy02-amd64-014) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, GNU ld (GNU Binutils for Ubun
Framework: .NET 6.0.36
OS/Process: x64/x64
Runtime: system/System.Private.CoreLib.dll
Processor count: 12
Data path: /config
Application path: /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.Notification.Slack.Notifier.SendNotification(InternalNotificationRequest request, CancellationToken cancellationToken)
at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IServerApplicationHost appHost, IRequest httpReq, IResponse httpRes, IStreamHelper streamHelper, 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()

Posted
7 minutes ago, ryderjj89 said:

Thanks. Just installed 1.2.4 but we are back to the old error message. "Bad Request". This same error happens with and without attaching images.

2025-03-12 13:29:30.570 Error Server: Error processing request
*** Error Report ***
Version: 4.8.11.0
Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
Operating system: Linux version 6.11.0-19-generic (buildd@lcy02-amd64-014) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, GNU ld (GNU Binutils for Ubun
Framework: .NET 6.0.36
OS/Process: x64/x64
Runtime: system/System.Private.CoreLib.dll
Processor count: 12
Data path: /config
Application path: /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.Notification.Slack.Notifier.SendNotification(InternalNotificationRequest request, CancellationToken cancellationToken)
at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IServerApplicationHost appHost, IRequest httpReq, IResponse httpRes, IStreamHelper streamHelper, 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()

The plugin has switched to using slack blocks: https://api.slack.com/reference/block-kit/block-elements

Does whatever you're using support that? I'm guessing not.

ryderjj89
Posted
Just now, Luke said:

The plugin has switched to using slack blocks: https://api.slack.com/reference/block-kit/block-elements

Does whatever you're using support that? I'm guessing not.

No. I use Mattermost which for the most part was compatible with slack notifications. Mattermost also supports webhooks, but those don't work from the Webhooks plugin in Emby either.

https://developers.mattermost.com/integrate/webhooks/incoming/

Posted
4 minutes ago, ryderjj89 said:

No. I use Mattermost which for the most part was compatible with slack notifications. Mattermost also supports webhooks, but those don't work from the Webhooks plugin in Emby either.

https://developers.mattermost.com/integrate/webhooks/incoming/

Slack recommends using block kit now, so that's what we did. A dedicated mattermost plugin would be a better option.

ryderjj89
Posted
1 minute ago, Luke said:

Slack recommends using block kit now, so that's what we did. A dedicated mattermost plugin would be a better option.

Ah gotcha. I guess Mattermost just hasn't updated to that compatibility, and I don't know if they will. So that's kinda a bummer. I don't have any working notifications now lol. I shot myself in the foot asking for a link to be included. RIP.

Will you guys be able to make a Mattermost plugin? Could that take a while to do?

Posted
10 minutes ago, ryderjj89 said:

Ah gotcha. I guess Mattermost just hasn't updated to that compatibility, and I don't know if they will. So that's kinda a bummer. I don't have any working notifications now lol. I shot myself in the foot asking for a link to be included. RIP.

Will you guys be able to make a Mattermost plugin? Could that take a while to do?

I've just pushed an update to just the old method as long as you leave the images option unchecked. So you should be fine with that for now.

ryderjj89
Posted
3 minutes ago, Luke said:

I've just pushed an update to just the old method as long as you leave the images option unchecked. So you should be fine with that for now.

Yes that works. At least have the bare text notifications back for now. Thanks!

  • Thanks 1
  • 2 weeks later...
Natilus13
Posted (edited)

Does anyone have this working yet? So far, my notifications in Slack have only started using a smaller font. No luck at all with images showing.

Edited by Natilus13
Posted
1 hour ago, Natilus13 said:

Does anyone have this working yet? So far, my notifications in Slack have only started using a smaller font. No luck at all with images showing.

Hi there, have you explored the new options in the notification setup screen?

Natilus13
Posted

Sorry

34 minutes ago, Luke said:

Hi there, have you explored the new options in the notification setup screen?

I am a bit ocnfused... this entire thread is about these new features not working. I had also provided you log files in this thread, where I originally started having issues with Slack notifications. Cheers 🙂

 

  • 2 weeks later...
Posted

There is a defect in the 4.8.11 server release related to the notification image. It will be resolved in 4.8.12 and is already resolved in the beta channel. Thanks.

  • Thanks 1

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