Coldfusion Rest服务超时,并在成功运行后引发500错误

Coldfusion Rest服务超时,并在成功运行后引发500错误,rest,coldfusion,coldfusion-11,Rest,Coldfusion,Coldfusion 11,我正在尝试在子域API.mySite.com上创建Restful API。我的CFC中有一个非常基本的应用程序文件,它使用restInitApplicationpathToRoot、“api”来启动。一切都很好。我可以调用cfc//api.mySite.com/rest/api/cfcRestPath/{Username}并返回一到两个小时的预期数据,然后突然出现500个错误 HTTP Error 500.0 - Internal Server Error IIS received the re

我正在尝试在子域API.mySite.com上创建Restful API。我的CFC中有一个非常基本的应用程序文件,它使用restInitApplicationpathToRoot、“api”来启动。一切都很好。我可以调用cfc//api.mySite.com/rest/api/cfcRestPath/{Username}并返回一到两个小时的预期数据,然后突然出现500个错误

HTTP Error 500.0 - Internal Server Error
IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
此时,如果我再次运行restinit应用程序,一切都会很好

我怎样才能使它一旦启动,它就会继续工作?我能想到的唯一一件事就是设置一个cron作业,它将每小时刷新rest服务一次,但这有点像贫民区


提前感谢。

您可能会发现,每次更改REST CFC时,您都需要重新启动应用程序。这可能是你正在经历的吗?这有一个bug,但我找不到。是的,亚当,你是对的。在使用REST时,我还遇到了500内部服务器错误。正如sean提到的,当我们再次调用RestInit应用程序时,问题得到了解决。