ElectricBrainUK / UnraidAPI

A WIP open source Node JS API for controlling UNraid
GNU General Public License v3.0
125 stars 13 forks source link

No data coming back #13

Closed JustinAiken closed 4 years ago

JustinAiken commented 4 years ago

I setup the docker container, then went to :3005 webpage to put in my credentials. The webpage shows nothing after:

Screen Shot 2020-01-04 at 4 17 59 PM

And if I hit the REST endpoint it comes back empty too:

$ curl -q http://tower:3005/api/getServers | jq

{
  "servers": {
    "192.168.1.8": {
      "docker": {
        "details": {
          "images": {},
          "containers": {}
        }
      },
      "vm": {
        "details": {}
      },
      "serverDetails": {
        "on": false
      }
    }
  },
  "status": 200
}

(This is unraid 6.8.0)

Also nothing useful in the docker log ->

> unraidapi@0.5.0 start /app
> cross-env NUXT_HOST=0.0.0.0 NUXT_PORT=80 NODE_ENV=production node server/index.js

Connected to mqtt broker

READY Server listening on http://0.0.0.0:80
JustinAiken commented 4 years ago

ooh the plot thickens! Now seeing in the docker log this repeated a lot:

Get Docker Details for ip: 192.168.1.8 Failed with status code: undefined

Request failed with status code 503
JustinAiken commented 4 years ago

...problem solved. Needed to put https://<long random hex code>.unraid.net/ in the Server IP box in unRaid API for it to work.

WaaromZoMoeilijk commented 4 years ago

you meant in the webui of unraid-api?

JustinAiken commented 4 years ago

Yes, in the unraid-api web api

ollioddi commented 2 years ago

Having this exact issue. I am unsure why https://.unraid.net/ would work?

Can someone perhaps explain.