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

Closed
opened 2026-02-16 10:17:47 -05:00 by yindo · 0 comments
Owner

Originally created by @engchina on GitHub (Feb 27, 2025).

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?

Originally created by @engchina on GitHub (Feb 27, 2025). Hi, I'm following the guide [https://docs.dify.ai/plugins/quick-start/debug-plugin](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?
yindo closed this issue 2026-02-16 10:17:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#26