测试ChromeWebStore API时出现500错误

时间:2019-02-01 20:52:51

标签: google-chrome-extension google-api

测试User License API时出现500错误

清单

  "oauth2": {
    "client_id": "clientidobv",
    "scopes": [
      "https://www.googleapis.com/auth/chromewebstore.readonly"
    ]
  },
  "key": "*****keyobvhere",
  "permissions": [
    "identity",
    "https://www.googleapis.com/"

使用用户流获取令牌后,我运行:

var req = new XMLHttpRequest();
req.open('GET', 'https://www.googleapis.com/chromewebstore/v1.1/userlicenses/' + chrome.runtime.id);
req.setRequestHeader('Authorization', 'Bearer ' + token);
console.log(req.responseText)
req.send()

我得到Failed to load resource: the server responded with a status of 500 ()

  • Chrome运行时ID与API控制台中的ID相同
  • 该令牌已检查且有效
  • 我正在本地进行测试,但是正在使用具有有效生产许可证的用户

有什么想法吗?

0 个答案:

没有答案