升级Go 1.20及GCP API后,dev_appserver.py本地运行遇Service Bridge HTTP错误
App Engine Go 1.20 本地dev_appserver.py API调用解析错误问题
我已将App Engine应用升级至Go 1.20版本及最新Google Cloud API,部署后应用可正常运行,但使用dev_appserver.py本地运行时,每次发起API调用都会触发以下错误:
2023/04/16 17:27:52 ERROR: database.GetLocation - service bridge HTTP failed: Post "http://appengine.googleapis.internal:10001/rpc_http": dial tcp: lookup appengine.googleapis.internal: getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. 2023/04/16 17:27:52 ERROR: service bridge HTTP failed: Post "http://appengine.googleapis.internal:10001/rpc_http": dial tcp: lookup appengine.googleapis.internal: getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
静态文件加载正常,代码执行到该步骤前均无异常,且dev_appserver.py初始化状态正常:
INFO 2023-04-16 13:27:28,888 devappserver2.py:321] Skipping SDK update check. INFO 2023-04-16 13:27:29,746 datastore_emulator.py:156] Starting Cloud Datastore emulator at: http://localhost:49226 INFO 2023-04-16 13:27:32,604 datastore_emulator.py:162] Cloud Datastore emulator responded after 2.858000 seconds INFO 2023-04-16 13:27:32,605 <string>:398] Starting API server at: http://localhost:49258 INFO 2023-04-16 13:27:32,634 <string>:388] Starting gRPC API server at: http://localhost:49259 INFO 2023-04-16 13:27:32,651 instance_factory.py:184] Building with dependencies from go.mod. INFO 2023-04-16 13:27:32,733 dispatcher.py:276] Starting module "default" running at: http://localhost:8080 INFO 2023-04-16 13:27:32,740 admin_server.py:70] Starting admin server at: http://localhost:8000 INFO 2023-04-16 13:27:39,770 instance.py:294] Instance PID: 29280
内容的提问来源于stack exchange,提问作者ghosttie
相关产品推荐
相关产品推荐

