Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application error: a client-side exception has occurred (see the browser console for more information). #50

Open
kappa95 opened this issue Sep 13, 2023 · 9 comments

Comments

@kappa95
Copy link

kappa95 commented Sep 13, 2023

Dear community,

I tried to do the base tutorial for showing the Panda robot. But I get a black screen on the browser with the error: "Application error: a client-side exception has occurred (see the browser console for more information)."

On the browser console i get the following errors:

Error: Could not load retrieve/C:\Users\inse9\AppData\Local\Programs\Python\Python38\Lib\site-packages\rtbdata\xacro\franka_description\meshes\visual\link0.dae: fetch for "http://localhost:52000/retrieve/C:/Users/inse9/AppData/Local/Programs/Python/Python38/Lib/site-packages/rtbdata/xacro/franka_description/meshes/visual/link0.dae" responded with 404: File not found) NextJS 2 [index-0723cc3b940b78c7.js:194:40195](http://localhost:52000/_next/static/chunks/pages/index-0723cc3b940b78c7.js) Error: Could not load retrieve/C:\Users\inse9\AppData\Local\Programs\Python\Python38\Lib\site-packages\rtbdata\xacro\franka_description\meshes\visual\link1.dae: fetch for "http://localhost:52000/retrieve/C:/Users/inse9/AppData/Local/Programs/Python/Python38/Lib/site-packages/rtbdata/xacro/franka_description/meshes/visual/link1.dae" responded with 404: File not found) NextJS 2 [index-0723cc3b940b78c7.js:194:40195](http://localhost:52000/_next/static/chunks/pages/index-0723cc3b940b78c7.js) Error: Could not load retrieve/C:\Users\inse9\AppData\Local\Programs\Python\Python38\Lib\site-packages\rtbdata\xacro\franka_description\meshes\visual\link2.dae: fetch for "http://localhost:52000/retrieve/C:/Users/inse9/AppData/Local/Programs/Python/Python38/Lib/site-packages/rtbdata/xacro/franka_description/meshes/visual/link2.dae" responded with 404: File not found) NextJS 2 [index-0723cc3b940b78c7.js:194:40195](http://localhost:52000/_next/static/chunks/pages/index-0723cc3b940b78c7.js) Error: Could not load retrieve/C:\Users\inse9\AppData\Local\Programs\Python\Python38\Lib\site-packages\rtbdata\xacro\franka_description\meshes\visual\link3.dae: fetch for "http://localhost:52000/retrieve/C:/Users/inse9/AppData/Local/Programs/Python/Python38/Lib/site-packages/rtbdata/xacro/franka_description/meshes/visual/link3.dae" responded with 404: File not found) NextJS 2 [index-0723cc3b940b78c7.js:194:40195](http://localhost:52000/_next/static/chunks/pages/index-0723cc3b940b78c7.js) Error: Could not load retrieve/C:\Users\inse9\AppData\Local\Programs\Python\Python38\Lib\site-packages\rtbdata\xacro\franka_description\meshes\visual\link4.dae: fetch for "http://localhost:52000/retrieve/C:/Users/inse9/AppData/Local/Programs/Python/Python38/Lib/site-packages/rtbdata/xacro/franka_description/meshes/visual/link4.dae" responded with 404: File not found) NextJS 2 [index-0723cc3b940b78c7.js:194:40195](http://localhost:52000/_next/static/chunks/pages/index-0723cc3b940b78c7.js) Error: Could not load retrieve/C:\Users\inse9\AppData\Local\Programs\Python\Python38\Lib\site-packages\rtbdata\xacro\franka_description\meshes\visual\link5.dae: fetch for "http://localhost:52000/retrieve/C:/Users/inse9/AppData/Local/Programs/Python/Python38/Lib/site-packages/rtbdata/xacro/franka_description/meshes/visual/link5.dae" responded with 404: File not found) NextJS 2 [index-0723cc3b940b78c7.js:194:40195](http://localhost:52000/_next/static/chunks/pages/index-0723cc3b940b78c7.js) Error: Could not load retrieve/C:\Users\inse9\AppData\Local\Programs\Python\Python38\Lib\site-packages\rtbdata\xacro\franka_description\meshes\visual\link6.dae: fetch for "http://localhost:52000/retrieve/C:/Users/inse9/AppData/Local/Programs/Python/Python38/Lib/site-packages/rtbdata/xacro/franka_description/meshes/visual/link6.dae" responded with 404: File not found) NextJS 2 [index-0723cc3b940b78c7.js:194:40195](http://localhost:52000/_next/static/chunks/pages/index-0723cc3b940b78c7.js) Error: Could not load retrieve/C:\Users\inse9\AppData\Local\Programs\Python\Python38\Lib\site-packages\rtbdata\xacro\franka_description\meshes\visual\link7.dae: fetch for "http://localhost:52000/retrieve/C:/Users/inse9/AppData/Local/Programs/Python/Python38/Lib/site-packages/rtbdata/xacro/franka_description/meshes/visual/link7.dae" responded with 404: File not found) NextJS 2 [index-0723cc3b940b78c7.js:194:40195](http://localhost:52000/_next/static/chunks/pages/index-0723cc3b940b78c7.js) Error: Could not load retrieve/C:\Users\inse9\AppData\Local\Programs\Python\Python38\Lib\site-packages\rtbdata\xacro\franka_description\meshes\visual\hand.dae: fetch for "http://localhost:52000/retrieve/C:/Users/inse9/AppData/Local/Programs/Python/Python38/Lib/site-packages/rtbdata/xacro/franka_description/meshes/visual/hand.dae" responded with 404: File not found) NextJS 2 [index-0723cc3b940b78c7.js:194:40195](http://localhost:52000/_next/static/chunks/pages/index-0723cc3b940b78c7.js) Error: Could not load retrieve/C:\Users\inse9\AppData\Local\Programs\Python\Python38\Lib\site-packages\rtbdata\xacro\franka_description\meshes\visual\finger.dae: fetch for "http://localhost:52000/retrieve/C:/Users/inse9/AppData/Local/Programs/Python/Python38/Lib/site-packages/rtbdata/xacro/franka_description/meshes/visual/finger.dae" responded with 404: File not found) NextJS 2 [index-0723cc3b940b78c7.js:194:40195](http://localhost:52000/_next/static/chunks/pages/index-0723cc3b940b78c7.js) Error: Could not load retrieve/C:\Users\inse9\AppData\Local\Programs\Python\Python38\Lib\site-packages\rtbdata\xacro\franka_description\meshes\visual\finger.dae: fetch for "http://localhost:52000/retrieve/C:/Users/inse9/AppData/Local/Programs/Python/Python38/Lib/site-packages/rtbdata/xacro/franka_description/meshes/visual/finger.dae" responded with 404: File not found) NextJS 2 [index-0723cc3b940b78c7.js:194:40195](http://localhost:52000/_next/static/chunks/pages/index-0723cc3b940b78c7.js) Error: Could not load retrieve/C:\Users\inse9\AppData\Local\Programs\Python\Python38\Lib\site-packages\rtbdata\xacro\franka_description\meshes\visual\finger.dae: fetch for "http://localhost:52000/retrieve/C:/Users/inse9/AppData/Local/Programs/Python/Python38/Lib/site-packages/rtbdata/xacro/franka_description/meshes/visual/finger.dae" responded with 404: File not found) NextJS 2 [framework-37f5df078e1d84d6.js:9:69814](http://localhost:52000/_next/static/chunks/framework-37f5df078e1d84d6.js) Error: Could not load retrieve/C:\Users\inse9\AppData\Local\Programs\Python\Python38\Lib\site-packages\rtbdata\xacro\franka_description\meshes\visual\finger.dae: fetch for "http://localhost:52000/retrieve/C:/Users/inse9/AppData/Local/Programs/Python/Python38/Lib/site-packages/rtbdata/xacro/franka_description/meshes/visual/finger.dae" responded with 404: File not found)

I have tried with Python 3.8 and 3.9 and with the browsers: Firefox and Chrome on Windows 11. But same error appears.

How can I solve?

@oldgunlu
Copy link

Same Problem here

@oldgunlu
Copy link

Error in Terminal is

connection handler failed
Traceback (most recent call last):
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\legacy\protocol.py", line 959, in transfer_data
message = await self.read_message()
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\legacy\protocol.py", line 1029, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\legacy\protocol.py", line 1104, in read_data_frame
frame = await self.read_frame(max_size)
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\legacy\protocol.py", line 1165, in read_frame
extensions=self.extensions,
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\legacy\framing.py", line 68, in read
data = await reader(2)
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\asyncio\streams.py", line 679, in readexactly
await self._wait_for_data('readexactly')
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\asyncio\streams.py", line 473, in _wait_for_data
await self._waiter
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\asyncio\selector_events.py", line 801, in _read_ready__data_received
data = self._sock.recv(self.max_size)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

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

Traceback (most recent call last):
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\legacy\server.py", line 240, in handler
await self.ws_handler(self)
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\legacy\server.py", line 1189, in _ws_handler
)(websocket, websocket.path)
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\site-packages\swift\SwiftRoute.py", line 320, in serve
await self.expect_message(websocket, expected)
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\site-packages\swift\SwiftRoute.py", line 325, in expect_message
recieved = await websocket.recv()
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\legacy\protocol.py", line 568, in recv
await self.ensure_open()
File "C:\Users\n.Lu\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\legacy\protocol.py", line 935, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: no close frame received or sent

@oldgunlu
Copy link

I think it related to the issue of Swift, similar with:
#4

but I tried to using
from roboticstoolbox.backends.swift import Swift
and also tried to add
os.chdir(root_dir.anchor) in SwiftRoute.py and even switch back to Python 3.6

but unfortunately nothing works.
Hopefully it will be fixed soon.

@jonarriza96
Copy link

jonarriza96 commented Sep 21, 2023

Same here when trying to record a video. Without recording it works great. Browser: Firefox, OS: Ubuntu 20

@ningmimg
Copy link

@oldgunlu I have the same problem. Have you found any other viable alternatives?

@kappa95
Copy link
Author

kappa95 commented Oct 19, 2023

The pull request #52 solved the issue for me. Temporary solution: make that changes on your path.

@oldgunlu
Copy link

@kappa95 Problem solved, Thanks a lot !
@ningtianze you can try to make change, it works for me in windows: #52

@kongyuanchao
Copy link

same issues happened on Windows

@kanyunke
Copy link

kanyunke commented Oct 2, 2024

On windows, same problem, pull request #52 solved for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants