Skip to content

Things that will bite you

Verified against live T4 8.4.3 and 8.4.5 instances. 8.4.4 is untested; its release notes record no changes to the endpoints used here. Run t4 doctor to confirm against yours.

Some resources need a {language} path segment, and omitting it returns 500, the same answer as a route that does not exist. This hides whole resources: Content Layouts are at /layout/contenttype/{id}/{language}, and media at /media/{id}/{language}. Both looked absent for a long time because they were requested without it.

Endpoint names are case-sensitive and inconsistent. /pageLayout is camelCase; /contenttype is not. A wrong case returns 500, identical to an unrouted path, so a typo is indistinguishable from “this endpoint does not exist”.

/list ignores its path segment. /list alone returns 500; /list/<anything> returns every list. The 1 in list/1 is a placeholder.

T4 stores CRLF. All file IO keeps line endings exactly as they came. Without that, every CRLF file looks modified and a push would rewrite layouts with mangled line endings.

A 500 is not evidence that a resource does not exist. Content Layouts were written off twice on that basis: about 30 route spellings were tried, all 500, and the conclusion recorded was “not exposed by the REST API”. The cause was the missing {language} segment above. They are pulled and pushed like anything else. Check the published spec before concluding an endpoint is absent.

8.4.5 deprecates the XML Web Services payload in favour of JSON. This tool only ever speaks JSON, so that deprecation does not affect it. 8.4.5 also reverts a Repeater API change made in 8.4.4, which may alter content type responses between those two releases; records are written whole, so a field change shows up as a diff rather than a failure.

Tokens come from the UI. Administration → User Management → generate an API token. /rs/authorise returns 500 on at least one 8.4.3 instance, so tokens cannot reliably be minted from a username and password.

The network path to a CMS is often a VPN and often unreliable. Transport failures are retried with backoff; HTTP statuses are not, since the server answered.

A VPN that inspects TLS re-signs every certificate with its own root. Python on macOS checks certificates against OpenSSL’s bundle, not the Keychain, so every request would fail with CERTIFICATE_VERIFY_FAILED even though the browser is happy. DepartureGate adds the System, login and Apple root keychains to the one context every request uses. Windows needs nothing, because Python reads its certificate store already. If the VPN’s root is not in a keychain, point SSL_CERT_FILE at a PEM file that holds it.

An independent, unofficial tool. Not produced, endorsed or supported by TERMINALFOUR Solutions Ltd, and not TERMINALFOUR software. “T4” and “TERMINALFOUR” are their trademarks, used here only to identify the software this works with. Copyright © 2026 Small Robot Corp. Source available under the PolyForm Shield License 1.0.0.