buckneri / youtube-direct

Automatically exported from code.google.com/p/youtube-direct
0 stars 1 forks source link

JSON.parse error after redeployment of most current SVN Trunk #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.goto http://www.monroepublishing.com/video/ and click "Submit Your Video"
2.when popup comes up, click "click here to continue"
3.it should ask you to log in to youtube.
4.when it gets to the screen to upload or submit existing video, choose either
5.upload or submit existing.

What is the expected output? What do you see instead?
it should return a success screen.

it says "submitting" and it looks like its doing something, but then just sits 
there, if i view the error console in firefox while doing this it returns.

JSON.parse
http://monroe.news.appspot.com/js/ext/json2.js Line:478 

What version of the product are you using? On what operating system?
just redeployed with the most current SVN Trunk, i uploaded with eclipse 
version 3.5 galileo, on windows xp. it deployed fine with no errors.

Please provide any additional information below.

Original issue reported on code.google.com by jdse...@gmail.com on 22 Nov 2010 at 1:27

GoogleCodeExporter commented 8 years ago
Hello,

 Hmm, sorry that you're running into this. I took a look at the error response returned to the client and the underlying issue is that the playlist associated with your YTD assignment has reached the maximum size of 200 videos. The latest YTD codebase will attempt to remove the oldest video from the playlist and insert the new submission to the front of the playlist, but for some reason I'm not clear on, the YouTube API call to remove the oldest video from the playlist is failing with an "java.lang.UnsupportedOperationException: Entry cannot be deleted" exception.

 I'm not clear on why this would be happening—I'm assuming that you're properly authenticated with the YouTube API in the YTD configuration? Is the account you're currently authenticated as definitely the owner of the playlist that's associated with that assignment?

 In any case, I've modified the code in the SVN trunk to explicitly catch that UnsupportedOperationException and log it, so even if the automatic playlist deletion/addition fails, it won't affect the user experience when submitting a video. Please sync again and redeploy. I'd really like to get to the bottom of why the playlist modification is failing for you.

Original comment by api.je...@gmail.com on 24 Nov 2010 at 5:41

GoogleCodeExporter commented 8 years ago

Original comment by api.je...@gmail.com on 24 Nov 2010 at 5:41

GoogleCodeExporter commented 8 years ago
Hi,

we are definitely authenticated properly, and the account i am using is the 
owners account. I redeployed.. and it seems to work now, kind of...

I have moderation mode turned off.. in order for the videos to show up now.. it 
looks like i have to go in and manually set it to ureviewed.. and then back to 
approve before it'll show up in my playlist.

Original comment by monroeev...@gmail.com on 24 Nov 2010 at 6:46

GoogleCodeExporter commented 8 years ago
Okay, great, I think the fact that you had moderation turned off was the key 
here. I've hopefully fixed the issue with 
http://code.google.com/p/youtube-direct/source/detail?r=552 so if you sync up 
and redeploy one more time, hopefully the automatic playlist management 
(including removing the oldest video once you reach 200 and adding the new one 
without any intervention) should be working.

Please reopen this issue if you're still having problems!

Original comment by api.je...@gmail.com on 24 Nov 2010 at 6:59