No service found for URL

Hello,

New to Plex but I have tried to research this problem I’ve encountered and am not sure how to proceed in debugging it. I am trying to develop a channel for foxbusiness.com and it turns out that foxnews.com, for which Plex has a channel for, is virtually identical. I’ve copied the FoxNews plugin and changed references for foxnews.com to foxbusiness.com. It seemed as if it were going to work and everything was loaded within the server, News Clips, Show Clips, clicking on those categories and then sub-categories, etc. Clicking on one of these should take you to videos but then you’re hit with the ‘This channel is not responding’ error. Looking into the logs reveals that the error that broke the process was:
No service found for URL ‘http://video.foxbusiness.com/v/4707153717001
Putting this url into a browser shows it to be a valid url which started a video and some research on this error led me to entering this url to test directly:
http://127.0.0.1:32400/system/services/url/lookup?url=http%3A%2F%2Fvideo.foxbusiness.com%2Fv%2F4707153717001
This returns nothing where it evidentally should return a xml MediaContainer structure. I’m just not sure how to proceed on debugging this although I suspect that it’s something simple that someone with more knowledge and experience developing channel plugins would recognize, so I’m hoping someone here can help me to resolve this.

Thanks

You will have to copy the fox news service code from https://github.com/plexinc-plugins/Services.bundle/tree/master/Contents/Service%20Sets and modify it to match your urls.
Then add it to your bundle :
channel.bundle/Contents/Services/ServiceInfo.plist
channel.bundle/Contents/Services/URL/{servicename}/ServiceCode.pys

Well, that actually made no change, still errors with:
No service found for URL ‘http://video.foxbusiness.com/v/4706904045001
and
http://127.0.0.1:32400/system/services/url/lookup?url=http%3A%2F%2Fvideo.foxbusiness.com%2Fv%2F4706904045001
returns nothing?

Did you modify the URLPatterns regex in ServiceInfo.plist? If you did (do), you have to restart Plex Media Server for the changes to be picked up.

The URLPatterns regex in the file was:
^http://video.foxbusiness.com(/#)?/v/[0-9]+.*
It seemed to me that it should be:
^http://video.foxbusiness.com/v/[0-9]+.*
so I changed it and restarted the server and now I don’t get the No service found in URL error but I am still getting This channel is not responding, manual entering url fails to return the MediaContainer structure and the logs produced this:

2016-01-17 15:02:07,938 (7fced4ff9700) : DEBUG (runtime:717) - Handling request GET /video/foxbusiness
2016-01-17 15:02:07,940 (7fced4ff9700) : DEBUG (runtime:49) - Received packed state data (80 bytes)
2016-01-17 15:02:07,944 (7fced4ff9700) : DEBUG (runtime:814) - Found route matching /video/foxbusiness
2016-01-17 15:02:07,946 (7fced4ff9700) : DEBUG (base:117) - Checking if com.plexapp.plugins.foxbusiness is broken
2016-01-17 15:02:07,948 (7fced4ff9700) : DEBUG (networking:166) - Requesting ‘http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzEKY29tLnBsZXhhcHAucGx1Z2lucy5mb3hidXNpbmVzc3MxMAppZGVudGlmaWVycjAK
2016-01-17 15:02:07,973 (7fced4ff9700) : DEBUG (runtime:88) - Sending packed state data (112 bytes)
2016-01-17 15:02:07,974 (7fced4ff9700) : DEBUG (runtime:924) - Response: [200] MediaContainer, 710 bytes
2016-01-17 15:02:10,294 (7fced4ff9700) : DEBUG (runtime:717) - Handling request GET /video/foxbusiness
2016-01-17 15:02:10,297 (7fced4ff9700) : DEBUG (runtime:49) - Received packed state data (80 bytes)
2016-01-17 15:02:10,301 (7fced4ff9700) : DEBUG (runtime:814) - Found route matching /video/foxbusiness
2016-01-17 15:02:10,303 (7fced4ff9700) : DEBUG (base:117) - Checking if com.plexapp.plugins.foxbusiness is broken
2016-01-17 15:02:10,305 (7fced4ff9700) : DEBUG (networking:166) - Requesting ‘http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzEKY29tLnBsZXhhcHAucGx1Z2lucy5mb3hidXNpbmVzc3MxMAppZGVudGlmaWVycjAK
2016-01-17 15:02:10,337 (7fced4ff9700) : DEBUG (runtime:88) - Sending packed state data (112 bytes)
2016-01-17 15:02:10,338 (7fced4ff9700) : DEBUG (runtime:924) - Response: [200] MediaContainer, 710 bytes
2016-01-17 15:02:11,796 (7fced4ff9700) : DEBUG (runtime:717) - Handling request GET /video/foxbusiness
2016-01-17 15:02:11,799 (7fced4ff9700) : DEBUG (runtime:49) - Received packed state data (80 bytes)
2016-01-17 15:02:11,803 (7fced4ff9700) : DEBUG (runtime:814) - Found route matching /video/foxbusiness
2016-01-17 15:02:11,805 (7fced4ff9700) : DEBUG (base:117) - Checking if com.plexapp.plugins.foxbusiness is broken
2016-01-17 15:02:11,808 (7fced4ff9700) : DEBUG (networking:166) - Requesting ‘http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzEKY29tLnBsZXhhcHAucGx1Z2lucy5mb3hidXNpbmVzc3MxMAppZGVudGlmaWVycjAK
2016-01-17 15:02:11,840 (7fced4ff9700) : DEBUG (runtime:88) - Sending packed state data (112 bytes)
2016-01-17 15:02:11,841 (7fced4ff9700) : DEBUG (runtime:924) - Response: [200] MediaContainer, 710 bytes

Actually, when I click on other categories I still get the No service found for URL error.

Is the code somewhere on Github? It’s easier to have a look at it that way :slight_smile:

Plex actually has a foxnews channel already. I made a copy of it and changed the foxnews bits to foxbusiness and started from there. I followed coryo123’s comment above and made changes to these files at https://github.com/plexinc-plugins/Services.bundle/tree/master/Contents/Service%20Sets/com.plexapp.plugins.foxnews and that’s where I’m at. I do have a server which I uploaded the bundle to that you can get here: https://thesparrowhouse.org/Fox Business.bundle.zip

Thanks for your help.

oops, acutally it’s at: https://thesparrowhouse.org/FoxBusiness.bundle.zip without the space.

It looks like you’ve been editing the included “Search” service, but you should be editing the “URL Service”, which, in this case, is included in the Services bundle. You have to copy that one over to the channel bundle. I’ll upload a version with those changes in a minute.

Updated bundle is available here: https://github.com/sander1/Fox-Business.bundle

@sander1 , that did the trick, I’ll study what made the diff here, I appreciate your time and effort.