Jump to content

Notifications - Webhook - v4.8


imjustleaving
Go to solution Solved by imjustleaving,

Recommended Posts

imjustleaving

Anyone else having issues with webhooks on 4.8? I tried to use a discord webhook and when I try to send a test notification I get an error.

 

Logs:

 
2024-02-06 17:53:03.661 Info Server: http/1.1 POST http://host1:8096/emby/Sessions/Capabilities/Full?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=873e56e8-d8b6-4c76-ba9e-6694e4e2f66d&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0
2024-02-06 17:53:03.662 Info Server: http/1.1 Response 204 to host2. Time: 1ms. POST http://host1:8096/emby/Sessions/Capabilities/Full?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=873e56e8-d8b6-4c76-ba9e-6694e4e2f66d&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json
2024-02-06 17:53:15.858 Info Server: http/1.1 POST http://host1:8096/emby/Notifications/Services/Test?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=873e56e8-d8b6-4c76-ba9e-6694e4e2f66d&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0
2024-02-06 17:53:15.859 Info HttpClient: POST https://discord.com/api/webhooks/[redacted]
2024-02-06 17:53:16.047 Error Server: Error processing request
*** Error Report ***
Version: 4.8.0.80
Command line: /app/emby/EmbyServer.dll -programdata /config -ffdetect /app/emby/ffdetect -ffmpeg /app/emby/ffmpeg -ffprobe /app/emby/ffprobe -restartexitcode 3
Operating system: Linux version 6.1.63-production+truenas (root@tnsbuilds01.tn.ixsystems.net) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2
Framework: .NET 6.0.25
OS/Process: x64/x64
Runtime: app/emby/System.Private.CoreLib.dll
Processor count: 4
Data path: /config
Application path: /app/emby
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 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()

2024-02-06 17:53:16.047 Info Server: http/1.1 Response 500 to host2. Time: 189ms. POST http://host1:8096/emby/Notifications/Services/Test?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=873e56e8-d8b6-4c76-ba9e-6694e4e2f66d&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json
 
Edited by imjustleaving
redacted webhook
Link to comment
Share on other sites

  • Solution
imjustleaving

found a fix on a different thread:

Quote

Fixed it. Needs to have the LabelWebhookUsername set to something

 

Link to comment
Share on other sites

imjustleaving
21 minutes ago, Luke said:

Hi, what was the solution?

when using the discord plugin from the app store, the fourth field, LabelWebhookUsername:, cannot be blank. the user must populate that with something for the webhook to function.

Edited by imjustleaving
  • Thanks 2
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...