google / gdata-python-client

443 stars 227 forks source link

Error 404 accessing Drive API #23

Open Ingineerix opened 9 years ago

Ingineerix commented 9 years ago

Appears Google's API services are down. Not sure where to report this. Began shortly after 11am PST.

gdata.service.RequestError: {'status': 404, 'body': '<!DOCTYPE html><html lang="en" ><head><meta name="description" content="Web word processing, presentations and spreadsheets"><link rel="shortcut icon" href="//ssl.gstatic.com/docs/common/drive_favicon1.ico"><title>Google Drive -- Page Not Found</title><link href="//fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" type="text/css"><style>/* Copyright 2015 Google Inc. All Rights Reserved. */\n.goog-inline-block{position:relative;display:-moz-inline-box;display:inline-block}* html .goog-inline-block{display:inline}*:first-child+html .goog-inline-block{display:inline}#drive-logo{color:#91959c;font-family:"Open Sans",Arial,sans-serif;font-size:27px;font-weight:300;position:absolute;text-shadow:0 1px 1px white;white-space:nowrap}#drive-logo img{padding:0 0.4em 0 0;position:relative;top:2px;vertical-align:middle}#drive-logo a{color:#91959c;text-decoration:none}#drive-logo span.goog-inline-block{margin-top:2px;vertical-align:top}</style><style type="text/css">body {background-color: #fff; font-family: Arial,sans-serif; font-size: 13px; margin: 0; padding: 0;}a, a:link, a:visited {color: #112ABB;}</style><style type="text/css">.errorMessage {font-size: 12pt; font-weight: bold; line-height: 150%;}</style></head><body><div style="margin: auto; max-width: 750px;"><div style="margin: 80px 40px 20px 40px; position:relative; "><div style="position: absolute; top: -80px;"><h1 id="drive-logo"><a href="/"><img src="//www.google.com/images/logos/google_logo_41.png" width="116" height="41" alt="Google logo" ><span class="goog-inline-block">Drive</span></a></h1></div><div align="center"><p class="errorMessage" style="padding-top: 50px">Sorry, the file you have requested does not exist.</p><p> Please check the address and try again. </p><div style="background: #F0F6FF; border: 1px solid black; margin-top: 35px; padding: 10px 125px; width: 300px;"><p><strong>Get stuff done with Google Drive</strong></p><p>Apps in Google Drive make it easy to create, store and share online documents, spreadsheets, presentations and more.</p><p>Learn more at <a href="https://drive.google.com/start/apps">drive.google.com/start/apps</a>.</p></div></div></div></div></body></html>', 'reason': 'Not Found'}

andreebrazeau commented 9 years ago

Google does not support the user/password anymore. OAuth2 is the new way to authenticate. I have the same issue. I have been reading about it but still have not found a way to implement it. https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3850&colspec=Stars%20Opened%20ID%20Type%20Status%20Summary%20API%20Owner

please let me know when you find a solution.

serge-a commented 9 years ago

maybe you can look at this project, the guy use Ouath2 login https://github.com/burnash/gspread

StuckInLoop commented 9 years ago

I am using a c# repository derived from this, and it seems like we're dealing with similar issue.

andreebrazeau commented 9 years ago

thanks @serge-a it works!

drew1horn commented 9 years ago

N00B here.

Installing for the first time

./tests/run_data_tests.py fails with

...

FAIL: testRecordResponse (atom_tests.mock_http_test.MockHttpClientUnitTest)

Traceback (most recent call last): File "/big/github/google/gdata-python-client/tests/atom_tests/mock_http_test.py", line 49, in testRecordResponse self.assertEquals(live_response.status, 200) AssertionError: 404 != 200


Same issue?