【发布时间】:2021-05-04 06:52:29
【问题描述】:
我将 Angular 与 IBM MobileFirst 8.0 结合使用。我遇到了 WLAuthorizationManager.obtainAccessToken() 的问题
我正在使用下面的代码。
WLAuthorizationManager.obtainAccessToken()
.then(
function (token) {
console.log(token);
},
function (res) {
console.log(res);
})
但是,我总是收到以下错误。
回应:
errorCode: "400"
errorMsg: "Bad Request"
responseHeaders: {cache-control: "[no-store, no-cache, must-revalidate]", connection: "[close]", content-language: "[en-US]", content-security-policy: "[default-src 'self';]", content-type: "[application/json]", …}
responseText: "\"Invalid request body - JSON mapping failed.\""
status: 400
statusText: "Bad Request
版本详情:
cordova-plugin-mfp:8.0.2021031007
ibm-mfp-web-sdk: 8.0.2021011205
项目已在 mfp 控制台中创建。
任何帮助将不胜感激。谢谢!
【问题讨论】:
-
服务器版本是多少?
标签: angular websphere ibm-mobilefirst