1

在 SpringBoot 应用中调度后 Heroku 抛出以下异常:

[heroku-exec] ERROR: Could not connect to proxy! Waiting 10 seconds before retry...
[heroku-exec] ERROR: Could not connect to proxy! Waiting 20 seconds before retry...

系统:Heroku、SpringBoot、org.springframework.scheduling.annotation.EnableScheduling

我通过重新启动中断了它。

在我的上下文中这是什么意思以及如何解决它?

谢谢!

4

1 回答 1

1

这不是您的应用程序引发的异常。这是一个警告,Heroku Exec 进程无法连接到允许您运行类似heroku ps:execor的命令的代理heroku java:jconsole。发生这种情况的原因有很多(网络故障等)。

只要您不使用这些命令,就可以安全地忽略这一点。否则,您可以通过运行禁用:

$ heroku features:disable runtime-heroku-exec
于 2019-05-21T15:47:36.177 回答