Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

CONNECT_TIMEOUT #142

Open
lyn1337 opened this issue Jan 8, 2021 · 4 comments
Open

CONNECT_TIMEOUT #142

lyn1337 opened this issue Jan 8, 2021 · 4 comments

Comments

@lyn1337
Copy link

lyn1337 commented Jan 8, 2021

Bevor you create a new issue:

- [ x ] I searched for similar issues and did not find one
- [ x ] I'm using the latest version available in the [Windows Store](https://www.microsoft.com/store/apps/9NW16X9JB5WV)

I'm submitting a...:

Bug report (I searched for similar issues and did not find one)

Current behavior:

Login fails with:
error

Environment:

App Version(s): 
v.0.30.0.0 <!-- Which version of the App are you using (e.g. v.0.2.0) -->

Windows 10 Version Number: <!-- https://en.wikipedia.org/wiki/Windows_10_version_history -->
- [ ] 1809
- [ ] 1803
- [ ] 1709
- [ ] 1703
- [ ] 1607
- [ ] 1511
- [ ] 1507
- [ ] Insider Build (build number: )
- [ ] Misc:
- [ X ] 20H2 

Device form factor:
- [ X ] Desktop
- [ ] Mobile
- [ ] Xbox
- [ ] Surface Hub

Where did you got the APP from?
- [ X ] [Windows Store](https://www.microsoft.com/store/apps/9NW16X9JB5WV)
- [ ] Self-build, using a provided release source
- [ ] Self-build, repo cloned at [dd.mm.yyy] <!-- When did you clone the repo! -->
- [ ] Misc, got it from... <!-- Please tell us your source! -->

@lyn1337
Copy link
Author

lyn1337 commented Jan 8, 2021

cur.log

[ERROR][08.01.2021 10:31:47]: [TcpConnection]: 2 try to connect to ||||.one failed: System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xad
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb
at XMPP_API.Classes.Network.TCP.TcpConnection.d__37.MoveNext() + 0x2cf

[INFO][08.01.2021 10:31:47]: [TcpConnection]: Starting delay between connection attempts...
[DEBUG][08.01.2021 10:31:48]: [TcpConnection]: Starting a connection attempt.
[ERROR][08.01.2021 10:31:51]: [TcpConnection]: 3 try to connect to ||||.one failed: System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xad
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb
at XMPP_API.Classes.Network.TCP.TcpConnection.d__37.MoveNext() + 0x2cf

[INFO][08.01.2021 10:31:51]: Started a reconnect timer for: ||||@||||.one
[DEBUG][08.01.2021 10:31:51]: [XmppConnection] CONNECTING -> ERROR: [ConnectionError] SOCKET_ERROR: Unknown, ERROR_CODE: CONNECT_TIMEOUT, ERROR_MESSAGE: A task was canceled.
[DEBUG][08.01.2021 10:31:51]: [TcpConnection] CONNECTING -> ERROR: [ConnectionError] SOCKET_ERROR: Unknown, ERROR_CODE: CONNECT_TIMEOUT, ERROR_MESSAGE: A task was canceled.
[INFO][08.01.2021 10:31:54]: Reconnecting account: ||||@||||.one
[DEBUG][08.01.2021 10:31:54]: [XmppConnection] ERROR -> CONNECTING:
[DEBUG][08.01.2021 10:31:54]: [TcpConnection] ERROR -> CONNECTING:
[DEBUG][08.01.2021 10:31:54]: [TcpConnection]: Starting a connection attempt.
[ERROR][08.01.2021 10:31:57]: [TcpConnection]: 1 try to connect to ||||.one failed: System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xad
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb
at XMPP_API.Classes.Network.TCP.TcpConnection.d__37.MoveNext() + 0x2cf

[INFO][08.01.2021 10:31:57]: [TcpConnection]: Starting delay between connection attempts...
[DEBUG][08.01.2021 10:31:58]: [TcpConnection]: Starting a connection attempt.
[ERROR][08.01.2021 10:32:01]: [TcpConnection]: 2 try to connect to ||||.one failed: System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xad
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb
at XMPP_API.Classes.Network.TCP.TcpConnection.d__37.MoveNext() + 0x2cf

[INFO][08.01.2021 10:32:01]: [TcpConnection]: Starting delay between connection attempts...
[DEBUG][08.01.2021 10:32:02]: [TcpConnection]: Starting a connection attempt.
[INFO][08.01.2021 10:32:04]: AppCenter analytics enabled.
[INFO][08.01.2021 10:32:04]: AppCenter crash reporting enabled.
[ERROR][08.01.2021 10:32:05]: Failed to calculate folder size for path: C:\Users\Lyn\Pictures\790FabianSauter.UWPXAlpha_s1c5dt7qckd0e!App\UWPX System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
at UWPX_UI_Context.Classes.DataTemplates.Controls.FolderSizeControlDataTemplate.<>c__DisplayClass7_0.<b__0>d.MoveNext() + 0x121

[ERROR][08.01.2021 10:32:05]: [TcpConnection]: 3 try to connect to ||||.one failed: System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xad
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb
at XMPP_API.Classes.Network.TCP.TcpConnection.d__37.MoveNext() + 0x2cf

[INFO][08.01.2021 10:32:05]: Started a reconnect timer for: ||||@||||.one
[DEBUG][08.01.2021 10:32:05]: [XmppConnection] CONNECTING -> ERROR: [ConnectionError] SOCKET_ERROR: Unknown, ERROR_CODE: CONNECT_TIMEOUT, ERROR_MESSAGE: A task was canceled.
[DEBUG][08.01.2021 10:32:05]: [TcpConnection] CONNECTING -> ERROR: [ConnectionError] SOCKET_ERROR: Unknown, ERROR_CODE: CONNECT_TIMEOUT, ERROR_MESSAGE: A task was canceled.

@COM8
Copy link
Member

COM8 commented Jan 9, 2021

Thanks for reporting and sharing the log!
I've got a few additional questions:

  • Are you trying to connect to a public XMPP server? If yes, which one?
  • Are you sure you set the correct port?
  • Are you able to connect with other clients like Dino, Gajim or Conversations?
  • Could you please try to disable the tcp connection timeout via the debug settings and then reconnect (see the GIF bellow).

enable_debug

@lyn1337
Copy link
Author

lyn1337 commented Jan 9, 2021

* Are you trying to connect to a public XMPP server? If yes, which one?

No.

* Are you sure you set the correct port?

Yes. (:xmpp)

* Are you able to connect with other clients like Dino, Gajim or Conversations?

Also, yes.

* Could you please try to disable the tcp connection timeout via the debug settings and then reconnect (see the GIF bellow).

Both enabled together did the trick!

@lyn1337 lyn1337 closed this as completed Jan 9, 2021
@lyn1337
Copy link
Author

lyn1337 commented Jan 9, 2021

Messages to my own account (or anyone's) don't seem to go out, encryption disabled for testing.

image
image
cur.log part with the same timestamp goes:

 [INFO][09.01.2021 11:44:18]: Enter down. 
 [DEBUG][09.01.2021 11:44:18]: Sending message (encrypted=False): test 
 [WARN][09.01.2021 11:44:18]: [XMPPConnection2]: Did not send message, due to connection state is DISCONNECTED
 <message from="|||||@||||||.one/UWPX_2023505800" to="||||@||||.one" type="chat">
 <body>test</body>
 <origin-id id="f5ad9530-8574-45c9-87e2-618b6aaaa835" xmlns="urn:xmpp:sid:0" />
 <request xmlns="urn:xmpp:receipts" />
 </message> 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants