Closed Andersang closed 10 months ago
Hmm if the token is correct - it could be the url.
Have you got the 7055 port exposed in your Docker setup?
Have you tried the url as http://localhost:7055/
?
Yes to both. Still haven't got it working - I was wondering if it's an issue with locally hosted docker containers.
Issue is solved. A mistake on my part - for local installations where port mapping is done, we must still use the default directus port at 8055 for template-cli if we are running the script in docker desktop's exec tab. Using http://localhost:8055/ works.
Closing this issue
I'm getting a "Warning: Invalid token" when attempting to extract a template from a Directus docker installation on a local environment. I've verified that the static access token I've provided is correct using Postman.
The Directus instance I have set up is accessible on my local machine at http://localhost:7055/. I'm running the Template CLI using the Docker Desktop Exec interface. This is a preview of the inputs I gave: