[Bug] <title>missing "Bearer " prefix in "Authorization" #808

Closed
opened 2025-12-29 02:24:17 +01:00 by adam · 7 comments
Owner

Originally created by @skarpinis on GitHub (Sep 30, 2024).

Is this a support request?

  • This is not a support request

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

2024-09-30T12:46:56+01:00 ERR home/runner/work/headscale/headscale/hscontrol/app.go:357 > missing "Bearer " prefix in "Authorization" header client_address=

Expected Behavior

no errors

Steps To Reproduce

running in docker container

Environment

- OS:linux docker container 
- Headscale version:latest
- Tailscale version:latest

Runtime environment

  • Headscale is behind a (reverse) proxy
  • Headscale runs in a container

Anything else?

No response

Originally created by @skarpinis on GitHub (Sep 30, 2024). ### Is this a support request? - [X] This is not a support request ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior 2024-09-30T12:46:56+01:00 ERR home/runner/work/headscale/headscale/hscontrol/app.go:357 > missing "Bearer " prefix in "Authorization" header client_address= ### Expected Behavior no errors ### Steps To Reproduce running in docker container ### Environment ```markdown - OS:linux docker container - Headscale version:latest - Tailscale version:latest ``` ### Runtime environment - [X] Headscale is behind a (reverse) proxy - [X] Headscale runs in a container ### Anything else? _No response_
adam added the bug label 2025-12-29 02:24:17 +01:00
adam closed this issue 2025-12-29 02:24:17 +01:00
Author
Owner

@nblock commented on GitHub (Oct 29, 2024):

2024-09-30T12:46:56+01:00 ERR home/runner/work/headscale/headscale/hscontrol/app.go:357 > missing "Bearer " prefix in "Authorization" header client_address=

It seems you try to use the headscale API but provide the API key in an invalid format. Can you please share more details, on how you call the headscale API?

@nblock commented on GitHub (Oct 29, 2024): > 2024-09-30T12:46:56+01:00 ERR home/runner/work/headscale/headscale/hscontrol/app.go:357 > missing "Bearer " prefix in "Authorization" header client_address= It seems you try to use the headscale API but provide the API key in an invalid format. Can you please share more details, on how you call the headscale API?
Author
Owner

@skarpinis commented on GitHub (Oct 30, 2024):

2024-09-30T12:46:56+01:00 ERR home/runner/work/headscale/headscale/hscontrol/app.go:357 > missing "Bearer " prefix in "Authorization" header client_address=

It seems you try to use the headscale API but provide the API key in an invalid format. Can you please share more details, on how you call the headscale API?

Hi, can you explain more did not understand your question

@skarpinis commented on GitHub (Oct 30, 2024): > > 2024-09-30T12:46:56+01:00 ERR home/runner/work/headscale/headscale/hscontrol/app.go:357 > missing "Bearer " prefix in "Authorization" header client_address= > > It seems you try to use the headscale API but provide the API key in an invalid format. Can you please share more details, on how you call the headscale API? Hi, can you explain more did not understand your question
Author
Owner

@nblock commented on GitHub (Oct 30, 2024):

Hi, can you explain more did not understand your question

What have you done to get the reported error message?

@nblock commented on GitHub (Oct 30, 2024): > Hi, can you explain more did not understand your question What have you done to get the reported error message?
Author
Owner

@skarpinis commented on GitHub (Oct 30, 2024):

Hi, can you explain more did not understand your question

What have you done to get the reported error message?

updated headscale

@skarpinis commented on GitHub (Oct 30, 2024): > > Hi, can you explain more did not understand your question > > What have you done to get the reported error message? updated headscale
Author
Owner

@nblock commented on GitHub (Nov 16, 2024):

Hi, can you explain more did not understand your question

What have you done to get the reported error message?

updated headscale

Can you please provide more details, what commands did you run, etc? Also, the error message involves the API, are you using a web interface?

@nblock commented on GitHub (Nov 16, 2024): > > > Hi, can you explain more did not understand your question > > > > > > What have you done to get the reported error message? > > updated headscale Can you please provide more details, what commands did you run, etc? Also, the error message involves the API, are you using a web interface?
Author
Owner

@skarpinis commented on GitHub (Nov 16, 2024):

services:
headscale:
container_name: headscale
environment:
- PUID=1000
- PGID=1000
- TZ=GB
volumes:
- /var/lib/docker/volumes/headscale/config:/etc/headscale/
- /var/lib/docker/volumes/headscale/keys:/var/lib/headscale/
ports:
- 8080:8080
- 9090:9090
image: headscale/headscale:0.23.0
command: serve
restart: unless-stopped

headscale-ui:
image: ghcr.io/gurucomputing/headscale-ui:latest
container_name: headscale-ui
restart: unless-stopped
networks:
default:
external: true
name: proxy

@skarpinis commented on GitHub (Nov 16, 2024): services: headscale: container_name: headscale environment: - PUID=1000 - PGID=1000 - TZ=GB volumes: - /var/lib/docker/volumes/headscale/config:/etc/headscale/ - /var/lib/docker/volumes/headscale/keys:/var/lib/headscale/ ports: - 8080:8080 - 9090:9090 image: headscale/headscale:0.23.0 command: serve restart: unless-stopped headscale-ui: image: ghcr.io/gurucomputing/headscale-ui:latest container_name: headscale-ui restart: unless-stopped networks: default: external: true name: proxy
Author
Owner

@nblock commented on GitHub (Nov 17, 2024):

Please read: https://github.com/gurucomputing/headscale-ui?tab=readme-ov-file#errors-related-to-missing-bearer-prefix and join our discord server at https://discord.gg/c84AZQhmpx for further support with web interfaces.

@nblock commented on GitHub (Nov 17, 2024): Please read: https://github.com/gurucomputing/headscale-ui?tab=readme-ov-file#errors-related-to-missing-bearer-prefix and join our discord server at https://discord.gg/c84AZQhmpx for further support with web interfaces.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#808