[英]Google Cloud Vision API hangs when used inside app engine
I'm trying to run the sample code for google's cloud vision API from the official quick start guide (Java): https://cloud.google.com/vision/docs/quickstart-client-libraries 我正在尝试从官方快速入门指南(Java)中运行Google的Cloud vision API的示例代码: https : //cloud.google.com/vision/docs/quickstart-client-libraries
When running in a standalone program, everything works as expected. 在独立程序中运行时,所有操作均按预期进行。 If I run the exact same code inside app engine's local dev server, the call to "vision.batchAnnotateImages(requests);"
如果我在应用程序引擎的本地开发服务器中运行完全相同的代码,则调用“ vision.batchAnnotateImages(requests);”。 hangs.
挂起。 It doesn't throw any exception and there is no running thread.
它不会引发任何异常,并且没有正在运行的线程。 It never times out (I left it running for ~20 minutes once).
它永远不会超时(我让它运行约20分钟一次)。 Pausing all threads in the debugger only shows threads waiting.
暂停调试器中的所有线程仅显示线程正在等待。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.