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

BlockingIOError: [WinError 10035] 无法立即完成一个非阻止性套接字操作。 #316

Open
engchina opened this issue Feb 27, 2025 · 0 comments

Comments

@engchina
Copy link
Contributor

Hi,

I'm following the guide https://docs.dify.ai/plugins/quick-start/debug-plugin to deploy a plugin,

.env as below,

INSTALL_METHOD=remote
REMOTE_INSTALL_HOST=debug.dify.ai
REMOTE_INSTALL_PORT=5003
REMOTE_INSTALL_KEY=secret

while excuting python -m main

>python -m main
Failed to write data
Traceback (most recent call last):
  File "D:\anaconda3\envs\dify-plugins\Lib\site-packages\gevent\_socketcommon.py", line 725, in send
    return self._sock.send(data, flags)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
BlockingIOError: [WinError 10035] 无法立即完成一个非阻止性套接字操作。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\anaconda3\envs\dify-plugins\Lib\site-packages\dify_plugin\core\server\tcp\request_reader.py", line 67, in write
    self.sock.sendall(data.encode())
  File "D:\anaconda3\envs\dify-plugins\Lib\site-packages\gevent\_socketcommon.py", line 702, in sendall
    return _sendall(self, data_memory, flags)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\anaconda3\envs\dify-plugins\Lib\site-packages\gevent\_socketcommon.py", line 391, in _sendall
    timeleft = __send_chunk(socket, chunk, flags, timeleft, end)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\anaconda3\envs\dify-plugins\Lib\site-packages\gevent\_socketcommon.py", line 320, in __send_chunk
    data_sent += socket.send(chunk, flags)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\anaconda3\envs\dify-plugins\Lib\site-packages\gevent\_socketcommon.py", line 732, in send
    return self._sock.send(data, flags)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。

How to solve it? Or Is there anyway that I can debug the plugin locally?

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

1 participant