收藏
回答

调用获取微信头像接口报错 http 400

调取微信头像时候 报错,内容如下

[2020-01-16 13:44:33] mugeda_card_server.ERROR: Uncaught Exception
ErrorException:
"file_get_contents(https://thirdwx.qlogo.cn/mmopen/vi_32/ZqWnrugwAcyxB6rZtmXdJLeBNpwmicia1SX0f7gtOJdAElJ5TpQGCbkfyvYkO26h9O7NWCpXMNiax4HG1jXyQWSbw/132):
failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request "
at /home/mugeda/mugeda-card-server/server/api_imgtobase64.php line 24,
request:
"/server/api_imgtobase64.php/transfer?img=https%3A%2F%2Fthirdwx.qlogo.cn%2Fmmopen%2Fvi_32%2FZqWnrugwAcyxB6rZtmXdJLeBNpwmicia1SX0f7gtOJdAElJ5TpQGCbkfyvYkO26h9O7NWCpXMNiax4HG1jXyQWSbw%2F132"
{"exception":"[object] (ErrorException(code: 2):
file_get_contents(https://thirdwx.qlogo.cn/mmopen/vi_32/ZqWnrugwAcyxB6rZtmXdJLeBNpwmicia1SX0f7gtOJdAElJ5TpQGCbkfyvYkO26h9O7NWCpXMNiax4HG1jXyQWSbw/132):
failed to open stream: HTTP request failed! HTTP/1.1 400 Bad
Request\r\n at
/home/mugeda/mugeda-card-server/server/api_imgtobase64.php:24)"} []


回答关注问题邀请回答
收藏

1 个回答

  • 讯
    2020-06-25

    我也遇到了找不到解决办法


    2020-06-25
    有用
    回复
登录 后发表内容
问题标签