File size: 1,139 Bytes
15240fd
 
34b69bb
 
 
15240fd
34b69bb
15240fd
 
34b69bb
15240fd
 
34b69bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
title: Error Tester
emoji: 🧪
colorFrom: red
colorTo: gray
sdk: gradio
sdk_version: 5.28.0
app_file: app.py
pinned: false
license: mit
---

A PyHARP example Space for exercising HARP's error handling paths.

Use the dropdown controls to select the failure shape, then click Process.
The app intentionally raises runtime errors, quota-looking Gradio errors,
Space-status errors, or malformed output payloads so HARP can display the
corresponding user-facing error.

Primary mappings:

- `Gradio runtime error` raises `gr.Error`, which should surface as a
  `GradioError::RuntimeError`.
- `Python runtime error` raises `RuntimeError`, which should surface as a
  `GradioError::RuntimeError` when the Space is launched with `show_error=True`.
- `ZeroGPU quota error` raises a quota-looking `gr.Error`, which should surface
  as `GradioError::QuotaExceeded`.
- `Space status error` raises a message matching Hugging Face Space failure
  text, which HARP maps to an HTTP 503-style status failure.
- `Output payload error` returns invalid or unusable output data for checking
  HARP's downstream output parsing and file-download handling.