Shopify API 访问已被禁用
Shopify API Access has been disabled
我尝试使用 koa 创建一个 Shopify 应用程序。我使用 koa-shopify-auth 官方包和两种方法 shopifyAuth
和 verifyRequest
从商店获得具有正确范围的令牌。
在获得具有正确范围的新鲜且经过验证的令牌后,我在 https://xxx.myshopify.com/admin/api/2019-04/shop.json
上发出请求,这是一个使用应用程序获取有关商店信息的简单端点。
有时我从 API 得到正确答案,但有时我得到错误:
{
"errors": "[API] API Access has been disabled"
}
令牌很好,因为有些商店运作良好,令牌对这家商店无效,因为这不是同一个错误(Invalid API key etc.
)
你知道这个错误消息吗?我为什么会收到它?
我没有找到解决这个问题的办法,但我找到了一个替代方案来移动,必须卸载并重新安装应用程序,对客户来说真的很痛苦,但它似乎有效。
此问题可能与 API 访问模式 (online/offline) 有关,Shopify 安全性可能对此感到困惑。
An API request made using an online mode access token is guaranteed to
respect the user's individual permissions. Shopify returns a 403
Forbidden status code when the access token is valid but the user does
not have access. Application developers should make sure to handle
such a response gracefully.
我尝试使用 koa 创建一个 Shopify 应用程序。我使用 koa-shopify-auth 官方包和两种方法 shopifyAuth
和 verifyRequest
从商店获得具有正确范围的令牌。
在获得具有正确范围的新鲜且经过验证的令牌后,我在 https://xxx.myshopify.com/admin/api/2019-04/shop.json
上发出请求,这是一个使用应用程序获取有关商店信息的简单端点。
有时我从 API 得到正确答案,但有时我得到错误:
{
"errors": "[API] API Access has been disabled"
}
令牌很好,因为有些商店运作良好,令牌对这家商店无效,因为这不是同一个错误(Invalid API key etc.
)
你知道这个错误消息吗?我为什么会收到它?
我没有找到解决这个问题的办法,但我找到了一个替代方案来移动,必须卸载并重新安装应用程序,对客户来说真的很痛苦,但它似乎有效。
此问题可能与 API 访问模式 (online/offline) 有关,Shopify 安全性可能对此感到困惑。
An API request made using an online mode access token is guaranteed to respect the user's individual permissions. Shopify returns a 403 Forbidden status code when the access token is valid but the user does not have access. Application developers should make sure to handle such a response gracefully.