在Google Talent Solutions API上遇到400错误的请求错误-Symfony 4

时间:2018-09-10 14:04:22

标签: php google-api-php-client symfony4 php-7.2 google-php-sdk

在实施Google Talent Solutions API时,出现此错误,

plt.plot(Frequency[0],Magnitude[0])

我按照以下步骤实施:

  • google-api-php-client客户端库
  • Symfony代码:

    {
    "error": {
    "code": 400,
    "message": "Creation request should not have name set.. Request ID for tracking: 07547685-f322-4e9a-b650-0505e3801a8a:APAb7ISK9V8RN0bV6KYUm3BBwoEpL9WDIg==",
    "errors": [
    {
    "message": "Creation request should not have name set.. Request ID for tracking: 07547685-f322-4e9a-b650-0505e3801a8a:APAb7ISK9V8RN0bV6KYUm3BBwoEpL9WDIg==",
    "domain": "global",
    "reason": "badRequest"
    }
    ],
    "status": "INVALID_ARGUMENT"
    }
    }
    

请问您在我想念的地方提供帮助还是指导我解决此问题。

1 个答案:

答案 0 :(得分:1)

400表示您发送了错误的请求-达芙数据!

幸运的是,他们告诉您您做错了什么-Creation request should not have name set..

因此,请不要设置名称,希望下一个请求不会是HTTP 400!

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400