0xfurai / 0xfurai/peekaping

Push monitor ignores information after ?

Aperta Adatta ai principianti
#290 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
1.2k
Fork
69
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Describe the bug**
Push monitor not flagged as **DOWN** when URL includes `?status=down`
Push monitor does not display ping included in `&ping=500`
**To Reproduce**
Steps to reproduce the behavior:
1. Create a push monitor
2. query monitor URL but replace `?status=up&msg=OK&ping=` with `?status=down&msg=failed&ping=500`
3. Observe monitor display as UP and ping display as 0

**Expected behavior**
Push monitor should be marked as down when `?status=down`
Push monitor

**Screenshots**

Image

Image

**Desktop (please complete the following information):**
- OS: Cachyos
- Browser: Vivaldi

**Additional context**
This was run in the demo website

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Look for the push monitor endpoint that handles incoming HTTP requests with query parameters like 'status' and 'ping'. The bug likely involves URL parsing or parameter extraction logic. Check how the server processes the query string after the '?'. Write a test to verify that 'status=down' sets the monitor state correctly and 'ping=500' updates the ping value.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
go
Ambito
api, backend
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Attiva
Chiarezza
Specificata chiaramente
Idoneità per principianti
70/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.