Jump to content

webhooks issue


Go to solution Solved by Luke,

Recommended Posts

Posted

I set up  Webhooks

Add to Favorites
-
 
When I add some movie to  Favorites
 
Spoiler
2023-08-21 00:06:26.151 Info Server: http/1.1 Response 200 to host3. Time: 96ms. POST http://10.105.1.192:8096/emby/Users/xxxxx/FavoriteItems/41253/Delete?X-Emby-Client=Emby Theater&X-Emby-Device-Name=PC&X-Emby-Device-Id=PC&X-Emby-Client-Version=3.0.20&X-Emby-Token=x_secret4_x&X-Emby-Language=en-us
2023-08-21 00:06:26.981 Info Server: http/1.1 POST http://10.105.1.192:8096/emby/Users/xxxx/FavoriteItems/41253?X-Emby-Client=Emby Theater&X-Emby-Device-Name=PC&X-Emby-Device-Id=PC&X-Emby-Client-Version=3.0.20&X-Emby-Token=x_secret4_x&X-Emby-Language=en-us. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) EmbyTheater/3.0.20 Chrome/87.0.4280.141 Electron/11.5.0 Safari/537.36
2023-08-21 00:06:26.984 Error UserDataManager: Error in event handler
*** Error Report ***
Version: 4.8.0.42
Command line: /volume5/@appstore/EmbyServer/system/EmbyServer.dll -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -nolocalportconfig -ignore_vaapi_enabled_flag -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -defaultdirectory /volume1/Public -updatepackage emby-server-synology72_{version}_x86_64.spk -noautorunwebapp
Operating system: Linux version 4.4.302+ (root@build7) (gcc version 12.2.0 (GCC) ) #64570 SMP Tue Jun 13 21:40:17 CST 2023
Framework: .NET 6.0.20
OS/Process: x64/x64
Runtime: volume5/@appstore/EmbyServer/system/System.Private.CoreLib.dll
Processor count: 4
Data path: /var/packages/EmbyServer/var
Application path: /volume5/@appstore/EmbyServer/system
System.MissingMethodException: System.MissingMethodException: Method not found: 'System.String MediaBrowser.Controller.Entities.User.get_EasyPassword()'.
at EmbyScripterX.Core.ScripterXContextFactory.User(User _user)
at EmbyScripterX.EventManagers.ScripterXUserDataManager._userDataManager_UserDataSaved(Object sender, UserDataSaveEventArgs e)
at MediaBrowser.Common.Events.EventHelper.FireEventIfNotNull[T](EventHandler`1 handler, Object sender, T args, ILogger logger)
Source: EmbyScripterX
TargetSite: EmbyScripterX.Core.ScripterXEventContext User(MediaBrowser.Controller.Entities.User)
 
2023-08-21 00:06:26.984 Info Server: http/1.1 Response 200 to host3. Time: 3ms. POST http://10.105.1.192:8096/emby/Users/xxxx/FavoriteItems/41253?X-Emby-Client=Emby Theater&X-Emby-Device-Name=PC&X-Emby-Device-Id=PC&X-Emby-Client-Version=3.0.20&X-Emby-Token=x_secret4_x&X-Emby-Language=en-us

 

 

 
Posted

Hi, what exactly is the problem?

Posted
8 minutes ago, Luke said:

Hi, what exactly is the problem?

I have a third’s tool need to receive webhooks from Emby about favorite or disfavored a movie/show .

The test is ok

but favorites information can not be sent

IMG_9223.jpeg

IMG_9224.jpeg

Posted

What do you mean cannot be sent? That error is from the scripterx plugin and has nothing to do with webhooks. Try removing the scripterx plugin and that error will go away.

Posted
6 hours ago, Luke said:

What do you mean cannot be sent? That error is from the scripterx plugin and has nothing to do with webhooks. Try removing the scripterx plugin and that error will go away.

Thanks. 

But it is a little weird. When I try to add to favorites and my third tool cant not receive wehooks Before I delete scripterx plugin and the only information on logs is following the pictrue about scripterx plugin. 

Now I have delete  scripterx plugin and wehooks sent is ok. 

So I will try to install scripterx again and test it 

Posted
Quote
2023-08-21 18:51:44.382 Info Server: http/1.1 POST http://host1:8921/emby/Users/8b600a04a4154de68476759367afdfac/FavoriteItems/41253/Delete?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge Windows&X-Emby-Device-Id=62b25a29-bb74-424a-8a99-1b1e7cd1ff13&X-Emby-Client-Version=4.8.0.42&X-Emby-Token=x_secret1_x&X-Emby-Language=zh-cn. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.203
2023-08-21 18:51:44.384 Debug SqliteItemRepository: GetitemById Movie 41253 /volume1/Media1/电影/华语电影/猎屠 (2022)/猎屠 (2022) - 2160p.mp4
2023-08-21 18:51:44.387 Error UserDataManager: Error in event handler
	*** Error Report ***
	Version: 4.8.0.42
	Command line: /volume5/@appstore/EmbyServer/system/EmbyServer.dll -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -nolocalportconfig -ignore_vaapi_enabled_flag -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -defaultdirectory /volume1/Public -updatepackage emby-server-synology72_{version}_x86_64.spk -noautorunwebapp
	Operating system: Linux version 4.4.302+ (root@build7) (gcc version 12.2.0 (GCC) ) #64570 SMP Tue Jun 13 21:40:17 CST 2023
	Framework: .NET 6.0.20
	OS/Process: x64/x64
	Runtime: volume5/@appstore/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /var/packages/EmbyServer/var
	Application path: /volume5/@appstore/EmbyServer/system
	System.MissingMethodException: System.MissingMethodException: Method not found: 'System.String MediaBrowser.Controller.Entities.User.get_EasyPassword()'.
	   at EmbyScripterX.Core.ScripterXContextFactory.User(User _user)
	   at EmbyScripterX.EventManagers.ScripterXUserDataManager._userDataManager_UserDataSaved(Object sender, UserDataSaveEventArgs e)
	   at MediaBrowser.Common.Events.EventHelper.FireEventIfNotNull[T](EventHandler`1 handler, Object sender, T args, ILogger logger)
	Source: EmbyScripterX
	TargetSite: EmbyScripterX.Core.ScripterXEventContext User(MediaBrowser.Controller.Entities.User)
	
2023-08-21 18:51:44.387 Info Server: http/1.1 Response 200 to host2. Time: 5ms. POST http://host1:8921/emby/Users/8b600a04a4154de68476759367afdfac/FavoriteItems/41253/Delete?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge Windows&X-Emby-Device-Id=62b25a29-bb74-424a-8a99-1b1e7cd1ff13&X-Emby-Client-Version=4.8.0.42&X-Emby-Token=x_secret1_x&X-Emby-Language=zh-cn

here is an update.

Removed ScripterX , webhooks- add to favorites  is fine.

install ScripterX , webhooks - add to favorites not work.

But ScripterX is work with onMediaitermremoved.

So could you help me to fix it ? 

I need ScripterX - onMediaitermremoved

also need webhooks - add to favorites 

Posted

Please attach the complete emby server log. Thanks.

Posted

OK we'll take a look at it. Thanks.

  • 2 weeks later...
Posted

Hi, have you tried the latest build?

Posted

yes,  I’m using 4.8.0.43 now

But still have the same problem 

every single minute get the same error info 

The only thing I did just play video 

 

 

	*** Error Report ***
	Version: 4.8.0.43
	Command line: /volume5/@appstore/EmbyServer/system/EmbyServer.dll -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -nolocalportconfig -ignore_vaapi_enabled_flag -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -defaultdirectory /volume1/Public -updatepackage emby-server-synology72_{version}_x86_64.spk
	Operating system: Linux version 4.4.302+ (root@build7) (gcc version 12.2.0 (GCC) ) #64570 SMP Tue Jun 13 21:40:17 CST 2023
	Framework: .NET 6.0.20
	OS/Process: x64/x64
	Runtime: volume5/@appstore/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /var/packages/EmbyServer/var
	Application path: /volume5/@appstore/EmbyServer/system
	System.MissingMethodException: System.MissingMethodException: Method not found: 'System.String MediaBrowser.Controller.Entities.User.get_EasyPassword()'.
	   at EmbyScripterX.Core.ScripterXContextFactory.User(User _user)
	   at EmbyScripterX.EventManagers.ScripterXUserDataManager._userDataManager_UserDataSaved(Object sender, UserDataSaveEventArgs e)
	   at MediaBrowser.Common.Events.EventHelper.TriggerAll[T](EventHandler`1 mainHandler, Object sender, T args, ILogger logger)
	Source: EmbyScripterX
	TargetSite: EmbyScripterX.Core.ScripterXEventContext User(MediaBrowser.Controller.Entities.User)
  • Solution
Posted
2 minutes ago, paysen said:

yes,  I’m using 4.8.0.43 now

But still have the same problem 

every single minute get the same error info 

The only thing I did just play video 

 

 

	*** Error Report ***
	Version: 4.8.0.43
	Command line: /volume5/@appstore/EmbyServer/system/EmbyServer.dll -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -nolocalportconfig -ignore_vaapi_enabled_flag -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -defaultdirectory /volume1/Public -updatepackage emby-server-synology72_{version}_x86_64.spk
	Operating system: Linux version 4.4.302+ (root@build7) (gcc version 12.2.0 (GCC) ) #64570 SMP Tue Jun 13 21:40:17 CST 2023
	Framework: .NET 6.0.20
	OS/Process: x64/x64
	Runtime: volume5/@appstore/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /var/packages/EmbyServer/var
	Application path: /volume5/@appstore/EmbyServer/system
	System.MissingMethodException: System.MissingMethodException: Method not found: 'System.String MediaBrowser.Controller.Entities.User.get_EasyPassword()'.
	   at EmbyScripterX.Core.ScripterXContextFactory.User(User _user)
	   at EmbyScripterX.EventManagers.ScripterXUserDataManager._userDataManager_UserDataSaved(Object sender, UserDataSaveEventArgs e)
	   at MediaBrowser.Common.Events.EventHelper.TriggerAll[T](EventHandler`1 mainHandler, Object sender, T args, ILogger logger)
	Source: EmbyScripterX
	TargetSite: EmbyScripterX.Core.ScripterXEventContext User(MediaBrowser.Controller.Entities.User)

That requires help from the ScripterX developer, so please report this in the main ScripterX topic in the plugins section.

What I've done though is make sure that this error won't affect any other server functions like it was before.

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