google-app-engine - 尝试部署服务器标签时标记服务器“服务器错误”
问题描述
我正在尝试手动部署 GTM 服务器容器。我正在遵循谷歌的这个配置指南:
https://developers.google.com/tag-manager/serverside/script-user-guide
一切似乎都运行良好,但是在尝试预览我的容器时出现以下错误
Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.
当我在云外壳中运行命令时,gcloud app logs read
出现以下错误Error: Failed to decode the container config.
任何想法?我能做些什么?
解决方案
这听起来很明显,但是如果有人遇到同样的问题,您需要做的就是在设置服务器时将从 GTM 接口获得的容器配置代码传递给容器配置变量。
推荐阅读
- python - 如何使用 selenium 选择 javascript 元素
- cmake - 如何使用 cmake 将 .obj 文件添加到依赖项?
- mysql - 是否有任何功能可以在 sql 中查找具有特殊字符的结果?
- laravel-5.8 - 文件上传时如何在 Laravel 5.8 中禁用通知
- java - 编写具有多个条件的正则表达式模式
- asp.net-core - 标签助手执行顺序
- mongodb - 如何在 MongoDB 中查找具有计数的连续文档?
- angular - Angular Component On destroy 需要检查数据是否保存并获得确认?
- java - 线程“主”java.lang.NoClassDefFoundError 中的异常:org/apache/commons/io/FileUtils 错误
- css - CSS - 创建水平条纹