Skip to content

DCPError: cannot send message on closed connection #328

@philippedistributive

Description

@philippedistributive

Issue type

Bug

How did you install PythonMonkey?

None

OS platform and distribution

No response

Python version (python --version)

No response

PythonMonkey version (pip show pythonmonkey)

No response

Bug Description

Sometimes job-launch.py gets

ready state change: exec
ready state change: init
ready state change: preauth
ready state change: deploying
ready state change: listeners
ready state change: compute-groups
ready state change: uploading
Traceback (most recent call last):
File "/home/philippe/.pyenv/versions/3.11.7/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/home/philippe/.pyenv/versions/3.11.7/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/philippe/.pyenv/versions/3.11.7/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/philippe/Sources/python-launch-job/node_modules/dcp-client/index.py", line 103, in load_dcp_client
cb_retval = await callback()
^^^^^^^^^^^^^^^^
File "/home/philippe/Sources/python-launch-job/./job-launch.py", line 21, in run_job
results = await job.exec();
^^^^^^^^^^^^^^^^
pythonmonkey.SpiderMonkeyError: Error in file /home/philippe/Sources/python-launch-job/node_modules/dcp-client/dist/dcp-client-bundle.js line 4178 > eval, on line 22, column 5:
DCPError: cannot send message on closed connection
Stack Trace:
DCPError@webpack://dcp/./src/common/dcp-error.js?:22:5
Connection530$$send@webpack://dcp/./src/protocol/connection.js?:1182:13
asyncDcpMessage$$send@webpack://dcp/./src/protocol/dcp-message.js?:58:26
safeSliceUpload@webpack://dcp/./src/dcp-client/job/upload-slices.js?:47:35
async
sliceUploadLogic@webpack://dcp/./src/dcp-client/job/upload-slices.js?:134:28
addSlices@webpack://dcp/./src/dcp-client/job/upload-slices.js?:221:26
exec@webpack://dcp/./src/dcp-client/job/index.js?:1005:32

Standalone code to reproduce the issue

No response

Relevant log output or backtrace

No response

Additional info if applicable

No response

What branch of PythonMonkey were you developing on? (If applicable)

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions