3x-ui/web/service
Zhenyu Qi c881d1015a
fix: handle GitHub API error responses in GetXrayVersions (#3609)
GitHub API returns JSON object instead of array when encountering errors
(e.g., rate limit exceeded). This causes JSON unmarshal error:
'cannot unmarshal object into Go value of type []service.Release'

Add HTTP status code check to handle error responses gracefully and
return user-friendly error messages instead of JSON parsing errors.

Fixes issue where getXrayVersion fails with unmarshal error when
GitHub API rate limit is exceeded.
2026-01-02 16:12:13 +01:00
..
config.json dokodemo-door, socks renamed to mixed, tunnel 2025-09-09 13:57:40 +02:00
inbound.go gofmt 2025-10-21 13:02:55 +02:00
outbound.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00
panel.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00
server.go fix: handle GitHub API error responses in GetXrayVersions (#3609) 2026-01-02 16:12:13 +01:00
setting.go Feature: add setting certs for subscription while generating for panel (#3578) 2025-11-01 13:10:27 +01:00
tgbot.go Fix int64 for 32-bit arch (#3591) 2025-12-03 14:58:54 +01:00
user.go gofmt 2025-10-21 13:02:55 +02:00
warp.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00
xray.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00
xray_setting.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00