duanjing7459 2018-05-29 19:23
浏览 1437
已采纳

GuzzleHTTP响应400状态

I have been using GuzzleHttp and here is my code snippet and this appears to manage Session in GuzzleHTTP somehow.

    $this->httpMethod=='GET';
    if(!empty($this->httpMethod) && $this->httpMethod=='POST'){
        $response = $this->client->post($finalUrl);
    }else{
        $response = $this->client->request($this->httpMethod, $finalUrl);
    }

Unfortunately, I am getting this Fatal Error-

Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `GET https://creator.zoho.com/api/json/test/view/All_SMS?zc_ownername=zc_owner&raw=1&authtoken=auth_token&scope=crmapi` resulted in a `400 Bad Request` response:
{"code":2945,"message":"DATATYPE_NOT_MATCHED"}
  • 写回答

1条回答 默认 最新

  • dongzantai7570 2018-05-29 19:50
    关注

    Review the Zoho API error codes.

    Code 2945 is an invalid ticket.

    Without studying the API documentation in depth, I suspect it is an authentication problem.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 怎么把多于硬盘空间放到根目录下
  • ¥15 Matlab问题解答有两个问题
  • ¥50 Oracle Kubernetes服务器集群主节点无法访问,工作节点可以访问
  • ¥15 LCD12864中文显示
  • ¥15 在使用CH341SER.EXE时不小心把所有驱动文件删除了怎么解决
  • ¥15 gsoap生成onvif框架
  • ¥15 有关sql server business intellige安装,包括SSDT、SSMS。
  • ¥15 stm32的can接口不能收发数据
  • ¥15 目标检测算法移植到arm开发板
  • ¥15 利用JD51设计温度报警系统