【问题标题】:Unable to assign value '<unknown>' to attribute 'XXX'无法将值“<unknown>”分配给属性“XXX”
【发布时间】:2019-04-30 12:10:30
【问题描述】:

我正在尝试将项目部署到 App Engine,但如果我在 app.yaml 中使用“ü”字符作为值,则会收到以下错误。我不想对值进行 HTML/URL 编码。有什么办法可以解决这个问题吗?

ERROR: (gcloud.app.deploy) An error occurred while parsing file: [app.yaml]
Unable to assign value '<unknown>' to attribute 'XXX':
Value u'\xfc' for XXX could not be converted to type str.

app.yaml 文件:

runtime: php72
env: standard

env_variables: 
  XXX: "ü"

【问题讨论】:

    标签: google-app-engine gcloud


    【解决方案1】:

    我已向 Google 支持创建了一张票,并收到了以下回复。

    在调查此问题后,我发现唯一可用的 解决方法是加载非 ASCII 的 ASCII 表示 字符,然后在应用程序的逻辑中进行转换。

    此外,我发现此功能请求已经存在 问题,但目前没有用于其实施的 ETA 或 保证会完成。

    【讨论】:

      猜你喜欢
      • 2018-12-07
      • 1970-01-01
      • 2020-11-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-04
      相关资源
      最近更新 更多