首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Playframework:客户端从Ok.sendFile获得504HTTP错误

Playframework:客户端从Ok.sendFile获得504HTTP错误
EN

Stack Overflow用户
提问于 2017-09-21 16:22:24
回答 1查看 130关注 0票数 0

为了返回我的一个帖子端点

代码语言:javascript
运行
复制
    Ok.sendFile(
      content = csvFile,
      fileName = (_ => csvFile.fileName),
      onClose = csvFile.cleanup
    )

向客户端发送csv文件。我遇到的问题是,当csv文件太大(某些客户端很少发生)时,他们会收到504Gateway超时错误。

代码语言:javascript
运行
复制
The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature.

它在成功传输文件时不显示。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-09-21 20:27:13

正如在gitter上讨论的那样:增加ELB的超时值(默认为60秒)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46348807

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档