[GH-ISSUE #1062] sftp error #616

Closed
opened 2026-02-27 00:00:16 +03:00 by kerem · 4 comments
Owner

Originally created by @blue-bird1 on GitHub (Jan 2, 2019).
Original GitHub issue: https://github.com/electerm/electerm/issues/1062

Electerm version:

26.10

Operating system(linux, macos, or windows7/8/10?):

windows10

Expected Behavior

sftp available

Current Behavior

Will be wrong when the terminal is open

Possible Solution

Just need to restart because this is due to unexpected behavior

Steps to Reproduce

1.open a ssh. wait it timeout error
2.open sftp, unavailable
3.reload
4.Sftp is still unavailable

Context (Environment)

Detailed Description

When opening a timeout terminal sftp will cause WebSocket is already in CLOSING or CLOSED state.
If reload now, componentWillUnmount that will trigger the sftp component. will cause WebSocket is already in CLOSING or CLOSED state.
in new terminal this.initData().->this.localList() will cause WebSocket is already in CLOSING or CLOSED state.
Should be accidentally reused for closed websocket

Suggestions?

Originally created by @blue-bird1 on GitHub (Jan 2, 2019). Original GitHub issue: https://github.com/electerm/electerm/issues/1062 <!--- Provide some basic info --> ## Electerm version: 26.10 ## Operating system(linux, macos, or windows7/8/10?): windows10 ## Expected Behavior <!--- Tell me what should happen --> sftp available ## Current Behavior <!--- Tell me what happens instead of the expected behavior --> Will be wrong when the terminal is open ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> Just need to restart because this is due to unexpected behavior ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1.open a ssh. wait it timeout error 2.open sftp, unavailable 3.reload 4.Sftp is still unavailable ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> When opening a timeout terminal sftp will cause `WebSocket is already in CLOSING or CLOSED state`. If reload now,` componentWillUnmount` that will trigger the sftp component. will cause `WebSocket is already in CLOSING or CLOSED state`. in new terminal `this.initData()`.->`this.localList()` will cause `WebSocket is already in CLOSING or CLOSED state`. Should be accidentally reused for closed websocket ## Suggestions? <!--- Not a bug report, just some thoughts or suggestions? It is totally OK and welcome too -->
kerem 2026-02-27 00:00:16 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@zxdong262 commented on GitHub (Apr 16, 2019):

Should be fixed now, feel free to reopen it if you still experience this.

<!-- gh-comment-id:483571459 --> @zxdong262 commented on GitHub (Apr 16, 2019): Should be fixed now, feel free to reopen it if you still experience this.
Author
Owner

@blue-bird1 commented on GitHub (Apr 27, 2019):

in 0.27.12 Still have this problem.
electerm.0.27.12-465b468a449339cf6565e53f1b2c446ae6c7bf33.js:16 WebSocket is already in CLOSING or CLOSED state. Vo.r.s @ electerm.0.27.12-465b468a449339cf6565e53f1b2c446ae6c7bf33.js:16

<!-- gh-comment-id:487278641 --> @blue-bird1 commented on GitHub (Apr 27, 2019): in 0.27.12 Still have this problem. `electerm.0.27.12-465b468a449339cf6565e53f1b2c446ae6c7bf33.js:16 WebSocket is already in CLOSING or CLOSED state. Vo.r.s @ electerm.0.27.12-465b468a449339cf6565e53f1b2c446ae6c7bf33.js:16`
Author
Owner

@zxdong262 commented on GitHub (Nov 15, 2019):

@blue-bird1 How about now?

<!-- gh-comment-id:554227488 --> @zxdong262 commented on GitHub (Nov 15, 2019): @blue-bird1 How about now?
Author
Owner

@blue-bird1 commented on GitHub (Nov 15, 2019):

It looks like it’s ok.

<!-- gh-comment-id:554393585 --> @blue-bird1 commented on GitHub (Nov 15, 2019): It looks like it’s ok.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#616
No description provided.