data: null

#47
by StudyGermany - opened

Hi everybody,

thanks mrfakename for providing the space.
I am a newbie with API requests, but I am running in the problem "data: null" when I am trying to access the even_id.

Config in Postman:

image.png

image.png

The request seems to be successful:

image.png

But it shows "null":

image.png

Does anybody has a tip for me, what I am doing wrong?

Hey,
Would you mind trying the same request using the official gradio client library?
Thanks!
Note: Using the Space as an API is not recommended due to ZeroGPU rate limits, which will often cause errors in the API requests.

Thanks for the fast feedback.

I am a newbie, but I tried on https://www.gradio.app/playground
to access the space with:

from gradio_client import Client, handle_file
client = Client("mrfakename/E2-F5-TTS")

and received the following error message: (the host is unreachable)

Traceback (most recent call last): File "/lib/python3.12/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/lib/python3.12/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): File "/lib/python312.zip/contextlib.py", line 158, in exit self.gen.throw(value) File "/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 23] Host is unreachable The above exception was the direct cause of the following exception: Traceback (most recent call last): File "", line 149, in _run_code File "", line 3, in File "/lib/python3.12/site-packages/gradio_client/client.py", line 153, in init self.config = self._get_config() ^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/gradio_client/client.py", line 860, in _get_config r = httpx.get( ^^^^^^^^^^ File "/lib/python3.12/site-packages/httpx/_api.py", line 195, in get return request( ^^^^^^^^ File "/lib/python3.12/site-packages/httpx/_api.py", line 109, in request return client.request( ^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/httpx/_client.py", line 825, in request return self.send(request, auth=auth, follow_redirects=follow_redirects) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): File "/lib/python312.zip/contextlib.py", line 158, in exit self.gen.throw(value) File "/lib/python3.12/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 23] Host is unreachable

PythonError: Traceback (most recent call last):
File "/lib/python3.12/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
yield
File "/lib/python3.12/site-packages/httpx/_transports/default.py", line 250, in handle_request
resp = self._pool.handle_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request
raise exc from None
File "/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request
response = connection.handle_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 101, in handle_request
raise exc
File "/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 78, in handle_request
stream = self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 124, in _connect
stream = self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp
with map_exceptions(exc_map):
File "/lib/python312.zip/contextlib.py", line 158, in exit
self.gen.throw(value)
File "/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: [Errno 23] Host is unreachable

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "", line 149, in _run_code
File "", line 3, in
File "/lib/python3.12/site-packages/gradio_client/client.py", line 153, in init
self.config = self._get_config()
^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/gradio_client/client.py", line 860, in _get_config
r = httpx.get(
^^^^^^^^^^
File "/lib/python3.12/site-packages/httpx/_api.py", line 195, in get
return request(
^^^^^^^^
File "/lib/python3.12/site-packages/httpx/_api.py", line 109, in request
return client.request(
^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/httpx/_client.py", line 825, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/httpx/_client.py", line 914, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/httpx/_client.py", line 942, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/httpx/_client.py", line 1014, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/httpx/_transports/default.py", line 249, in handle_request
with map_httpcore_exceptions():
File "/lib/python312.zip/contextlib.py", line 158, in exit
self.gen.throw(value)
File "/lib/python3.12/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 23] Host is unreachable

at new_error (https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.js:10:9965)
at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.wasm:wasm-function[302]:0x16dbfd
at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.wasm:wasm-function[489]:0x177431
at _PyEM_TrampolineCall_JS (https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.js:10:125894)
at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.wasm:wasm-function[1134]:0x1c2eaf
at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.wasm:wasm-function[3602]:0x2c7c0f
at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.wasm:wasm-function[2167]:0x20a884
at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.wasm:wasm-function[1142]:0x1c359c
at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.wasm:wasm-function[1145]:0x1c38ab
at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.wasm:wasm-function[1146]:0x1c3929
at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.wasm:wasm-function[3408]:0x29e95d
at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.wasm:wasm-function[3409]:0x2a4f54
at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.wasm:wasm-function[1148]:0x1c3a69
at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.wasm:wasm-function[1143]:0x1c36d2
at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.wasm:wasm-function[476]:0x176a95
at callPyObjectKwargs (https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.js:10:64068)
at Module.callPyObjectMaybePromising (https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.js:10:65316)
at wrapper (https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.js:10:27006)
at Cn.e.port1.onmessage (https://cdn.jsdelivr.net/pyodide/

Can anyone confirm that it is running via gradio or is it me? ;)

Thanks!

Hi,
I tried using the Gradio Client and it worked for me. Gradio Playground may have certain network limitations. Please try running it on a local Python installation.
Thanks!

I am trying to give you tmr feedback. Thanks already.

Ok, works for me with the Gradio Client.
Is there an option to use it via make.com (no-code automation). Thats why I prefered BasH/Curl, because Py-scripts dont run easily on make.com.

Sign up or log in to comment