ibm-mobilefirst - 使用域 mfp 8 服务器使用真实移动设备返回“请求超时”?
问题描述
移动应用程序使用带有端口 9080 的 mfp 服务器 IP 地址成功连接,但使用域而不是 IP,mfp8 服务器响应错误消息“请求超时”和响应文本“未定义”
Using IP Address: mfpclient properties file:
wlServerProtocol = http
wlServerHost = **.**.**.78
wlServerPort = 9080
wlServerContext = /mfp/
testWebResourcesChecksum = false
ignoredFileExtensions = png, jpg, jpeg, gif, mp4, mp3
wlPlatformVersion = 8.0.0.00-20190910-142437
wlSecureDirectUpdatePublicKey =
languagePreferences = en
wlBuildId = 8.0.0.00-20190910-142437
使用域:mfpclient 属性文件:
wlServerProtocol = https
wlServerHost = www.domainname.com
wlServerPort = 443
wlServerContext = /mfp/
testWebResourcesChecksum = false
ignoredFileExtensions = png, jpg, jpeg, gif, mp4, mp3
wlPlatformVersion = 8.0.0.00-20190910-142437
wlSecureDirectUpdatePublicKey =
languagePreferences = en
wlBuildId = 8.0.0.00-20190910-142437
每当我使用域时的输出是请求超时错误
解决方案
请更新哪个 MobileFirst API 请求超时。
如果出现 REQUEST_TIMEOUT 错误
i.如果在 mfpclient.properties 文件中指定的 IP 地址/端口上无法访问服务器。
ii.当在 WLResourceRequest 中设置了超时并且适配器响应中存在超过超时值的延迟时。
iii.话虽如此,当设备发出的请求在规定的超时期限内没有得到MobileFirst服务器的响应时,就会发生请求超时错误。对于 OAuth 调用,此超时为 10 秒。
iv. 服务器需要更多时间来响应。检查您的后端逻辑。
v. DNS 解析未在 10 秒内发生的可能性。
推荐阅读
- python - 一些 pygame 模块不工作
- python - Locust - 你可以即时更改任务权重吗?
- java - 如何在同一个自定义注释接口内访问自定义注释中的变量?
- python - 带有命令问题的下拉菜单
- windows - 字典问题:
- python - 将每个 id 的列的最大值和保存在属于 max 的另一列上的值保存到 DataFrame 中的新列中
- karate - 使用 driver.emulateDevice() 模拟设备的可用选项有哪些
- android - 如何在环氧树脂 recyclerview 中制作条排?
- mysql - 无服务器,连接到 AWS RDS
- c# - Newtonsoft Json如何在不创建内部类对象的情况下将属性从内部类写入父类