FileWatcher
FileWatcher copied to clipboard
"The URI scheme is not valid" Error when trying to run
Trying to figure out this error when attempting to run File Watcher for my plex using a windows machine.
C:\apps\filewatcher>fw
Configuration file: C:\apps\filewatcher\config.xml.
Unhandled exception. System.UriFormatException: Invalid URI: The URI scheme is not valid.
at System.Uri.CreateThis(String , Boolean , UriKind , UriCreationOptions& )
at System.Uri..ctor(String uriString)
at TE.FileWatcher.Configuration.Notification.GetUri()
at TE.FileWatcher.Configuration.Notification.SendAsync()
at TE.FileWatcher.Configuration.Notifications.OnElapsed(Object source, ElapsedEventArgs e)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object )
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
I'm basing the xml on your tutorial at: https://www.plexopedia.com/blog/automatically-scan-library/
My config.xml:
<watches>
<logging>
<path>.\fw.log</path>
</logging>
<watch>
<path>I:\Music</path>
<notifications>
<notification>
<triggers>
<trigger>Create</trigger>
<trigger>Change</trigger>
</triggers>
<method>GET</method>
<url>[env:http://192.168.0.189:32400]/library/sections/2/refresh?path=[urlenc:I:\Music\soulseek\complete]&X-Plex-Token=[env:*****]</url>
</notification>
</notifications>
</watch>
</watches>