首页 > 解决方案 > 使用域 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

每当我使用域时的输出是请求超时错误

标签: ibm-mobilefirstmobilefirst-adaptersmobilefirst-server

解决方案


请更新哪个 MobileFirst API 请求超时。

如果出现 REQUEST_TIMEOUT 错误

i.如果在 mfpclient.properties 文件中指定的 IP 地址/端口上无法访问服务器。

ii.当在 WLResourceRequest 中设置了超时并且适配器响应中存在超过超时值的延迟时。

iii.话虽如此,当设备发出的请求在规定的超时期限内没有得到MobileFirst服务器的响应时,就会发生请求超时错误。对于 OAuth 调用,此超时为 10 秒。

iv. 服务器需要更多时间来响应。检查您的后端逻辑。

v. DNS 解析未在 10 秒内发生的可能性。


推荐阅读