/info returns 5xx — gradio_client can’t initialize Client() for this Space
Hi! First of all, thanks for sharing StableMaterials — I’m using it via a Blender add-on that calls your Space through gradio_client.
What’s happening
- Since today, initializing Client("gvecchio/StableMaterials") fails during API info fetch.
- The Space’s /info endpoint appears to return a server error (5xx), so gradio_client can’t retrieve the schema and the client init aborts.
Environment
- Windows (Blender 4.5)
- gradio_client and gradio upgraded to latest (via pip)
- Call pattern:
from gradio_client import Client
client = Client("gvecchio/StableMaterials")
# later: client.predict(..., api_name="/interface_function")
Observed error (abridged)
ValueError: Could not fetch api info for https://gvecchio-stablematerials.hf.space
...
starlette/fastapi stacktrace (500) while handling /info
(Initially I also hit an older gradio_client schema parsing issue (TypeError: argument of type 'bool' is not iterable), but after upgrading gradio_client that part is resolved; the current blocker is the Space returning 5xx on /info.)
What I’ve tried
- Upgraded pip, gradio_client, and gradio.
- Retried client init and predict with backoff.
- Confirmed network access from the host environment.
- As a sanity check, other Spaces initialize fine from the same machine.
Questions
- Could you check whether the Space app is currently failing on /info (server-side exception) or if the API schema recently changed?
- Is /interface_function still the correct api_name for predict?
- If there was a recent change (e.g., components or Blocks restructured), could you share the updated expected inputs/outputs or the correct endpoint name?
If it’s just a runtime crash, a restart/redeploy might fix it; otherwise an updated schema would help clients adjust.
Thanks a lot for any guidance — happy to test again as soon as you push a fix.