[英]Debugging Deployed AppEngine Flex nodejs App
I'm attempting to get the Plaid nodejs quickstart running through an AppEngine Flex app.我正在尝试通过 AppEngine Flex 应用程序运行Plaid nodejs 快速入门。
Following the App Engine Codelab , I've made it to the point where I can run npm start
and get the app working on the 8080 port.在App Engine Codelab 之后,我已经可以运行npm start
并使应用程序在 8080 端口上运行。 I then ran gcloud app deploy
, which ran without any errors.然后我运行gcloud app deploy
,它运行没有任何错误。
However, when I navigate to the given {my-app-name}.uc.r.appspot.com
site, it hangs indefinitely and there are no errors when I look at the Cloud Shell command line.但是,当我导航到给定的{my-app-name}.uc.r.appspot.com
站点时,它无限期地挂起,并且在我查看 Cloud Shell 命令行时没有错误。
Looking at gcloud app describe
gives:查看gcloud app describe
给出:
{my_username}@cloudshell:~/quickstart/node$ gcloud app describe
authDomain: gmail.com
codeBucket: staging.{my-app-name}.appspot.com
databaseType: CLOUD_FIRESTORE
defaultBucket: {my-app-name}.appspot.com
defaultHostname: {my-app-name}.uc.r.appspot.com
featureSettings:
splitHealthChecks: true
useContainerOptimizedOs: true
gcrDomain: us.gcr.io
id: {my-app-name}
locationId: us-central
name: apps/{my-app-name}
servingStatus: SERVING
I also looked at the Error Reporting piece of the Google Cloud Console and there are no errors reported.我还查看了 Google Cloud Console 的错误报告部分,没有报告任何错误。
Any ideas how to debug or figure out what may be going on?任何想法如何调试或找出可能发生的事情? It's confusing to me that it ran "locally".它在“本地”运行让我感到困惑。 I'd appreciate guidance towards how to debug or things to look at as right now, I have very little to go off of.我很感激有关如何调试或现在要查看的内容的指导,我几乎没有什么可做的。
Ah, I found the issue: The logs are available here .啊,我发现了这个问题:日志在这里可用。
And for completeness sake, my issue was that I didn't have all IPs available in the app.listen()
method in my script.为了完整起见,我的问题是我的脚本中的app.listen()
方法中没有所有可用的 IP。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.