Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http response 503 #120

Open
indian4646 opened this issue Aug 17, 2012 · 4 comments
Open

Http response 503 #120

indian4646 opened this issue Aug 17, 2012 · 4 comments

Comments

@indian4646
Copy link

Hi all
According to Google describe, if receive 503 "The client has made too many requests recently, or the requested API endpoint is temporarily unavailable. The API provides a minimum time in seconds within a Retry-After header that the client should wait before retrying the request."
How could we get Retry-After in error header.

sync ./boost_1_49_0/boost_1_49_0/libs/math/src/tr1/expm1l.cpp doesn't exist in server, uploading
resquest failed due to temperory error: 503. retrying in 5 seconds
terminate called after throwing an instance of 'gr::xml::Error'
what(): std::exception

@splineGear
Copy link

Hello, I'm able to repeat an exception condition after getting a 503. The log is below:

resquest failed due to temperory error: 503. retrying in 5 seconds
exception: /build/buildd/grive-0.3.0/libgrive/src/http/CurlAgent.cc(169): Throw in function long int gr::http::CurlAgent::ExecCurl(const string&, gr::DataStream_, const gr::http::Header&)
Dynamic exception type: boost::exception_detail::clone_implgr::http::Error
[gr::expt::BacktraceTag_] = #0 0x466890 grive gr::Exception::Exception()
#1 0x456462 grive gr::http::CurlAgent::ExecCurl(std::string const&, gr::DataStream_, gr::http::Header const&)
#2 0x4567ef grive gr::http::CurlAgent::Put(std::string const&, gr::File_, gr::DataStream_, gr::http::Header const&)
#3 0x461a8c grive gr::AuthAgent::Put(std::string const&, gr::File_, gr::DataStream_, gr::http::Header const&)
#4 0x4484be grive gr::v1::Resource::Upload(gr::http::Agent_, std::string const&, bool)
#5 0x448c41 grive gr::v1::Resource::Create(gr::http::Agent_)
#6 0x4493d8 grive gr::v1::Resource::SyncSelf(gr::http::Agent_, gr::Json const&)
#7 0x4497b4 grive gr::v1::Resource::Sync(gr::http::Agent_, gr::DateTime&, gr::Json const&)
#8 0x4498d8 grive gr::v1::Resource::Sync(gr::http::Agent_, gr::DateTime&, gr::Json const&)
#9 0x4498d8 grive gr::v1::Resource::Sync(gr::http::Agent_, gr::DateTime&, gr::Json const&)
#10 0x4498d8 grive gr::v1::Resource::Sync(gr::http::Agent_, gr::DateTime&, gr::Json const&)
#11 0x4498d8 grive gr::v1::Resource::Sync(gr::http::Agent_, gr::DateTime&, gr::Json const&)
#12 0x4498d8 grive gr::v1::Resource::Sync(gr::http::Agent_, gr::DateTime&, gr::Json const&)
#13 0x442d58 grive gr::v1::State::Sync(gr::http::Agent_, gr::Json const&)
#14 0x44e8d0 grive gr::v1::Drive::Update()
#15 0x431a9a grive Main(int, char_*)
#16 0x42f4eb grive main
#17 0x7f9aef6bbde5 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#18 0x43058f grive

@indian4646
Copy link
Author

Hi
This problems can't be solved using in (Implement exponential backoff from google https://developers.google.com/google-apps/documents-list/)

I already had tried re-upload this file to upload which will be successfully to upload.

@splineGear
Copy link

An interesting excerpt from your link to the Google Docs API:

"Important: There is a quota in place to use this service. If clients start receiving 403 errors, the rate limit has likely been hit. There is a significantly higher quota in place for Google Apps for Business users."

However note that this applies to Google Docs, not necessarily Google Drive.

@indian4646
Copy link
Author

Grive is according to Goolge Docs to implement, not all of from Google Drive api. You can refer code inside.

AquariusPower pushed a commit to AquariusPower/grive that referenced this issue Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants