Closed GoogleCodeExporter closed 9 years ago
Same problem but with normal .xls files. Some of them work some not. (system:
windows 2003 server R2)
Original comment by ch...@c-64.mobi
on 9 May 2011 at 6:36
Can anybody attach to this issue at least one xls which cannot be uploaded?
Please without any confidential data :-)
Original comment by przeme...@gmail.com
on 9 May 2011 at 8:38
can I email it to you?
Original comment by ch...@c-64.mobi
on 9 May 2011 at 10:23
Of course, you may find my e-mail on http://www.przemelek.pl/kontakt
Original comment by przeme...@gmail.com
on 9 May 2011 at 10:24
Hi,
I am running into the same issue.
I have a script (python) that uploads files to Google Docs. After going
through these errors a few times, I have set it in a loop so that if it fails
to upload the file, then it retries ... 3 times.
The interesting thing is that I am uploading all files as binary files (no
conversion), and Google will give me an InvalidEntryException error "Could not
convert document." Why is is even trying to convert? I have the parameter set
convert=false parameter.
The log files show that if it fails in the first attempt, then the same file
may get uploaded in the second or third attempt (some of them fail even after 3
tries). Those that fail, if I upload them separately, then they get uploaded
just fine.
For example this is a portion of the log file (I have changed some dir/file
names):
2011-06-07 17:26:13,657 5832 / Thread4 - File_Uploads DEBUG Uploading
file d:\sh2\Marie\HR\Corporate EEs\somedir\somefilename.tif bytes:
0-110947/110948
2011-06-07 17:26:28,717 5832 / Thread4 - File_Uploads INFO Server
responded with: 400, <errors
xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>Inva
lidEntryException</code><internalReason>Could not convert
document.</internalReason></error></errors>
2011-06-07 17:26:28,719 5832 / Thread4 - File_Uploads ERROR Server
responded with: 400, <errors
xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>Inva
lidEntryException</code><internalReason>Could not convert
document.</internalReason></error></errors>
Traceback (most recent call last):
File "main.py", line 743, in vUploadDoc
entry1 = uploader.UploadChunk(start_byte, uploader.file_handle.read(uploader.chunk_size))
File "C:\Python27\lib\site-packages\gdata\client.py", line 993, in upload_chunk
raise error
RequestError: Server responded with: 400, <errors
xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>Inva
lidEntryException</code><internalReason>Could not convert
document.</internalReason></error></errors>
I see these kinds of errors in .doc files, .xls files, .tif files, .gif files,
.htm files, .js files ...
Why would it even try to convert a .tif or a .gif file? And yes, I am setting
the correct "DocType" image/gif or image/tif (or tiff) ...
Someone please fix this nightmare.
Ss
Original comment by sandips...@vthrive.com
on 8 Jun 2011 at 2:53
here's some more ...
I had the program running with 6 threads.
And I had set httplib in the debug mode (so that I can see everything on
stdout).
Any ways, where I get an "InvalidEntryException" in one thread and look at the
log, I have 6 consecutive errors .... most likely an error in all 6 threads at
the same time (when I look at the individual thread log files, I see errors in
4 out of 6 of them at around the same time (2011-06-08 00:53:33,805) ... all
the errors are around 00:53:33 - 00:53:35. Since things run so fast it is
difficult to correlate these without more debugging ... but I am pretty sure
that its the same errors.
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Server: Upload Server Built on Jun 6 2011 12:48:11 (1307389691)
header: Content-Type: application/vnd.google.gdata.error+xml
header: Date: Wed, 08 Jun 2011 07:53:24 GMT
header: Pragma: no-cache
header: Expires: Fri, 01 Jan 1990 00:00:00 GMT
header: Cache-Control: no-cache, no-store, must-revalidate
header: Content-Length: 189
reply: 'HTTP/1.1 503 Service Unavailable\r\n'
header: Content-Type: application/vnd.google.gdata.error+xml
header: Date: Wed, 08 Jun 2011 07:53:30 GMT
header: Expires: Wed, 08 Jun 2011 07:53:30 GMT
header: Cache-Control: private, max-age=0
header: X-Content-Type-Options: nosniff
header: X-Frame-Options: SAMEORIGIN
header: X-XSS-Protection: 1; mode=block
header: Server: GSE
header: Transfer-Encoding: chunked
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Server: Upload Server Built on Jun 6 2011 12:48:11 (1307389691)
header: Content-Type: application/vnd.google.gdata.error+xml
header: Date: Wed, 08 Jun 2011 07:53:31 GMT
header: Pragma: no-cache
header: Expires: Fri, 01 Jan 1990 00:00:00 GMT
header: Cache-Control: no-cache, no-store, must-revalidate
header: Content-Length: 189
reply: 'HTTP/1.1 503 Service Unavailable\r\n'
header: Content-Type: application/vnd.google.gdata.error+xml
header: Date: Wed, 08 Jun 2011 07:53:33 GMT
header: Expires: Wed, 08 Jun 2011 07:53:33 GMT
header: Cache-Control: private, max-age=0
header: X-Content-Type-Options: nosniff
header: X-Frame-Options: SAMEORIGIN
header: X-XSS-Protection: 1; mode=block
header: Server: GSE
header: Transfer-Encoding: chunked
reply: 'HTTP/1.1 503 Service Unavailable\r\n'
header: Content-Type: application/vnd.google.gdata.error+xml
header: Date: Wed, 08 Jun 2011 07:53:34 GMT
header: Expires: Wed, 08 Jun 2011 07:53:34 GMT
header: Cache-Control: private, max-age=0
header: X-Content-Type-Options: nosniff
header: X-Frame-Options: SAMEORIGIN
header: X-XSS-Protection: 1; mode=block
header: Server: GSE
header: Transfer-Encoding: chunked
reply: 'HTTP/1.1 503 Service Unavailable\r\n'
header: Content-Type: application/vnd.google.gdata.error+xml
header: Date: Wed, 08 Jun 2011 07:53:34 GMT
header: Expires: Wed, 08 Jun 2011 07:53:34 GMT
header: Cache-Control: private, max-age=0
header: X-Content-Type-Options: nosniff
header: X-Frame-Options: SAMEORIGIN
header: X-XSS-Protection: 1; mode=block
header: Server: GSE
header: Transfer-Encoding: chunked
If I am to guess, then all 6 threads are connected to the same instance of an
"upload server" (one of the header lines that comes back is
"header: Server: Upload Server Built on Jun 6 2011 12:48:11 (1307389691)"
). If that instance goes down, or has an error, then all threads connected to
that get an error, and they have to restart.
Interestingly enough, the thread that got the error "InvalidEntryException",
when it sent the request to create that file (i.e. the 'Entry' was sent), the
server responded with 'HTTP OK', and the logs show that the data to upload was
also sent. When the instance goes down, I get a "HTTP/1.1 400 Bad Request"
'after' the data was sent ... implying that there was nothing wrong with the
'Entry' per se.
Ss
Original comment by sandips...@vthrive.com
on 8 Jun 2011 at 5:44
OK, but what those 2 last comments have common with OOo2GD?
Problems with OOo2GD was caused by this that Google Docs wasn't able to convert
documents into its internal format. If XLS was sent as ODS it worked in most
cases.
Original comment by przeme...@gmail.com
on 8 Jun 2011 at 6:20
OK - my apologies for posting that in the OOo2GD forum.
Ss
Original comment by sandips...@vthrive.com
on 21 Jun 2011 at 12:26
Original issue reported on code.google.com by
han...@elegant-solutions.com
on 22 Apr 2011 at 7:38