`getInvoice` never detects "not found": unknown invoice ids show a raw host error
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 86/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- nextjs, typescript
Línea de trabajo
Empieza en web/lib/contract.ts, donde getInvoice comprueba message.includes("InvoiceNotFound"), y añade la detección de Error(Contract, #3) manteniendo la comparación por nombre, devolviendo null en ambos casos. Revisa web/app/pay/[id]/page.tsx para confirmar que un resultado null muestra el mensaje de que no existe. Está listo cuando /pay/999999 muestra ese mensaje, getAllInvoices no cambia y los ids válidos siguen cargando.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Difficulty: Beginner
Problem
getInvoice checks message.includes("InvoiceNotFound"). Verified against the live testnet contract, the simulation error for an unknown id is HostError: Error(Contract, #3), so the check never matches. /pay/<unknown id> therefore shows the raw host error instead of "Invoice doesn't exist".
Why it matters
Opening a wrong or mistyped payment link is the most common client mistake, and it currently gets the worst message.
Scope of work
Detect Error(Contract, #3) (keep the name match too) and return null; add a unit test if a test runner is available (see #13).
Acceptance criteria
-
/pay/999999shows the "doesn't exist" message. -
getAllInvoicesbehaves as before. - Valid ids are unaffected.
Relevant files
web/lib/contract.ts,web/app/pay/[id]/page.tsx
Dependencies
Overlaps in spirit with #12 (error mapping), but this fix stands alone.
Maintainer discussion needed?
No.
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 4
- Merge medio
- 54 min
- PR fusionados (30 d)
- 6
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Yormee-103/PayLoop
-
Add a CHANGELOG and release-notes conventionPosiblemente ocupada @Sharon-dev-create la tomó hoy. Abiertodifficulty: beginner documentation dx help wanted Stellar Wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Yormee-103/PayLoop#169 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Glossary of Stellar and PayLoop terms, linked from the Help pagePosiblemente ocupada @Yemmy88 la tomó hoy. Abiertodifficulty: beginner documentation good first issue help wanted Stellar Wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Yormee-103/PayLoop#168 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
difficulty: beginner dx good first issue help wanted web
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Yormee-103/PayLoop#158 ·
Los mantenedores suelen responder en 1 día
-
difficulty: beginner documentation good first issue help wanted security
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Yormee-103/PayLoop#145 ·
Los mantenedores suelen responder en 1 día
-
a11y difficulty: beginner good first issue help wanted web
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Yormee-103/PayLoop#144 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Yormee-103/PayLoop
Issues similares
-
[UI] Guard webApis against undefined window in SSR environmentsPosiblemente ocupada @madhavzanwar la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
headroomlabs-ai/headroom#4992 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
paperclipai/paperclip#22575 ·
Los mantenedores suelen responder en 1 día
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
lingdojo/kana-dojo#34502 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
bug frontend good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
nikhilb2/simple_invoicing#935 ·