gethomepage / homepage

A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations.
https://gethomepage.dev
GNU General Public License v3.0
18.39k stars 1.07k forks source link

[Bug] Impossible to call API's from widget services #696

Closed hvmzx closed 1 year ago

hvmzx commented 1 year ago

Description

I have yesterday started to setup everything through docker (homepage, radarr, sonarr...). I can load from my server the api url from localhost such as http://localhost:8989/api/v3/wanted/missing?apikey=MYKEY and it works

image

Now if I fill up the services.yaml file correctly with the apiKey and the url i get this :

API Error: Invalid data URL: http://172.22.0.1:8989/api/v3/wanted/missing?apikey=73a8f544acb74350bf0f0737b147908a Response Data: { "error": "Unauthorized" }

My containers are all on the same network, i tried pinging them from each other and it worked. I also tried to curl the sonarr main page from homepage like this : docker exec homepage curl -L -k 'http://172.22.0.7:8989' and it works but the moment i try to hit the /api I am unauthorized. I have this issue with all my services, not only Sonarr,

Steps to reproduce

  1. Deploy Containers on same network
  2. Insert key
  3. Fill up url for each service (localhost or 127.....)

homepage version

v0.5.5

Installation method

Docker

Configuration

No response

Container Logs

No response

Browser Logs

No response

Other

No response

github-actions[bot] commented 7 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns.