komaldaudia / google-api-objectivec-client

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

Sample code does not work #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow instructions given here: 
https://developers.google.com/drive/quickstart-ios.
2. Run, login to google, allow access.
3. Attempt to upload a photo.

What is the expected output? What do you see instead?

Expected result: loading screen followed by confirmation pop-up; image uploaded 
to drive
Actual result: Crash while on loading screen - 
'NSInternalInconsistencyException', reason: 'unexpected response data 
(uploading to the wrong URL?)'

What version of the product are you using? On what operating system?

Running Version 4.6.1 (4H512)

Please provide any additional information below.

2013-07-22 16:45:04.511 GoogleDriveTest[4625:907] *** Assertion failure in 
-[GTMHTTPUploadFetcher connectionDidFinishLoading:], 
/Users/excel2011/Desktop/GoogleDriveTest/google-api-objectivec-client-read-only/
Source/HTTPFetcher/GTMHTTPUploadFetcher.m:399
2013-07-22 16:45:04.514 GoogleDriveTest[4625:907] *** Terminating app due to 
uncaught exception 'NSInternalInconsistencyException', reason: 'unexpected 
response data (uploading to the wrong URL?)'
*** First throw call stack:
(0x33e872a3 0x3bd2b97f 0x33e8715d 0x3475cab7 0x107833 0x347c26fd 0x347021f9 
0x34702115 0x33b6445f 0x33b63b43 0x33b8bfcb 0x33dcd74d 0x33b8c42b 0x33af003d 
0x33e5c683 0x33e5bee9 0x33e5acb7 0x33dcdebd 0x33dcdd49 0x379822eb 0x35ce3301 
0xe4c71 0x3c162b20)
libc++abi.dylib: terminate called throwing an exception
(lldb) 

Original issue reported on code.google.com by Lucy.I.M...@gmail.com on 22 Jul 2013 at 8:56

GoogleCodeExporter commented 9 years ago
Just ran through the quickstart with the latest objective-c client & and a 
clean project, wasn't able to reproduce. Using the iPhone 6.1 simulator.

Could you enable logging and post more details?

https://code.google.com/p/google-api-objectivec-client/wiki/Introduction#Logging
_HTTP_Server_Traffic

Original comment by sba...@google.com on 23 Jul 2013 at 9:32

GoogleCodeExporter commented 9 years ago
Looks like I'm getting 403 Error - Access not configured ??

Original comment by Lucy.I.M...@gmail.com on 24 Jul 2013 at 2:50

Attachments:

GoogleCodeExporter commented 9 years ago
Looks like you may have missed a step. Check to make sure you enabled the Drive 
API in the Google API Console (under 'services')

Original comment by sba...@google.com on 24 Jul 2013 at 6:08

GoogleCodeExporter commented 9 years ago
Drive SDK is listed as "on."

Original comment by Lucy.I.M...@gmail.com on 24 Jul 2013 at 6:53

GoogleCodeExporter commented 9 years ago
"Drive API", not "Drive SDK". There are two different services, the API is for 
the REST API, the SDK is for UI integrations.

Original comment by sba...@google.com on 24 Jul 2013 at 8:05

GoogleCodeExporter commented 9 years ago
I think it's working now... wow, I feel dumb. Thanks for your time & help!!

Original comment by Lucy.I.M...@gmail.com on 26 Jul 2013 at 8:10

GoogleCodeExporter commented 9 years ago

Original comment by grobb...@google.com on 26 Jul 2013 at 8:59