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

Requests not going through for some reason #10

Open
Dmitry2705 opened this issue Sep 17, 2022 · 10 comments
Open

Requests not going through for some reason #10

Dmitry2705 opened this issue Sep 17, 2022 · 10 comments

Comments

@Dmitry2705
Copy link

I did as instruction stated, the app shows ready, after that I start ubisoft connect, but it works same way as before, chat doesn't work and number of requests is 0. What it could be?

@TheRealAyCe
Copy link
Owner

TheRealAyCe commented Sep 18, 2022

I just tried v2 locally and it still works for me, so I guess the proxy functionality itself should still be fine.

Check the launcher_log.txt file for entries containing channel-service please and post it here. It does not work for the overlay btw, only for the Ubisoft Connect app.

You did not change the hosts file yourself, correct? (you're not supposed to, somebody had a problem related to that once)

@Dmitry2705
Copy link
Author

Dmitry2705 commented Sep 18, 2022

[ 4120] 2022-09-18 19:49:16 [ 1988] INFO BusSettings.cpp (74) Failed to disable start on Windows start.
[ 4120] 2022-09-18 19:49:18 [ 6140] INFO StartView.cpp (820)
[ 4120] 2022-09-18 19:49:18 [ 6140] INFO StartView.cpp (820)
[ 4120] 2022-09-18 19:49:19 [ 7976] INFO AccountOnlineLogin.cpp (307) Login Type: ticket, platform: Uplay.
[ 4120] 2022-09-18 19:49:20 [ 7976] INFO AccountStartupLogin.cpp (211) User: 43819ec0-c183-474d-a407-2cd13817f79d
[ 4120] 2022-09-18 19:49:22 [ 1464] ERROR JobHttp.cpp (153) Http status code is none for url https://channel-service.upc.ubi.com/v1/profiles/me/channels?membershipType=PENDING&spaceId=c0539e9c-90ab-4af8-a2d6-ef7b3883f430.
[ 4120] 2022-09-18 19:49:22 [ 1464] ERROR ChannelGetInvitesReceived.cpp (90) Get pending channels failed: 0; Response:
[ 4120] 2022-09-18 19:49:22 [ 1464] ERROR JobHttp.cpp (153) Http status code is none for url https://channel-service.upc.ubi.com/v1/profiles/me/channels?membershipType=ACTIVE&spaceId=c0539e9c-90ab-4af8-a2d6-ef7b3883f430.
[ 4120] 2022-09-18 19:49:22 [ 1464] ERROR ChannelGetUnreadMessages.cpp (69) Get channels failed: 0; Response:
[ 4120] 2022-09-18 19:49:22 [ 1464] ERROR JobHttp.cpp (168) Http status code is 410 for url https://wallet.ecom.ubi.com/api/v1/wallets/43819ec0-c183-474d-a407-2cd13817f79d?country=RU.
[ 4120] 2022-09-18 19:49:24 [ 1464] ERROR JobHttp.cpp (153) Http status code is none for url https://channel-service.upc.ubi.com/v1/profiles/me/channels?membershipType=ACTIVE&spaceId=c0539e9c-90ab-4af8-a2d6-ef7b3883f430.
[ 4120] 2022-09-18 19:49:24 [ 1464] ERROR ChannelsGet.cpp (112) Get channels failed: 0; Response:
[ 4120] 2022-09-18 19:49:26 [ 1464] ERROR JobHttp.cpp (153) Http status code is none for url https://channel-service.upc.ubi.com/v1/profiles/me/channels?membershipType=ACTIVE&spaceId=c0539e9c-90ab-4af8-a2d6-ef7b3883f430.
[ 4120] 2022-09-18 19:49:26 [ 1464] ERROR ChannelsGet.cpp (112) Get channels failed: 0; Response:
[ 4120] 2022-09-18 19:49:26 [ 1464] ERROR JobHttp.cpp (153) Http status code is none for url https://channel-service.upc.ubi.com/v1/profiles/me/channels?membershipType=ACTIVE&spaceId=c0539e9c-90ab-4af8-a2d6-ef7b3883f430.
[ 4120] 2022-09-18 19:49:26 [ 1464] ERROR ChannelsGet.cpp (112) Get channels failed: 0; Response:
[ 4120] 2022-09-18 19:49:26 [ 1464] ERROR ChannelGetInvitesSent.cpp (65) Failed getting channels for sent invites.
[ 4120] 2022-09-18 19:49:31 [ 1464] ERROR JobHttp.cpp (153) Http status code is none for url https://channel-service.upc.ubi.com/v1/profiles/me/channels?membershipType=ACTIVE&spaceId=c0539e9c-90ab-4af8-a2d6-ef7b3883f430.
[ 4120] 2022-09-18 19:49:31 [ 1464] ERROR ChannelsGet.cpp (112) Get channels failed: 0; Response:

Weird enough, bassically looks same way it does without app. Checked with Ubisoft connect chat. Hosts file untouched.
TLS 1.2 installed and seems to work (https://clienttest.ssllabs.com:8443/ssltest/viewMyClient.html shows it's fine). Maybe incorrect LAN settings but unsure (every check mark unchecked here). Tryed to reinstall Ubisoft Connect but that didn't help.
DNS flushed.

Seems like problem on my side but I don't know where it could be exactly...

@TheRealAyCe
Copy link
Owner

TheRealAyCe commented Sep 18, 2022

If you access these links manually, does the request counter increase?

Which browser are you using to test? To get accurate results for a TLS 1.2 check you must use Internet Explorer, as the other browsers afaik bring their completely own HTTP libraries.

Win7fix started as admin? (as it needs to change the hosts file)

Check the hosts file while the win7fix is running, is there an entry for the channel service?

@Dmitry2705
Copy link
Author

Win7fix started as admin? (as it needs to change the hosts file)

Check the hosts file while the win7fix is running, is there an entry for the channel service?

Yes,
127.0.0.1 channel-service.upc.ubi.com # ubisoftconnect-win7fix

If you access these links manually, does the request counter increase?

Which browser are you using to test? To get accurate results for a TLS 1.2 check you must use Internet Explorer, as the other browsers afaik bring their completely own HTTP libraries.

Weird, checked with Chrome and Internet Explorer, they don't increase counter. Checked with Brave and it did.
If that helps firewall disabled.

@TheRealAyCe
Copy link
Owner

Really strange. I additionally disabled all earlier versions, TLS 1.0, 1.1 and SSL too, but theoretically it should work even if you do none of that, not even activate TLS 1.2.

If you ping channel-service.upc.ubi.com while the app is running, do you see 127.0.0.1?

What does Internet Explorer/Chrome/Brave each show?

Are you using Java 8?

@Dmitry2705
Copy link
Author

I additionally disabled all earlier versions, TLS 1.0, 1.1 and SSL too

Alright, I changed that right now.

If you ping channel-service.upc.ubi.com while the app is running, do you see 127.0.0.1?

No, in my case it's 54.147.167.217

Are you using Java 8?

I have Java 8 and Java 16. Few other programs I have use Java 8 unless I'll make them target Java 16 explicitly so I assume this app uses 8 aswell.

What does Internet Explorer/Chrome/Brave each show?

Internet Explorer with: can't display page
Internet Explorer without: can't display page. I think I have pretty old version of it (8).

Google Chrome with: Connection not secure. And I can't proceed further. NET::ERR_CERT_COMMON_NAME_INVALID
Google Chrome without: displays text "{"code":16,"message":"Missing Authorization ticket","details":[]}"

Brave with: Connection is not private. And I can't proceed further. Interestingly enough before I disabled SSL and older TLS I could. NET::ERR_CERT_COMMON_NAME_INVALID. Interestingly enough before I disabled SSL and older TLS I could.
Brave without: displays text "{"code":16,"message":"Missing Authorization ticket","details":[]}"

@Dmitry2705
Copy link
Author

Tryed to upgrade IE to IE 11. If I disable everything except tls 1.2 it asks to enable it all again. In other case it's still can't display page. Counter still 0.

@TheRealAyCe
Copy link
Owner

TheRealAyCe commented Sep 19, 2022

The ping should go to 127.0.0.1 while the app is running. Otherwise there seems to be something wrong with the hosts file entry - maybe the file is corrupted due to an earlier editing in it or encoding mistake?

Please try what happens when you manually add the entry to the hosts file without the app active and access https://channel-service.upc.ubi.com/ in the browser. It should show a "page not found" (not even 404!) instead of "Can't display page" or something else.

Also keep in mind that you absolutely need to have the browsers/Ubisoft Connect closed before starting the app, as they will otherwise remember the IP address for https://channel-service.upc.ubi.com/ and will not correctly use the redirect defined in the hosts file.

The Java version should not even make a difference in this case, but I haven't tested Java 16 yet. Pretty sure it's using Java 8 if that's what most programs use by default.

Internet Explorer with the app should display a 404 page, as it can now access the server, but the server has no content for it.
Internet Explorer without the app should display "Can't display page, please activate TLS 1.0, 1.1, 1.2, etc", as it thinks the website is using something that isn't available (this is exactly the error the app tries to fix). Is that already the case for you?

Other browsers, that don't use the OS HTTPS libraries should show the content without the app. That seems to work as expected for you when not using the app.

When using the app, Internet Explorer and Ubisoft Connect just accept the self-signed certificate, but the other browsers will complain, as the certificate is self-signed, which does not actually guarantee any security - correct, as we are deliberately tricking the Win7 HTTPS library with a man-in-the-middle attack. However, the message we would expect is something like in Firefox: MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT, not something related to the domain name being invalid.

Can you give a screenshot of the certificate when the app is running in Chrome or Brave please?

@Dmitry2705
Copy link
Author

Otherwise there seems to be something wrong with the hosts file entry - maybe the file is corrupted due to an earlier editing in it or encoding mistake?

Notepad shows that encoding is UTF-8. I edited it very long time ago but restored backup after that, now it's basically clean except default # comments. Hmm.. I'll try to experiment with it later additionally, feels like hosts file ignored for some reason.

Please try what happens when you manually add the entry to the hosts file without the app active and access https://channel-service.upc.ubi.com/ in the browser. It should show a "page not found" (not even 404!) instead of "Can't display page" or something else.

Without app Chrome and Brave gave ERR_CONNECTION_REFUSED error, IE as before can't display page for some reason, I wonder why.

Also keep in mind that you absolutely need to have the browsers/Ubisoft Connect closed before starting the app, as they will otherwise remember the IP address for https://channel-service.upc.ubi.com/ and will not correctly use the redirect defined in the hosts file.

Yep, that exactly how I do it.

Internet Explorer with the app should display a 404 page, as it can now access the server, but the server has no content for it.
Internet Explorer without the app should display "Can't display page, please activate TLS 1.0, 1.1, 1.2, etc", as it thinks the website is using something that isn't available (this is exactly the error the app tries to fix). Is that already the case for you?

Without app yes. With app no.

However, the message we would expect is something like in Firefox: MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT, not something related to the domain name being invalid.

Understood. I don't have firefox installed right now, but I will try that tomorrow just to check that.

Can you give a screenshot of the certificate when the app is running in Chrome or Brave please?

Yes, of course. Any specific fields you need?
https://imgur.com/a/XDaIC9W
Interesting, there is brief period of time when chrome displays text "Couldn't resolve method", but after a minute it returns to that error.

@TheRealAyCe
Copy link
Owner

TheRealAyCe commented Sep 21, 2022

Thanks for all the info so far! I'm really interested in solving this - for some reason with networking stuff there are always some machines that behave strangely.

After thinking about it for a while, this seems to be the most likely cause:

Without app yes. With app no.

Maybe the TLS 1.2 enabling thing failed somehow? Can you visit other websites with IE?
I uploaded a reg file to "force" only TLS 1.2 for WinHTTP - maybe you made a mistake or forgot some entries, like "DefaultSecureProtocols"?
https://raw.githubusercontent.com/TheRealAyCe/ubisoftconnect-win7fix/main/tls12only.reg

Other stuff:

Notepad shows that encoding is UTF-8. I edited it very long time ago but restored backup after that, now it's basically clean except default # comments. Hmm.. I'll try to experiment with it later additionally, feels like hosts file ignored for some reason.

It could be that, for whatever reason, the hosts file is not immediately read once the program updates it, but is updated when you manually edit it.

Without app Chrome and Brave gave ERR_CONNECTION_REFUSED error, IE as before can't display page for some reason, I wonder why.

ERR_CONNECTION_REFUSED when the entry is manually added sounds good, it means that the requests to the domain name are correctly forwarded to the local PC on which no server is running, so no connection.

Please check pinging channel-service.upc.ubi.com once you have added the entry manually. It should give localhost then. So if that works correctly when editing manually, but not after starting the win7fix, a problem with the program editing the hosts file seems likely. Also check what IE shows.

You can also test manually editing the hosts file and adding a second entry to it (above the automatically added one) AFTER the app is green, but before starting Ubisoft Connect. Then do a ping check. Then try Ubisoft Connect. You would need to remove that entry again next time before starting the app, as it would otherwise be impossible for Java to find out which server to actually contact and forward the requests to. (duplicate entries in the hosts file should be fine)

127.0.0.1 channel-service.upc.ubi.com

Understood. I don't have firefox installed right now, but I will try that tomorrow just to check that.

You can, but it shouldn't be necessary. If you click "Advanced" in the warning page that Chrome/Brave display, it warns you similarly to this, right? https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/error-message-err-cert-common-name-invalid-in-google-chrome.jpg That seems normal, the browsers are doing the right thing.

Yes, of course. Any specific fields you need? https://imgur.com/a/XDaIC9W Interesting, there is brief period of time when chrome displays text "Couldn't resolve method", but after a minute it returns to that error.

The certificate seems fine.

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

2 participants