jaisurya / google-api-php-client

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

Error uploading file with service account #441

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to upload a file combining the example to use a service account and 
the example to make a simple file upload.

I'm getting this warning:

Warning: file_get_contents(/upload/drive/v2/files?uploadType=media): failed to 
open stream: No such file or directory in 
/home/Datos/git/google-api-php-client/src/Google/IO/Stream.php on line 109

Followed by this fatal error:
Fatal error: Uncaught exception 'Google_IO_Exception' with message 'HTTP Error: 
Unable to connect' in 
/home/Datos/git/google-api-php-client/src/Google/IO/Stream.php on line 112

As far as I can understand it seems to me that the request itself is not being 
made to https://www.googleapis.com/ but to my local machine which of course 
isn't working.

How or should I set the URL somewhere? I'm using last commit from master: 
86fb12d484da7fecbe04cecf767ac83008f24234

Thanks

Original issue reported on code.google.com by igor...@gmail.com on 5 Jan 2014 at 10:54

GoogleCodeExporter commented 9 years ago
This issue tracker is now closing. Development on the Google PHP client library 
moved to GitHub with the release of the 1.0.0-alpha, and now the 1.0 branch has 
reached beta status there will be no further releases of the 0.6 branch of the 
library. 

Please take a look at the latest version on 
https://github.com/google/google-api-php-client

For information on migrating, please take a look at this guide: 
https://developers.google.com/api-client-library/php/guide/migration

For general library support please ask a question on StackOverflow: 
http://stackoverflow.com/questions/tagged/google-api-php-client

If you are looking for support with a specific API, please contact the team 
working with that API via StackOverflow or their preferred support mechanism. 

If your issue still exists with the new version of the library, please raise a 
bug in the GitHub issue tracker with a minimal code sample. 

Thanks!

Original comment by ianbar...@google.com on 22 Jan 2014 at 4:56

GoogleCodeExporter commented 9 years ago

Original comment by ianbar...@google.com on 22 Jan 2014 at 4:56