找回密码
 立即注册

QQ登录

只需一步,快速开始

moer 活字格认证
金牌服务用户   /  发表于:2024-4-11 23:21  /   查看:500  /  回复:2
10金币




ServerCommand/sync_policy_public:1
        
        
        Failed to load resource: the server responded with a status of 504 ()
MetadataLoader.js?v=638388379279890865:646  /lfhinsmotor_api/ServerCommand/sync_policy_public
error
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

MetadataLoader.loggedError @ MetadataLoader.js?v=638388379279890865:646

        [NEW] Explain Console errors by using Copilot in Edge: click
         to explain an error.
        Learn more
        Don't show again


最佳答案

查看完整内容

您好,看错误是网关超时了,活字格云网关的超时时间是 300 秒。 不过您说的服务端命令执行超过 300 毫秒,300 毫秒是不会超时的。 如果确实是服务端命令执行比较耗时,超过了 300 秒,建议去异步调用服务端命令,然后通过服务端通知来告知操作是否完成。 一看就会,超有用活字格技能:一百六十三、如何为异步调用的服务端命令增加回调(... https://gcdn.grapecity.com.cn/showtopic-157053-1-1.html (出处: 葡萄城开发者 ...

2 个回复

倒序浏览
最佳答案
最佳答案
Simon.Sun活字格认证 Wyn认证
超级版主   /  发表于:2024-4-11 23:21:37
来自 3#
本帖最后由 Simon.Sun 于 2024-4-12 15:02 编辑

您好,看错误是网关超时了,活字格云网关的超时时间是 300 秒。
不过您说的服务端命令执行超过 300 毫秒,300 毫秒是不会超时的。

如果确实是服务端命令执行比较耗时,超过了 300 秒,建议去异步调用服务端命令,然后通过服务端通知来告知操作是否完成。

一看就会,超有用活字格技能:一百六十三、如何为异步调用的服务端命令增加回调(...
https://gcdn.grapecity.com.cn/showtopic-157053-1-1.html
(出处: 葡萄城开发者社区)


回复 使用道具 举报
moer活字格认证
金牌服务用户   /  发表于:2024-4-12 00:10:30
2#


调用服务端命令,服务端处理比较长的时间, 会超过300毫秒,  然后就有有这样的错误。
在本地机器上测试没有这样的问题。 发布到云服务器就碰到这样的问题。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部