Google's File Insert v2 API fails to recognise

2019-05-11 15:01发布

问题:

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