首页 > 解决方案 > 尝试部署服务器标签时标记服务器“服务器错误”

问题描述

我正在尝试手动部署 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.

任何想法?我能做些什么?

标签: google-app-enginegoogle-cloud-platformgoogle-tag-managerserver-tags

解决方案


这听起来很明显,但是如果有人遇到同样的问题,您需要做的就是在设置服务器时将从 GTM 接口获得的容器配置代码传递给容器配置变量。


推荐阅读