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

When I try to send a message to the worker thread, an error occurs #549

Closed
tocha688 opened this issue Apr 15, 2024 · 3 comments
Closed

When I try to send a message to the worker thread, an error occurs #549

tocha688 opened this issue Apr 15, 2024 · 3 comments
Labels

Comments

@tocha688
Copy link

tocha688 commented Apr 15, 2024

It is obvious that the message encapsulated internally is different from the data I sent, and I don't think this should happen. I need to communicate between the main thread and the worker thread. You should check if the content sent or received is an internal method, but you did not do so, or if you have customized a postMessage method

worker.postMessage({data:{}})
TypeError [Error]: String.prototype.startsWith called on null or undefined
    at startsWith (<anonymous>)
    at pathToFileURL (node:internal/url:1474:20)
    at getHandler (C:\Users\Administrator\.code\ccadmin\node_modules\piscina\dist\src\worker.js:62:64)
    at async C:\Users\Administrator\.code\ccadmin\node_modules\piscina\dist\src\worker.js:96:13
@metcoder95
Copy link
Member

Can you provide an
Minimum Reproducible Example to reproduce your issue?

Copy link

This issue has been marked as stale because it has been opened 30 days without activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label May 19, 2024
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants