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

connect ETIMEDOUT 172.217.13.234:443 - Even after analytics are off #19259

Closed
14 tasks
vjangari opened this issue Oct 29, 2020 · 13 comments · Fixed by #19262
Closed
14 tasks

connect ETIMEDOUT 172.217.13.234:443 - Even after analytics are off #19259

vjangari opened this issue Oct 29, 2020 · 13 comments · Fixed by #19262
Assignees
Milestone

Comments

@vjangari
Copy link

🐞 Bug report

Command (mark with an x)

  • new
  • [X ] build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Description

A clear and concise description of the problem...

ng build --prod -> build trying to connect google server despite of switch off analytics
ng analytics off
also we tried angular.json file

connect ETIMEDOUT 172.217.13.234:443

@alan-agius4
Copy link
Collaborator

@vjangari,

Can you please provide the output of ng version?

@vjangari
Copy link
Author

image

@vjangari
Copy link
Author

vjangari commented Oct 29, 2020

ng build is working fine. However ng build --prod is failing on CI server with error connect ETIMEDOUT 172.217.13.234:443 after creating build artifacts

@alan-agius4
Copy link
Collaborator

alan-agius4 commented Oct 29, 2020

Likely this is related to the new fonts optimizations which requires internet access during the build. Can you confirm that you are referencing Google fonts and/or icons in your html file?

We should be showing a more actionable error in this case.

@alan-agius4 alan-agius4 added the freq1: low Only reported by a handful of users who observe it rarely label Oct 29, 2020
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Oct 29, 2020
@vjangari
Copy link
Author

vjangari commented Oct 29, 2020

Yes I am using below link
`
link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" rel="stylesheet"
link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"

`
Same build is working fine with below dev dependencies. But not with rc1 versions

"@angular-devkit/build-angular": "0.1100.0-next.5",
"@angular/cli": "11.0.0-next.5",
"@angular/compiler-cli": "11.0.0-next.5",

@alan-agius4
Copy link
Collaborator

In case your build server don't have access to internet, you'd want to disable the inline fonts optimization.

This can be done by via the optimization option in your browser builder configuration.

- "optimization": true,
+ "optimization": {
+   "styles": true,
+   "scripts": true,
+   "fonts": {
+     "initial": false
+   }
+ },

@vjangari
Copy link
Author

vjangari commented Oct 30, 2020

Getting below error
Schema validation failed with the following errors:
Data path ".optimization" should be boolean.

@alan-agius4
Copy link
Collaborator

Can you share the build section of your angular.json?

@vjangari
Copy link
Author

"production": { "fileReplacements": [ { "replace": "src/environments/environment.ts", "with": "src/environments/environment.prod.ts" } ], "optimization": true, "outputHashing": "all", "sourceMap": false, "namedChunks": false, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true "extraWebpackConfig": "webpack.prod.config.js" },

@alan-agius4
Copy link
Collaborator

Looks like you are not using an official Angular CLI builder.

Kindly open an issue in the issue tracker of 3rd party builder.

@vjangari
Copy link
Author

ok. Sure. I am trying Module Federation with webpack 5 support. I will open ticket in corresponding repo. When can we expect official support for webpack 5 in angular cli?

@alan-agius4
Copy link
Collaborator

Experimental opt-in support for Webpack version 5 have been added since v11.0.0-next.3.

See #18820 for more information.

For module federation support kindly subscribe to #17556

filipesilva pushed a commit that referenced this issue Nov 2, 2020
filipesilva pushed a commit that referenced this issue Nov 2, 2020
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants