You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

本地运行Cloud Run服务报错:invalid skaffold config: proxy: unknown scheme: http

问题描述

按照YouTube教程创建Python示例hello-world应用,尝试通过「Run On Cloud Run Emulator」在本地运行Cloud Run服务时,触发错误提示:invalid skaffold config: proxy: unknown scheme: http。

环境信息:

  • Intel芯片Mac
  • 处于企业VPN环境

相关日志:

Skaffold &{Version:v2.0.4 ConfigVersion:skaffold/v4beta1 GitVersion: GitCommit: ....BuildDate:2022-12-21T09:11:50Z GoVersion:go1.19.1 Compiler:gc Platform:darwin/amd64 User:}
Loaded Skaffold defaults from "/Users/.../.skaffold/config"
map entry found when executing locate for &{hello-world-2 . 0x.... {<nil> <nil> <nil> <nil> <nil> 0x.... <nil>} [] {[] []} []} of type *latest.Artifact and pointer: 824635590528
Using kubectl context: cloud-run-dev-internal
invalid skaffold config: proxy: unknown scheme: http
Skaffold exited with code 1.
invalid skaffold config: proxy: unknown scheme: http
Deleted the temporary directory /var/folders/4j/../T/cloud-code-cloud-run-JSw6y6.
解决思路
  • 检查Skaffold配置文件:打开/Users/.../.skaffold/config,查看代理相关配置项,确认代理URL格式是否合规。Skaffold要求代理URL必须包含完整scheme(如http://或https://),若配置仅写http而无完整地址,会触发该错误。
  • 修正代理配置:将代理项补充为标准URL格式,例如http://proxy.example.com:port或https://proxy.example.com:port,保存后重新运行服务。
  • 临时排查代理冲突:可临时注释掉配置文件中的代理项,退出企业VPN后重试,验证是否为代理配置引发的问题。
  • 升级Skaffold版本:当前使用的v2.0.4版本较旧,可能存在代理解析bug,升级至最新稳定版后再测试。

内容的提问来源于stack exchange,提问作者Ashok KS

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.03 20:16:07