docker-emby icon indicating copy to clipboard operation
docker-emby copied to clipboard

[BUG] Webook (native) does not work for Discord

Open tbutz12 opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

When using discord web hook, the result is: image

Notes: Using latest linuxiso repo. The discord plugin sends the notification fine.

Expected Behavior

When using the native webhook notification to discord, it sends notifications without error.

Steps To Reproduce

  1. Log into emby server
  2. Go to settings
  3. Go to notifications
  4. Enter an existing discord webhook URL
  5. Send a test notification

Environment

- OS: Unraid 7.0.0
- How docker service was installed: Via unraid community apps, on latest as of 01/12/2025.

CPU architecture

x86-64

Docker creation

image

Container logs

*** Error Report ***
Version: 4.8.10.0
Command line: /app/emby/system/EmbyServer.dll -programdata /config -ffdetect /app/emby/bin/ffdetect -ffmpeg /app/emby/bin/ffmpeg -ffprobe /app/emby/bin/ffprobe -restartexitcode 3
Operating system: Linux version 6.6.68-Unraid (root@Develop) (gcc (GCC) 14.2.0, GNU ld version 2.43.1-slack151) #1 SMP PREEMPT_DYNAMIC Tue Dec 31 13:42:37 PST 2024
Framework: .NET 6.0.31
OS/Process: x64/x64
Runtime: app/emby/system/System.Private.CoreLib.dll
Processor count: 12
Data path: /config
Application path: /app/emby/system
System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
at Emby.Api.UserLibrary.UserLibraryService.Get(GetLatestMedia request)
at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req, Type serviceType)
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.Api
TargetSite: System.Object Get(Emby.Api.UserLibrary.GetLatestMedia)
2025-01-12 00:05:00.021 Info Server: http/1.1 Response 500 to host1. Time: 2ms. GET http://host2:8096/Users/b83171e88ea244a9ac3ec93735930467/Items/Latest?Limit=12&ParentId=3
2025-01-12 00:05:14.467 Info Server: http/1.1 POST http://host2:8096/emby/Notifications/Services/Test?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox Windows&X-Emby-Device-Id=e4ac0d30-8058-4c5b-a35c-b1938e6d63ea&X-Emby-Client-Version=4.8.10.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json. Source Ip: host3, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
2025-01-12 00:05:14.510 Info HttpClient: POST https://discord.com/api/webhooks/REMOVED_FOR_SECURITY
2025-01-12 00:05:14.819 Error Server: Error processing request

tbutz12 avatar Jan 12 '25 08:01 tbutz12

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

github-actions[bot] avatar Jan 12 '25 08:01 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

LinuxServer-CI avatar Feb 11 '25 12:02 LinuxServer-CI

This issue is locked due to inactivity

LinuxServer-CI avatar May 13 '25 13:05 LinuxServer-CI