简体   繁体   English

在应用程序引擎内部使用时,Google Cloud Vision API会挂起

[英]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. 暂停调试器中的所有线程仅显示线程正在等待。

You are supposed to make calls to Cloud Vision API, a service hosted in the Cloud, not locally on your machine. 您应该调用Cloud Vision API,这是Cloud托管的服务,而不是本地计算机。 You may check the "Quickstart" page for more insight. 您可以查看“快速入门” 页面以获取更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 部署后的Google App Engine和Cloud SQL - Google App Engine and Cloud SQL when deployed 调用Google Cloud Endpoints API时,Google App Engine任务队列获取404 - Google App Engine Task Queue gets a 404 when invoking Google Cloud Endpoints API 应用程序凭据在 Google Cloud Vision API 中不可用 - Applications Credentials not avaliable in Google Cloud Vision API google云视觉api OCR边界框 - google cloud vision api OCR bounding box 无法解析 Cloud Vision API 的符号“google” - Cannot resolve symbol 'google' for Cloud Vision API Google App Engine不支持vision api Runtime.addShutdownHook错误 - Google App Engine does not support vision api Runtime.addShutdownHook error 带有JPA部署的Google App Engine应用程序挂起 - Google App Engine App with JPA deployment hangs 使用带有简单 API 密钥的 Google Cloud Vision API - Using the Google Cloud Vision API with a simple API key Google Cloud Storage API无法在App Engine上获取应用程序默认凭据,以查找Compute Engine错误 - Google Cloud Storage API cannot get Application Default Credentials on App Engine looking for Compute Engine error Google Cloud SQL和Google App Engine - Google Cloud sql and Google app engine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM