Open Noschvie opened 1 year ago
You are making your query based off of Uptime-Kuma itself not the API noted buy the port number you have used.
curl -X 'GET' \ 'http://hadersdorf.myDomain.com:3002/statuspages' \ -H 'accept: application/json' \ -H 'Authorization: Bearer <...>'
Make the correction as so (unless you altered your docker-compose file)
curl -X 'GET' \ 'http://hadersdorf.myDomain.com:8000/statuspages' \ -H 'accept: application/json' \ -H 'Authorization: Bearer <...>'
The port number is the correct one
uptime-api:
container_name: uptime-api
image: medaziz11/uptimekuma_restapi
restart: unless-stopped
env_file:
- db.env
environment:
- TZ=Europe/Vienna
depends_on:
- uptime-kuma
ports:
- 3002:8000 # <Host Port>:<Container Port>
volumes:
- ./dataRestApi:/db
The /monitors end point works.
curl -X 'GET' \
'http://hadersdorf.myDomain.com:3002/monitors' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <...>'
Hello running latest Uptime-Kuma and Uptime-Kuma-Web-API Docker image under RPi4 64 bit.
Command
Result
Internal Server Error
Uptime-Kuma-Web-API Logs
Thanks!