commercetools:应要求范围不足

commercetools: Insufficient scope on request

当我尝试获取产品时收到错误消息 "Insufficient scope":

curl -vsH "Authorization: Bearer MY_ACCESS_TOKEN" https://api.sphere.io/MY_PROJECT/products

输出:

* Hostname was NOT found in DNS cache
*   Trying 162.13.76.39...
* Connected to api.sphere.io (162.13.76.39) port 443 (#0)
> GET /MY_PROJECT/products HTTP/1.1
> User-Agent: curl/7.37.1
> Host: api.sphere.io
> Accept: */*
> Authorization: Bearer MY_ACCESS_TOKEN
>
< HTTP/1.1 403 Forbidden
<
Insufficient scope

[问题源自内部支持请求。]

当令牌对于 commercetools 项目无效时会出现此错误消息,例如它对于另一个项目。

从这个问题中恢复 create a new token for the project