okb48 / google-api-objectivec-client

Automatically exported from code.google.com/p/google-api-objectivec-client
0 stars 0 forks source link

YouTube API for objective C has a “?” (question mark) in the name “videoId?:” for a GTLYouTubeResourceId #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From: https://code.google.com/p/gdata-issues/issues/detail?id=3863

Name of API affected:

YouTube JSON/ObjectiveC
Issue summary:
Provide a brief summary of the issue you're experiencing.
I really believe that this worked at some point but it is dropping an exception 
and crashing when it gets to here:

GTLYouTubeResourceId *thisVideo = item.identifier;
NSString *myVidId = thisVideo.videoId;
here is the error:

2012-12-17 10:13:02.494 STATS[21427:11603] *** Terminating app due to uncaught 
exception 'NSInvalidArgumentException', reason: '-[GTLYouTubeVideo videoId]: 
unrecognized selector sent to instance 0xc471500'
*** First throw call stack:
(0x1e15012 0x16b2e7e 0x1ea04bd 0x1e04bbc 0x1e0494e 0x6e11 0x4ae5a 0x16c66b0 
0xde7035 0x1d98f3f 0x1d9896f 0x1dbb734 0x1dbaf44 0x1dbae1b 0x276f7e3 0x276f668 
0x2ee65c 0x278d 0x26b5)
libc++abi.dylib: terminate called throwing an exception
the JSON that comes back from the API is formatted with a ? in the Video id 
title

2012-12-17 10:20:46.476 STATS[21630:11603]      *****  YOUTUBe thisVideo 
GTLYouTubeVideo 0x8267fe0: {kind:"youtube#video" videoId?:"AAAAAAAA"}

Steps to reproduce issue:
1. Create a query queryForSearchListWithPart:@"snippet"
2. the GTLYouTubeResourceId within the GTLYouTubeSearchResult has a 
“videoId?:” instead of “videoId:”
3. calling videoId causes the app to crash with the exception above.

Expected output:
What do you expect to see after performing the above steps?
To retrieve the VideoID from json response

Actual results:
What do you actually see after performing the above steps?
the application crashed 

Notes:
Provide any additional information which might be useful here. Feel free to
attach screenshots or sample code which demonstrates the issue being
described.

Original issue reported on code.google.com by mshiban...@gmail.com on 17 May 2014 at 1:16

GoogleCodeExporter commented 9 years ago
Sorry. It has already been fixed.
Prease Close it.

Original comment by mshiban...@gmail.com on 17 May 2014 at 1:34

GoogleCodeExporter commented 9 years ago

Original comment by grobb...@google.com on 24 May 2014 at 2:02