Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Export doesn't return an expected value #85

Open
lflores opened this issue Nov 24, 2016 · 1 comment
Open

Export doesn't return an expected value #85

lflores opened this issue Nov 24, 2016 · 1 comment

Comments

@lflores
Copy link

lflores commented Nov 24, 2016

Hi, thanks alot for this tool, but I don't receive expected result when I try to export a Google Document to text plain. I only receive a false, as result.
But if I try with same id in export test tool, I received expected text.
Could you help me to solve it?

GApi.execute('drive', 'files.export', { fileId: <Google Document Id>, mimeType: 'text/plain' }).then(function (result) { console.log(result); //false value }, function (err) { console.log('Error during export', err); });

@lflores
Copy link
Author

lflores commented Nov 24, 2016

I have investigated the "error", and I have discovered that the answer from service, it's encoded as gzip.
I think that's the problem and I don't know how to solve it, using this api.
I both cases of tests, the answer it's same in encoding, and same encoded string.
I'm using Google API v3 and I'm loading with:
GApi.load('drive', 'v3');

@lflores lflores changed the title Export doesn't return a expected value Export doesn't return an expected value Nov 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant