收到400错误的请求原因:需要来自Google Cloud stoarge json API

德克曼

我正在尝试将文件(在此示例中为png)上传到Google云存储,但是我的请求失败,并显示以下400错误请求响应。

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "required",
    "message": "Required"
   }
  ],
  "code": 400,
  "message": "Required"
 }
}

我的POST请求看起来像这样。

POST https://www.googleapis.com/upload/storage/v1/b/unit_tests/o?uploadType=media HTTP/1.1
Accept: application/json, text/json, text/x-json, text/javascript
Authorization: OAuth XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Content-Type: image/png
Host: www.googleapis.com
Transfer-Encoding: chunked
Expect: 100-continue
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

96DA5
�PNG

���
IHDR����������e�����sRGB�������gAMA����
�a���   pHYs�������o�d����IDATx^�|W��?o��������������,Y`I

*** FIDDLER: RawDisplay truncated at 128 characters. Right-click to disable truncation. ***

文档我已经提供了必要的paramters等,所以我不能看到什么是必需的,我不提供。

杰特雷斯

您忘记name在URL中提供参数。有关更多详细信息,请参见简单上传文档。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Google Cloud Storage JSON上载器API显示错误

来自分类Dev

通过API网址将Json文件获取到Google Cloud

来自分类Dev

在本地主机上使用Google Cloud Storage JSON API

来自分类Dev

Google Cloud Storage JSON API:批量删除返回未知错误(500内部服务器错误)

来自分类Dev

Zeit 现在:api 需要来自静态构建步骤的 json 文件

来自分类Dev

使用JSON API将文件上传到Google Cloud Storage,错误401未经授权

来自分类Dev

Wowza Cloud API:curl 请求

来自分类Dev

通过Google Cloud Storage JSON API插入对象时公开共享

来自分类Dev

Google Cloud Storage JSON REST API-获取保存在子目录中的对象

来自分类Dev

使用带有Java的JSON API在Google Cloud Storage中插入对象(作为文件夹)

来自分类Dev

Google Cloud DNS错误请求原因无效

来自分类Dev

Google Cloud DNS错误请求原因无效

来自分类Dev

来自Google Cloud Logging API的“ 400:指定了不受支持的服务,INVALID_ARGUMENT”

来自分类Dev

json api获取请求错误

来自分类Dev

Google Calendar API忙JQuery $ .post收到400(错误请求)错误

来自分类Dev

从R呼叫时,来自Google Directions API的格式错误的JSON

来自分类Dev

我正在尝试创建一个简单的 api 来接收任何格式的 json 数据,但收到 400 个错误的请求..请查看我的代码并更正

来自分类Dev

计算来自Api的JSON请求

来自分类Dev

通过 node.js 错误的 Google Cloud Search 查询:收到无效的 JSON 负载

来自分类Dev

您如何使用客户端JS根据现有文本从Google的Cloud Natural Language API中获取JSON?

来自分类Dev

如何请求JSON API

来自分类Dev

创建 JSON API 请求

来自分类Dev

乘车提醒Uber Api收到JSON错误

来自分类Dev

来自 Kubernetes 部署的 Google Cloud Bucket 连接使用 Storage API

来自分类Dev

JIRA Cloud REST API (OAuth 2.0) POST 请求错误 403

来自分类Dev

Google Cloud Vision API上的INVALID_ARGUMENT请求失败

来自分类Dev

Google Cloud Print API:需要用户凭证

来自分类Dev

PHP AppEngine上的Google Cloud Vision API

来自分类Dev

Python代码中的Google Cloud Datastore API

Related 相关文章

  1. 1

    Google Cloud Storage JSON上载器API显示错误

  2. 2

    通过API网址将Json文件获取到Google Cloud

  3. 3

    在本地主机上使用Google Cloud Storage JSON API

  4. 4

    Google Cloud Storage JSON API:批量删除返回未知错误(500内部服务器错误)

  5. 5

    Zeit 现在:api 需要来自静态构建步骤的 json 文件

  6. 6

    使用JSON API将文件上传到Google Cloud Storage,错误401未经授权

  7. 7

    Wowza Cloud API:curl 请求

  8. 8

    通过Google Cloud Storage JSON API插入对象时公开共享

  9. 9

    Google Cloud Storage JSON REST API-获取保存在子目录中的对象

  10. 10

    使用带有Java的JSON API在Google Cloud Storage中插入对象(作为文件夹)

  11. 11

    Google Cloud DNS错误请求原因无效

  12. 12

    Google Cloud DNS错误请求原因无效

  13. 13

    来自Google Cloud Logging API的“ 400:指定了不受支持的服务,INVALID_ARGUMENT”

  14. 14

    json api获取请求错误

  15. 15

    Google Calendar API忙JQuery $ .post收到400(错误请求)错误

  16. 16

    从R呼叫时,来自Google Directions API的格式错误的JSON

  17. 17

    我正在尝试创建一个简单的 api 来接收任何格式的 json 数据,但收到 400 个错误的请求..请查看我的代码并更正

  18. 18

    计算来自Api的JSON请求

  19. 19

    通过 node.js 错误的 Google Cloud Search 查询:收到无效的 JSON 负载

  20. 20

    您如何使用客户端JS根据现有文本从Google的Cloud Natural Language API中获取JSON?

  21. 21

    如何请求JSON API

  22. 22

    创建 JSON API 请求

  23. 23

    乘车提醒Uber Api收到JSON错误

  24. 24

    来自 Kubernetes 部署的 Google Cloud Bucket 连接使用 Storage API

  25. 25

    JIRA Cloud REST API (OAuth 2.0) POST 请求错误 403

  26. 26

    Google Cloud Vision API上的INVALID_ARGUMENT请求失败

  27. 27

    Google Cloud Print API:需要用户凭证

  28. 28

    PHP AppEngine上的Google Cloud Vision API

  29. 29

    Python代码中的Google Cloud Datastore API

热门标签

归档