EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Error uploadign large files to Google Drive

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#31260
Posted: 11/03/2014 10:43:04
by ntr1 (Standard support level)
Joined: 02/05/2014
Posts: 73

I'm searching for some possible solutions, perhaps I can help you solving the issue more quickly.

I've found this (bad) news: http://stackoverflow.com/questions/23789284/resumable-upload-error-401

They say the token always expires after one hour.

But it seems there is a workaround using the "old" (?) API. I don't know if in the meanwhile Google Team has solved it...
#31366
Posted: 11/06/2014 08:59:07
by ntr1 (Standard support level)
Joined: 02/05/2014
Posts: 73

Any news about the resolution of this problem ?
#31367
Posted: 11/06/2014 09:10:14
by Alexander Ionov (EldoS Corp.)

Still in progress.


--
Best regards,
Alexander Ionov
#31421
Posted: 11/18/2014 03:14:34
by ntr1 (Standard support level)
Joined: 02/05/2014
Posts: 73

Hi,

any news? Is there an extimated time for the issue fix?
Can you give me good news about the resolution?

I'm sorry for my impatience, but I've many customers complaining because they cannot send files that require more than 1 hour to be uploaded.

Thank you

Regards
#31422
Posted: 11/18/2014 03:26:15
by Alexander Ionov (EldoS Corp.)

We hope to have resumable uploads implemented today later. But we are not sure if this will help to solve 1 hour limitation.


--
Best regards,
Alexander Ionov
#31424
Posted: 11/18/2014 05:04:39
by ntr1 (Standard support level)
Joined: 02/05/2014
Posts: 73

I made some searches for possible solutions and it seems everybody says that you need to generate a new access token (that expires in 1 hour) using the "refresh token" that is provided with the access token request. Using the "refresh token" the program should be able to get a new access token, and must do that before the expiration of the previous one.

I've found some examples:

http://www.daimto.com/google-api-and-oath2/
http://stackoverflow.com/questions/15905104/automatically-refresh-token-using-google-drive-api-with-php-script

And also this forum thread that seems to talk about that issue, with a final possible solution:

https://code.google.com/p/google-api-python-client/issues/detail?id=231

However, I've no idea on how to do that while the big file is transferring ... but I'm sure you can.
#31425
Posted: 11/18/2014 05:20:22
by Alexander Ionov (EldoS Corp.)

Thank you for the additional info.


--
Best regards,
Alexander Ionov
#31454
Posted: 11/19/2014 09:10:05
by Alexander Ionov (EldoS Corp.)

We completed implementation of resumable uploads and chunked uploads and now we are testing the component for resuming after access token expiration.

Unfortunately it takes a long time to pass one round of debugging. But we hope to have this done shortly and include this changes to the next build we expect this weekend.


--
Best regards,
Alexander Ionov
#31498
Posted: 11/24/2014 03:57:08
by Alexander Ionov (EldoS Corp.)

Unfortunately there are no good news about 1-hour limit. Even if we renew the access token before the previous one expires, a resuming upload fails right after the access token valid on the upload start expires. By now we don't have any workaround for this issue.
We'll try to do some additional experiments with mixing Drive API and deprecated Docs API.

So we implemented resumable chunked uploads. This is going to be available in new build we expect today or tomorrow.


--
Best regards,
Alexander Ionov
#31500
Posted: 11/24/2014 04:29:30
by ntr1 (Standard support level)
Joined: 02/05/2014
Posts: 73

Hello Alexander,

thank you for all your efforts.

I know it's not your responsibility, and actually it seems a very tough nut...

Google isn't helping in solving that. Take a look to this open issue: https://code.google.com/p/gdata-issues/issues/detail?id=5124

Anyway, I hope you will finally find a workaround if there's one.

Regards
Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.

Reply

Statistics

Topic viewed 3919 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!