I am receiving errors on any call to requests.get() inside notebook.link.
For example:
import requests
response = requests.get("https://www.google.com")
raises:
JsGenericError Traceback (most recent call last)
File /lib/python3.13/site-packages/urllib3/contrib/emscripten/fetch.py:385, in send_request(request)
383 js_xhr.setRequestHeader(name, value)
--> 385 js_xhr.send(to_js(request.body))
387 headers = dict(Parser().parsestr(js_xhr.getAllResponseHeaders()))
File /lib/python3.13/site-packages/pyjs/extend_js_val.py:44, in extend_val..(self, *args)
43 return future
---> 44 JsValue.call = lambda self, *args: apply(self, args=args)
45 JsValue._asstr_unsafe = lambda self: pyjs_core.internal.to_string(self)
File /lib/python3.13/site-packages/pyjs/core.py:234, in apply(js_function, args)
233 js_array_args, is_generated_proxy = _make_js_args(args)
--> 234 ret, meta = pyjs_core.internal.apply_try_catch(js_function, js_array_args, is_generated_proxy)
235 return ret
File /lib/python3.13/site-packages/pyjs/convert.py:251, in error_to_py_and_raise(err)
250 def error_to_py_and_raise(err):
--> 251 raise error_to_py(err)
JsGenericError: {"stack":"NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www.google.com/'.\n at Module._apply_try_catch (https://lite.notebook.link/sw-api/server-cache/bin/xpython.js?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:9:2001)\n at methodCaller<(emscripten::val, emscripten::val, emscripten::val) => emscripten::val> (eval at newFunc (https://lite.notebook.link/sw-api/server-cache/bin/xpython.js?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:9:236624), :7:17)\n at __emval_call (https://lite.notebook.link/sw-api/server-cache/bin/xpython.js?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:9:254451)\n at https://lite.notebook.link/sw-api/server-cache/bin/xpython.wasm?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:wasm-function[18070]:0x723510\n at invoke_viiiii (https://lite.notebook.link/sw-api/server-cache/bin/xpython.js?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:9:754898)\n at https://lite.notebook.link/sw-api/server-cache/bin/xpython.wasm?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:wasm-function[18069]:0x723370\n at https://lite.notebook.link/sw-api/server-cache/bin/xpython.wasm?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:wasm-function[17983]:0x717159\n at invoke_ii (https://lite.notebook.link/sw-api/server-cache/bin/xpython.js?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:9:754122)\n at https://lite.notebook.link/sw-api/server-cache/bin/xpython.wasm?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:wasm-function[308]:0x22d705\n at _PyEM_TrampolineCall_JavaScript
Is this an issue on my side or on notebook.link?
I am receiving errors on any call to requests.get() inside notebook.link.
For example:
raises:
JsGenericError Traceback (most recent call last)
File /lib/python3.13/site-packages/urllib3/contrib/emscripten/fetch.py:385, in send_request(request)
383 js_xhr.setRequestHeader(name, value)
--> 385 js_xhr.send(to_js(request.body))
387 headers = dict(Parser().parsestr(js_xhr.getAllResponseHeaders()))
File /lib/python3.13/site-packages/pyjs/extend_js_val.py:44, in extend_val..(self, *args)
43 return future
---> 44 JsValue.call = lambda self, *args: apply(self, args=args)
45 JsValue._asstr_unsafe = lambda self: pyjs_core.internal.to_string(self)
File /lib/python3.13/site-packages/pyjs/core.py:234, in apply(js_function, args)
233 js_array_args, is_generated_proxy = _make_js_args(args)
--> 234 ret, meta = pyjs_core.internal.apply_try_catch(js_function, js_array_args, is_generated_proxy)
235 return ret
File /lib/python3.13/site-packages/pyjs/convert.py:251, in error_to_py_and_raise(err)
250 def error_to_py_and_raise(err):
--> 251 raise error_to_py(err)
JsGenericError: {"stack":"NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www.google.com/'.\n at Module._apply_try_catch (https://lite.notebook.link/sw-api/server-cache/bin/xpython.js?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:9:2001)\n at methodCaller<(emscripten::val, emscripten::val, emscripten::val) => emscripten::val> (eval at newFunc (https://lite.notebook.link/sw-api/server-cache/bin/xpython.js?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:9:236624), :7:17)\n at __emval_call (https://lite.notebook.link/sw-api/server-cache/bin/xpython.js?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:9:254451)\n at https://lite.notebook.link/sw-api/server-cache/bin/xpython.wasm?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:wasm-function[18070]:0x723510\n at invoke_viiiii (https://lite.notebook.link/sw-api/server-cache/bin/xpython.js?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:9:754898)\n at https://lite.notebook.link/sw-api/server-cache/bin/xpython.wasm?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:wasm-function[18069]:0x723370\n at https://lite.notebook.link/sw-api/server-cache/bin/xpython.wasm?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:wasm-function[17983]:0x717159\n at invoke_ii (https://lite.notebook.link/sw-api/server-cache/bin/xpython.js?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:9:754122)\n at https://lite.notebook.link/sw-api/server-cache/bin/xpython.wasm?envId=34f7872e-00c6-42e1-a9e8-a8f372d7d474:wasm-function[308]:0x22d705\n at _PyEM_TrampolineCall_JavaScript
Is this an issue on my side or on notebook.link?