Google's File Insert v2 API fails to recognise MIME TYPE application/vnd.google-apps.document

青春壹個敷衍的年華 提交于 2019-12-07 14:24:28

问题


This morning, I tried using Google APIs File Insert where I provided MIME TYPE as application/vnd.google-apps.document.

I am getting the following response from Google API

HttpError: <HttpError 400 when requesting https://www.googleapis.com/upload/drive/v2/files?uploadType=resumable&alt=json returned "Invalid mime type provided">

I replaced MIME TYPE application/vnd.google-apps.document with application/msword and the API started working. Has anything changed with Google API?


回答1:


Google reported there was an outage

https://www.google.com/appsstatus#hl=en&v=issue&sid=4&iid=11e934443f5863c5b46aa779c36ff4d3


来源:https://stackoverflow.com/questions/43988753/googles-file-insert-v2-api-fails-to-recognise-mime-type-application-vnd-google

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!