ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
5.45k stars 252 forks source link

Can't access the Homarr API #2069

Open mSarheed opened 2 weeks ago

mSarheed commented 2 weeks ago

Environment

Cloud Service (Static)

Version

0.15.3

Describe the problem

My Homarr instance is running on the Home Assistant Add-on. I'm trying to use the Homarr API to ping certain apps or dashboards, but I keep getting unauthorized (I'm using the personal access token as bearer key from the Homarr Dashboard).

curl -H "Authorization: Bearer personal-access-token-here" http://192.168.1.5:7575/api/boards/all {"message":"UNAUTHORIZED","code":"UNAUTHORIZED"}%

I have tried various endpoints from the swagger interface, but that just shows "TypeError: Load Failed"

Logs

No response

Context

SCR-20240610-thld

Please tick the boxes

github-actions[bot] commented 2 weeks ago

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

manuel-rw commented 2 weeks ago

Hi, you might want to report this to the Home Assistant addon author. It is not maintained by us.

mSarheed commented 3 days ago

@manuel-rw I am now running Homarr in Docker (using Docker Compose) and still getting the same message "Unauthorized" when calling the API with the bearer personal access token that is displayed on the API page.

curl -X GET http://192.168.1.200:7575/api/boards/all \ -H "Authorization: Bearer 9d9abfbe-e189-457b-be55-728d83c38e4a" {"message":"UNAUTHORIZED","code":"UNAUTHORIZED"}

manuel-rw commented 3 days ago

Thanks for checking. I'll investigate this