minecraft-prometheus-exporter
minecraft-prometheus-exporter copied to clipboard
Minecraft Exporter fails with msg="Failed to get player stats" err="error retrieving player info from api.ashcon.app: Status Code: 400"
What happened?
_ _ _ _ _ ____ ____ ____ ____ ____ ___ ____ _ _ ___ ____ ____ ___ ____ ____
|\/| | |\ | |___ | |__/ |__| |___ | __ |___ \/ |__] | | |__/ | |___ |__/
| | | | \| |___ |___ | \ | | | | |___ _/\_ | |__| | \ | |___ | \
time=2025-04-13T20:44:26.274Z level=INFO source=/home/runner/work/minecraft-prometheus-exporter/minecraft-prometheus-exporter/cmd/minecraftexporter/main.go:43 msg="Starting minecraft_exporter" version="(version=0.21.0, branch=HEAD, revision=d5ed482b002cbca0e63b40ca692bb8f1dee8577a)"
time=2025-04-13T20:44:26.274Z level=INFO source=/home/runner/work/minecraft-prometheus-exporter/minecraft-prometheus-exporter/cmd/minecraftexporter/main.go:44 msg="Build context" build="(go=go1.22.7, platform=linux/amd64, user=goreleaser, date=2024-09-29T08:12:55Z, tags=unknown)"
time=2025-04-13T20:44:26.278Z level=INFO source=/home/runner/work/minecraft-prometheus-exporter/minecraft-prometheus-exporter/cmd/minecraftexporter/main.go:53 msg="Disabling collection of exporter metrics (like go_*)" value=0xc00001362e
time=2025-04-13T20:44:26.279Z level=INFO source=/home/runner/work/minecraft-prometheus-exporter/minecraft-prometheus-exporter/cmd/minecraftexporter/main.go:81 msg="Listening signals..."
time=2025-04-13T20:44:26.279Z level=INFO source=/home/runner/work/minecraft-prometheus-exporter/minecraft-prometheus-exporter/cmd/minecraftexporter/main.go:69 msg="Listening on address" address=:9150
time=2025-04-13T20:44:26.279Z level=INFO source=/home/runner/go/pkg/mod/github.com/prometheus/[email protected]/web/tls_config.go:347 msg="Listening on" address=[::]:9150
time=2025-04-13T20:44:26.279Z level=INFO source=/home/runner/go/pkg/mod/github.com/prometheus/[email protected]/web/tls_config.go:350 msg="TLS is disabled." http2=false address=[::]:9150
time=2025-04-13T20:44:54.753Z level=ERROR source=/home/runner/work/minecraft-prometheus-exporter/minecraft-prometheus-exporter/pkg/exporter/exporter.go:934 msg="Failed to get player stats" err="error retrieving player info from api.ashcon.app: Status Code: 400"
How can we reproduce this?
I'm not sure
minecraft-exporter --version
minecraft_exporter, version 0.21.0 (branch: HEAD, revision: d5ed482b002cbca0e63b40ca692bb8f1dee8577a)
build user: goreleaser
build date: 2024-09-29T08:12:55Z
go version: go1.22.7
platform: linux/amd64
tags: unknown
Search
- [x] I did search for other open and closed issues before opening this.
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Additional context
No response