How to fix the fetch container error
When Stape can’t download your server-side GTM (sGTM) container configuration from Google, the container cannot be deployed. In that case, the container shows an error: “Fetching container from <URL> failed: Received HTTP status code <code> (gtm-app, ContainerUpdateService)”. Stape fetches the configuration from googletagmanager.com/server.js using the container configuration code you entered.
What causes the fetch container error?
- A 404 error when the sGTM container was deleted, not published, or the container configuration code in Stape is wrong.
- Receiving a 403 error from Google is also treated as a failure.
- A network or other exception during the fetch also produces this message.
How to fix the fetch container error?
- 1.In Google Tag Manager, check that the server container exists and is published.
- 2.Copy the Container Configuration string from Admin → Container Settings → Tagging server, and paste it into the Stape container setup. See how to find Container Configuration for sGTM.
- 3.If the error persists, try creating a new sGTM container, using its configuration code, and migrating your setup.
- 4.If the error remains, feel free to contact us.
Was this article helpful?
🍽 Table of content:
Subscribe to product updates:
Can’t find what you are looking for?
Comments