【发布时间】:2016-04-22 07:37:43
【问题描述】:
运行时出错akka-http-microservice Activator template
无法运行示例模板:来自 Activator 的 akka-http-microservice
项目构建,但在运行时,无法访问 URL,
http://localhost:9000/ip/8.8.8.8
得到
'内部服务器错误'
运行服务时出错:[ERROR] [04/21/2016 12:06:35.506] [default-akka.actor.default-dispatcher-10] [akka://default/user/StreamSupervisor-0/flow-2-0-unknown-operation] 阶段 [One2OneBidi] 中的错误:内部流在输入之前完成 完全的。输出可能已被截断。 (akka.http.impl.util.One2OneBidiFlow$OutputTruncationException$)
这只是直接从下载的模板*.zip 文件中获取的代码。
在Mac OSx, El Capitan. 上运行,运行 Scala v2.10.3。
激活器 v1.3.9
============ (更新)在教程支持团队尝试修复后仍然存在问题:
[调试] [04/22/2016 11:58:47.749] [default-akka.actor.default-dispatcher-2] [akka://default/system/IO-TCP/selectors/$a/2 ] 与 [freegeoip.net/104.131.63.168:80] 建立连接 [错误] [04/22/2016 11:58:47.832] [default-akka.actor.default-dispatcher-2] [akka://default/user/StreamSupervisor-0/flow-2-0-unknown-operation ] 阶段 [One2OneBidi] 中的错误:内部流在输入完成之前完成。输出可能已被截断。 (akka.http.impl.util.One2OneBidiFlow$OutputTruncationException$) [错误] [04/22/2016 11:58:47.851] [default-akka.actor.default-dispatcher-3] [akka.actor.ActorSystemImpl(default)] 处理请求 HttpRequest(HttpMethod(GET), http://localhost:9000/ip/8.8.8.8,List(Host: localhost:9000, C
【问题讨论】:
-
我收到了支持Activator模板教程的公司的回复;他们已经修复了暂时性问题:github.com/theiterators/akka-http-microservice/issues/21
-
我重试运行教程中的内置服务;看起来这并没有解决问题。现在这是服务端的完整错误跟踪:
-
完整的跟踪包含在我下面的第一个“答案”评论中。
标签: akka-http