ngx-translate / core

The internationalization (i18n) library for Angular
MIT License
4.5k stars 572 forks source link

HTTP failures browsing site with iPhone/IOS #1147

Open datazen opened 4 years ago

datazen commented 4 years ago

Current behavior

Http failure with iPhone/IOS is being reported in our error logs. (using stacktrace)

ERROR:
Http failure response for /assets/i18n/en.json: 0 Unknown Error

AGENT:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1

Expected behavior

No Http errors reported

How do you think that we should fix this?

Perhaps setup the same environment and use same user agent to re-create the issue.

Minimal reproduction of the problem with instructions

We have had this issue since converting to Angular 7 from AngularJS. Only happens when site is browsed using IPhone/IOS and is possibly intermittent. We have error reporting in place and the above is what gets reported. Why the failure I do not know.

Environment


  "dependencies": {
    "@angular/animations": "~8.2.11",
    "@angular/cdk": "~8.2.3",
    "@angular/common": "~8.2.11",
    "@angular/compiler": "~8.2.11",
    "@angular/core": "~8.2.11",
    "@angular/forms": "~8.2.11",
    "@angular/material": "^8.2.3",
    "@angular/platform-browser": "~8.2.11",
    "@angular/platform-browser-dynamic": "~8.2.11",
    "@angular/router": "~8.2.11",
    "@ng-bootstrap/ng-bootstrap": "^5.1.1",
    "@ngx-translate/core": "^11.0.1",
    "@ngx-translate/http-loader": "^4.0.0",
    "angular-gtag": "^1.0.3",
    "bootstrap": "^4.3.1",
    "core-js": "^2.5.4",
    "express": "^4.17.1",
    "hammerjs": "^2.0.8",
    "jquery": "^3.4.1",
    "moment": "^2.24.0",
    "ng2-truncate": "^1.3.17",
    "ngx-bootstrap": "^3.2.0",
    "ngx-moment": "^3.4.0",
    "path": "^0.12.7",
    "popper.js": "^1.16.0",
    "pusher-js": "^5.0.2",
    "rxjs": "~6.5.3",
    "stacktrace-js": "^2.0.1",
    "tslib": "^1.9.0",
    "zone.js": "~0.9.1"
  },

Browser:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1

For Tooling issues:
- Node version: 10.16.0
- Platform:  Heroku Platform (Linux)

cqzxliang commented 4 years ago

I have the same issue

jeffcann commented 2 years ago

I see the same thing, we're getting 100k+ reports every day with this error. All from Safari and Mobile Safari.

Angular 11.2.0 @ngx-translate/core 13.0.0 @ngx-translate/http-loader 6.0.0

wozniakm commented 1 year ago

Were you able to resolve that issue?

sorenjuul commented 1 year ago

I have the same issue. Any idea what to do?

dennisholmer commented 5 months ago

Same: @angular/core: 16.2.0 @ngx-translate/core: 15.0.0 @ngx-translate/http-loader: 8.0.0