Sorry, it was a 400 "bad request" error not 404. From: [email protected] [mailto:[email protected]] On Behalf Of Randy Johnson Sent: Monday, September 30, 2013 6:36 PM To: [email protected] Subject: RE: [farcry-dev] Re: YouTube plugin problems
Hmm I am getting a 404 when using my "username" on the feed URL below. I signed in to our YouTube account with my email address as username - perhaps you are right, maybe that is not my actual username! Looking into it now. Thanks a lot Sean I really appreciate it! From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Sean Coyne Sent: Monday, September 30, 2013 6:26 PM To: [email protected]<mailto:[email protected]> Subject: [farcry-dev] Re: YouTube plugin problems Sorry, for multiple responses. What version of FarCry are you running? If you're running 6.0.x you may need to perform an updateapp after you enter the config data. Also, you can try to manually run the API method and see what you get. For example, the URL to grab playlists for my username (nickel4242) is http://gdata.youtube.com/feeds/api/users/nickel4242/playlists Try replacing "nickel4242" with your username, and run that URL in a web browser and see what you get. Perhaps your username is not what you think it is. Sean On Monday, September 30, 2013 6:19:49 PM UTC-4, Sean Coyne wrote: Also, be sure you're using the most recent version. You can grab the latest from Github https://github.com/seancoyne/FarCry-YouTube-Plugin On Monday, September 30, 2013 6:17:58 PM UTC-4, Sean Coyne wrote: I wrote that plugin. I'm happy to try and help. Are you sure the request is returning XML? Can you dump the "result" variable and see what is in "filecontent". It is possible the request is not returning XML for some reason. Sean On Monday, September 30, 2013 6:07:33 PM UTC-4, Randy Johnson wrote: Hello, I installed the YouTube plugin from http://plugins.farcrycore.org/plugin/youtube. Everything seemed to go well, I added API key and username to config and it shows in the content section. But I cannot get it to sync. When I try to manually sync, I get the following error: Error Details Message An error occured while Parsing an XML document. Exception Type Expression Detail Content is not allowed in prolog. Tag Context * C:\inetpub\wwwroot\Clients\vtol.org<http://vtol.org>\farcry\plugins\youtube\packages\custom\custom.cfc (line: 48) * C:\inetpub\wwwroot\Clients\vtol.org<http://vtol.org>\farcry\plugins\youtube\packages\types\youtubeVideo.cfc (line: 100) * C:\inetpub\wwwroot\Clients\vtol.org<http://vtol.org>\farcry\plugins\youtube\customadmin\manualSync.cfm (line: 11) * C:\inetpub\wwwroot\Clients\vtol.org<http://vtol.org>\farcry\core\webtop\admin\customadmin.cfm (line: 35) I have run into this issue before when there was white space etc at the beginning of the XML. Substituting <cfset result = xmlParse(result.filecontent)> with <cfset result = xmlParse(REReplace(result.filecontent, "^[^<]*", "", "all" )) /> in custom.cfc resulted in a different error, "premature end of file." If anybody could point me towards an explanation of what I might be doing wrong, I sure would appreciate it! It will be great to have this feature enabled for our content people. Thanks a lot! -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected]<mailto:[email protected]> To unsubscribe, email: [email protected]<mailto:[email protected]> For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry --- You received this message because you are subscribed to the Google Groups "farcry-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected]<mailto:[email protected]> To unsubscribe, email: [email protected]<mailto:[email protected]> For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry --- You received this message because you are subscribed to the Google Groups "farcry-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry --- You received this message because you are subscribed to the Google Groups "farcry-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
