Skip to content

Commit 338b070

Browse files
rainerstudiosclaude
andcommitted
Fix incorrect API endpoint in monitoring scripts
Changed /stats to /api/stats in: - auto-rotate-proxies.sh - monitor-bots.sh - monitor-capacity.sh This was causing 404 errors in logs when scripts tried to check bot status. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b8d6931 commit 338b070

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

auto-rotate-proxies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@ echo "[$TIMESTAMP] Proxy rotation completed successfully"
141141
sleep 5
142142
echo ""
143143
echo "Bot status after rotation:"
144-
curl -s http://localhost:3002/stats | grep -o '"bots_online":[0-9]*' || echo "Could not fetch status"
144+
curl -s http://localhost:3002/api/stats | grep -o '"bots_online":[0-9]*' || echo "Could not fetch status"

monitor-bots.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Checks if bots are online and sends Discord webhook if any are offline
55

66
# Configuration
7-
API_URL="http://localhost:3002/stats"
7+
API_URL="http://localhost:3002/api/stats"
88
DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/1430175040204181520/2DVFasIxOCS_khJOGuELpejAnxpk3Ho5evI7qOM5aHXXQzrfkcFdTnjDSKnYWqMdUyVo"
99
STATE_FILE="/tmp/csfloat-bot-monitor-state"
1010

monitor-capacity.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Monitor API capacity and alert when scaling needed
44

5-
API_URL="http://localhost:3002/stats"
5+
API_URL="http://localhost:3002/api/stats"
66

77
while true; do
88
# Get stats

0 commit comments

Comments
 (0)