我正在尝试在子域 (api.mySite.com) 上创建一个 Restful API。我的cfcs 里面有一个restInitApplication(pathToRoot, 'api')
用于启动的非常基本的应用程序文件。一切都很好。我可以调用 cfc//api.mySite.com/rest/api/cfcRestPath/{Username}
并返回预期数据“大约一小时或 2 小时”,然后突然间我收到 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.
在这一点上,如果我restInitApplication()
再次运行,一切都很好,花花公子。
我怎样才能做到这一点,一旦我启动它,它就会继续工作?我唯一能想到的就是设置一个 cron 作业,每小时刷新一次其余服务,但那是一种贫民窟。
提前致谢。