Google的File Insert v2 API无法识别MIME TYPE application / vnd.google-apps.document [英] Google's File Insert v2 API fails to recognise MIME TYPE application/vnd.google-apps.document

查看:145
本文介绍了Google的File Insert v2 API无法识别MIME TYPE application / vnd.google-apps.document的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天早上,我尝试使用Google API File Insert,其中我提供了MIME TYPE作为application / vnd.google-apps.document。



我从Google API获得以下响应

  HttpError: < HttpError 400请求时https://www.googleapis.com/upload/drive/v2/files?uploadType=resu&&alt=json返回提供的MIME类型无效> 

我替换了MIME TYPE application / vnd.google-apps.document application / msword 并且API开始工作。 Google API有什么变化吗?

解决方案

谷歌报告称有一次停运 $ b https://www.google.com/appsstatus#hl=zh-CN&v=issue&sid=4&iid=11e934443f5863c5b46aa779c36ff4d3


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?

解决方案

Google reported there was an outage

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

这篇关于Google的File Insert v2 API无法识别MIME TYPE application / vnd.google-apps.document的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆