Has anyone encountered this problem before
api/v2/appearance return "API key or workspace agent token required, but none provided"
I raised an issue here:https://github.com/coder/coder/issues/12557
GitHub
api/v2/appearance return "API key or workspace agent token required...
alicloud_instance.master[0]: (remote-exec): �[0m2024-03-12 14:43:34.852 [info] connecting to coderd alicloud_instance.master[0]: (remote-exec): �[0m2024-03-12 14:43:34.852 [debu] sdk request method...
2 Replies
<#1217290923675881552>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
alicloud_instance.master[0]: (remote-exec): �[0m2024-03-12 14:43:34.852 [info] connecting to coderd
alicloud_instance.master[0]: (remote-exec): �[0m2024-03-12 14:43:34.852 [debu] sdk request method=GET url=https://coder.xxxx.com/api/v2/appearance body=""
alicloud_instance.master[0]: (remote-exec): �[0m2024-03-12 14:43:35.008 [debu] sdk response method=GET url=https://coder.xxxx.com/api/v2/appearance status=401 body="" trace_id="" span_id=""
alicloud_instance.master[0]: (remote-exec): �[0m2024-03-12 14:43:35.008 [warn] run exited with error ...
alicloud_instance.master[0]: (remote-exec): error= fetch service banner:
alicloud_instance.master[0]: (remote-exec): github.com/coder/coder/v2/agent.(*agent).run
alicloud_instance.master[0]: (remote-exec): /home/runner/actions-runner/_work/coder/coder/agent/agent.go:697
alicloud_instance.master[0]: (remote-exec): - GET https://coder.xxxx.com/api/v2/appearance: unexpected status code 401: API key or workspace agent token required, but none provided: Try logging in using 'coder login <url>'.
alicloud_instance.master[0]: (remote-exec): �[0m2024-03-12 14:43:37.558 [debu] sdk request method=GET url=https://coder.xxxx.com/api/v2/appearance body=""
alicloud_instance.master[0]: (remote-exec): �[0m2024-03-12 14:43:37.724 [debu] sdk response method=GET url=https://coder.xxxx.com/api/v2/appearance status=401 body="" trace_id="" span_id=""
alicloud_instance.master[0]: (remote-exec): �[0m2024-03-12 14:43:37.724 [erro] failed to update service banner error="GET https://coder.xxxx.com/api/v2/appearance: unexpected status code 401: API key or workspace agent token required, but none provided: Try logging in using 'coder login <url>'."here is logs