Jump to content

webhook not sending user activity report


Recommended Posts

richardvrusso
Posted

Hi everyone,

If I missed it somewhere please let me know. I'm playing around with webhooks. I have the Playback Reporting plugin installed. It will send through email a daily 'user activity report' but not through the webhook. All the other checkboxes will send a webhook notification. I looked through the embyserver.txt log but only found limited entries. Then I turned on debug logging and ran that scheduled task again. Still trying to sift through for any info.

Anyone else have this issue and fixed it?

Thanks, Rich

richardvrusso
Posted

Hey Luke,

Sure thing. 

🤔 To try and capture what is or isn't going on, I'll enable debug logging, then click the scheduled task that runs the user activity report. Hopefully there will be something in there if that data is making it to the webhook... It is definitely making it to the email I receive nightly.

  • Thanks 1
richardvrusso
Posted

After I turned on debug logging, I went and played 60 seconds of a show. Then ran the task, and a few seconds later, I got the email with the user activity. I didn't not see the webhook notification externally.

I attached the log. Near the bottom I did notice these two lines. Which gave me the impression one was for the email and one for the webhook.

2025-07-09 13:55:30.447 Debug Notifications: Sending notification: User Activity Report Notification
2025-07-09 13:55:30.447 Debug Notifications: Sending notification: User Activity Report Notification

embyserver.txt

Posted

What did you expect to see and why?

richardvrusso
Posted

Maybe something why it failed to send that one checkbox to the webhook? 🤷‍♂️ User Activity report is checked on this and the email notification. Second screenshot is the email I got but now webhook notify.

image.thumb.png.70607e86824e5bc7a3556fc8e9ef258c.png 

 

image.thumb.png.0966caff91deeb11f548e310864c0541.png

Posted

There are no failures to that webhook address in the log. In fact, there are 21 successful messages sent to it.

richardvrusso
Posted

☹️  i can see those successfull ones but the user activity report is missing in the ether.

I'll try the discord plugin and see if I can get the missing notification with their webhook...

richardvrusso
Posted (edited)

Hmm how about this method?

2025-07-09 16:01:03.554 Info HttpClient: POST https://discord.com/api/webhooks/*apikey*
2025-07-09 16:01:03.628 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.12.24-Unraid (root@Develop) (gcc (GCC) 14.2.0, GNU ld version 2.44-slack151) #1 SMP PREEMPT_DYNAMIC Sat May  3 00:12:52 PDT 2025
	Framework: .NET 6.0.36
	OS/Process: x64/x64
	Runtime: system/System.Private.CoreLib.dll
	Processor count: 24
	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.Notifications.Discord.DiscordWebhookHelper.ExecuteWebhook(DiscordMessage message, String webhookUrl, IJsonSerializer _jsonSerializer, IHttpClient httpClient, CancellationToken cancellationToken)
	   at Emby.Notifications.NotificationQueueManager.StartProcessingQueue()
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()
	

image.png.0ee7baa3068f306ddb9cde94389cb41d.png

Edited by richardvrusso
richardvrusso
Posted

Oh wait sorry I found another thread from the person who made the plugin. Going to start searching through those 23 pages if someone has the same error as me. 😄

Posted

That’s your webhook url sending back an error code, probably due to something being configured incorrectly. 

What that is I don’t know. Maybe you left something blank that needs to be entered.

  • Agree 1
richardvrusso
Posted

Yeah probably. If I have to recreate the webhook in discord its not a problem. I think they are on to it with that other thread.

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