Skip to content

[Bug] Non-secure network connections disabled in Player Settings #484

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

Closed
Thaina opened this issue Dec 13, 2021 · 6 comments
Closed

[Bug] Non-secure network connections disabled in Player Settings #484

Thaina opened this issue Dec 13, 2021 · 6 comments

Comments

@Thaina
Copy link

Thaina commented Dec 13, 2021

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2022.1.0b1
  • External Dependency Manager version: 1.2.168
  • Source you installed EDM4U: UPM tgz
  • Features in External Dependency Manager in use: Android Resolver + VersionHandler
  • Plugins SDK in use: -
  • Platform you are using the Unity editor on: Windows

[REQUIRED] Please describe the issue here:

Weird error and warning while using EDM4U

image

It seem the config for using secure connection was needed to disabled to shut these error

Please answer the following, if applicable:

What's the issue repro rate? (eg 100%, 1/5 etc)

  • 100%

What happened? How can we make the problem occur?

  • Just install and open unity editor and also every action that trigger

I suspect that this below might be the cause?

var status = PortableWebRequest.DefaultInstance.Post(
"http://www.google-analytics.com/collect",

Any reason using http here though?

@Thaina Thaina added new to be triaged type: question labels Dec 13, 2021
@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@paulinon paulinon removed the new to be triaged label Dec 13, 2021
@paulinon
Copy link
Collaborator

Hi @Thaina,

In order to identify what's causing this, could you provide the complete steps needed to replicate the issue?

@paulinon paulinon added the needs-info Need information for the developer label Dec 14, 2021
@Thaina
Copy link
Author

Thaina commented Dec 14, 2021

@paulinon Just install 1.2.168 by tgz in 2022.1.0b1 android project then close and reopen project it will throw this error every time

I am not sure for your machine but I think default setting for Allow HTTP should be Not Allowed. So it should always cause this error unless it was set as anything but Not Allowed in your project

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Dec 14, 2021
@chkuang-g
Copy link
Collaborator

@Thaina

Thank you for reporting this issue. Seems like Unity 2022 added some security feature which blocks the non-https web request. I wonder why it used http in the first place.

At the meantime, as a workaround, I would recommend you to disable Analytics reporting from our editor tools for now. Here are all the settings:

  • EDM4U: Assets > External Dependency Manager > Version Handler > Settings > Enable Analytics Reporting
  • Firebase: Windows > Firebase > Documentation > Enable Analytics Reporting (At the very bottom)

@FranArjona
Copy link

I have followed the recommendation by @chkuang-g and it works well with Unity 2022.1.3f1.

However, in principle Unity is doing the right by blocking non-secure connections, so, please, someone should review the reason why this is using http instead of https, and upgrade it if possible.

@devWithKD
Copy link

I am facing similar issues, apart from the workaround provided above, is there any progress on this issue?

chkuang-g pushed a commit that referenced this issue Oct 7, 2022
- Version 1.2.174 - Oct 06, 2022
* General - Added tvOS support to the iOS resolver.
* General - Fixed #484 - Changed `EditorMeasurement` to use secure connection.
* Android Resolver - Fixed Android Resolver unable to resolve
  `mainTemplate.gradle` in Unity `2022.2+` or `2023.1+`.
chkuang-g pushed a commit that referenced this issue Oct 7, 2022
- Version 1.2.174 - Oct 06, 2022
* General - Added tvOS support to the iOS resolver.
* General - Fixed #484 - Changed `EditorMeasurement` to use secure connection.
* Android Resolver - Fixed Android Resolver unable to resolve
  `mainTemplate.gradle` in Unity `2022.2+` or `2023.1+`.
@googlesamples googlesamples locked and limited conversation to collaborators Nov 7, 2022
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

6 participants