gpt4 book ai didi

php - 使用 https ://{shop}. myshopify.com/admin/oauth/access_token 时,Shopify 出现错误 400 [Bad Request]

转载 作者:可可西里 更新时间:2023-11-01 12:39:48 25 4
gpt4 key购买 nike

我正在开发一个 Shopify 应用程序。直到昨天晚上它都运行良好,但在用户允许访问他商店的应用程序后,我开始收到 Bad Request [400] 错误。

错误如下

(https://SHOP-NAME.myshopify.com/admin/oauth/access_token) in /path/to/shopify/authentication/oauth.php on line 28
Array (
[method] => POST
[uri] => https://SHOP-NAME.myshopify.com/admin/oauth/access_token
[query] => Array ( )
[headers] => Array ( )
[payload] => Array (
[client_id] => {CLIENTID}
[client_secret] => {CLIENT_SECRET}
[code] => {CODE}
)
)

我正在使用 Content-Type:application/x-www-form-urlencode 执行 POST cURL 请求,所有请求都经过验证来自 shopify。

如果有人需要更多信息,我可以提供。

谢谢。

最佳答案

如果在用户授权应用程序后发生这种情况,则可能是他们收到的永久 token 有问题。您可以尝试获取生成的 token 并手动执行 POSTMAN 请求以查询 API 以验证 token 是否有效。

如果它之前有效并且您没有对应用程序进行任何更改,则它可能是一个临时的 API 问题,尽管我发现我的应用程序很少出现这种情况。

关于php - 使用 https ://{shop}. myshopify.com/admin/oauth/access_token 时,Shopify 出现错误 400 [Bad Request],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32538137/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com