fastly / cli

Build, deploy and configure Fastly services from your terminal
https://fastly.dev/reference/cli/
Apache License 2.0
139 stars 58 forks source link

FASTLY API - 404 Not found error #1237

Open alejandrto opened 3 weeks ago

alejandrto commented 3 weeks ago

Version

Please paste the output of fastly version here. Fastly CLI version v10.10.0 (73ec7c76) Built with go version go1.22.3 linux/amd64 (2024-07-03) Viceroy version: viceroy 0.9.6

A new version of the Fastly CLI is available. Current version: 10.10.0 Latest version: 10.12.3 Run fastly update to get the latest version.

What happened

Please describe the command you ran, what you expected to happen, and what happened instead.

ran fastly compute build

then ran fastly compute deploy
✓ Verifying fastly.toml

A new version of the Fastly CLI is available. Current version: 10.10.0 Latest version: 10.12.3 Run fastly update to get the latest version.

ERROR: the Fastly API returned 404 Not Found: Not found.

Also ran fastly compute publish --service-id=5plWLRgIQuZP8slgmZWFc3 ✓ Verifying fastly.toml ✓ Identifying package name ✓ Identifying toolchain ✓ Running [scripts.build] ✓ Creating package archive

SUCCESS: Built package (pkg/fastly-edge-test-application.tar.gz)

✓ Verifying fastly.toml

A new version of the Fastly CLI is available. Current version: 10.10.0 Latest version: 10.12.3 Run fastly update to get the latest version.

ERROR: the Fastly API returned 404 Not Found: Not found.

we updated the version and still ran into the same issue

kpfleming commented 3 weeks ago

This is likely a permissions issue; when you created the API token that you have set as FASTLY_API_TOKEN (or in fastly profile create), did you place any restrictions on it?

kpfleming commented 3 weeks ago

For additional debugging, you can run the command prefixed with FASTLY_DEBUG_MODE=true which will provide more details about what the CLI was doing when the failure occurred.