You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2020/01/27 11:40:26 UTC

[GitHub] [libcloud] Kami edited a comment on issue #1417: InvalidCredsError when uploading .xlsm file to Google Storage bucket

Kami edited a comment on issue #1417: InvalidCredsError when uploading .xlsm file to Google Storage bucket
URL: https://github.com/apache/libcloud/issues/1417#issuecomment-578709089
 
 
   Thanks for reporting this.
   
   I tried to reproduce it with the code you provided and it works fine for me using the latest trunk version.
   
   It could indeed be something with mime type on your system though. On mine, it determines mime to be ``application/vnd.ms-excel.sheet.macroEnabled.12`` and it works fine.
   
   What kind of mime type is returned on your environment? Checking the output of ``LIBCLOUD_DEBUG=/dev/stderr`` might also provide some clues.
   
   Having said that, it also works for me if I set ``Content-Type`` header to arbitrary value - the upload still succeeds.
   
   ---
   
   EDIT: If the issue is indeed related to content type you could try specifying a custom one using ``extra['content_type']`` value.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services