【问题标题】:Using Domain mfp 8 server return "request time out" using real mobile device?使用域 mfp 8 服务器使用真实移动设备返回“请求超时”?
【发布时间】:2020-02-01 10:57:56
【问题描述】:

Image of the console error

移动应用程序使用 mfp 服务器 IP 地址和端口 9080 成功连接,但使用域而不是 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

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

【问题讨论】:

  • 您的 HTTPS 服务器是否与配置有 CA 证书的域映射?它是公共 CA 证书还是自签名证书?

标签: ibm-mobilefirst mobilefirst-adapters mobilefirst-server


【解决方案1】:

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

如果出现REQUEST_TIMEOUT错误

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

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

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

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

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

【讨论】:

  • 我能知道我在哪里可以配置请求超时设置以及如何增加超时,因为上周,mobilefirst 服务器连接成功,使用域地址没有问题。但突然,我面临请求超时错误,然后我在服务器端和科尔多瓦客户端更新了最新的 ifix。我仍然面临超时错误。
  • 哪个 MobileFirst API 调用超时?
  • WLAuthorizationManager.obtainAccessToken() 在使用域地址时返回“连接移动优先服务器失败”并请求超时错误。
  • 如果我使用直接IP地址,我成功连接到mobilefirst服务器并且任何API都没有超时错误。
  • 您可能不得不解决为什么 DNS 解析需要更多时间
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-11-18
  • 2020-02-11
  • 2022-11-10
  • 1970-01-01
  • 2016-02-14
  • 1970-01-01
相关资源
最近更新 更多