-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Angular 2 app error in Firefox #12695
Comments
rc5 or 2.1.1? Pls add a minimal plunker with reproduction. |
rc5 on production, 2.1.1 on my local comp - the same problem |
cannot post on plunker - web api 2 services and database involved. |
@ElenaOrel you are getting XML from the server when used in FFox and JSON when used in Chrome. Probably difference in default headers sent. It doesn't sound like Angular-related issue. |
So what I can see is that FFox is sending different Accept headers ( Impossible to say more without code / minimal reproduction scenario but I assume that default Accept headers are different from one browser to another. @ElenaOrel you've got 2 options:
In any case I don't think there is much we can do on the Angular side so going to close this one for now. Happy to re-open if new info surfaces. |
import { Injectable } from '@angular/core';
} |
Pawel, thank you very much for your help. You pointed me in the right direction. Thank you! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Angular version: 2.0.0-rc.5, 2.1.1
Browser:Firefox
I have a problem with my Angular 2 application in Firefox.
No problems in Internet Explorer and Chrome.
My page with the problem:
http://www.asbuiltsolutions.com/AsbuiltQuotes.html?p=1
enter 415 and click Next Step.
the debug point is in the app.services.js,
function is APIRequestService.prototype.getPrice
I posted the question at
http://stackoverflow.com/questions/40388774/angular-2-on-promise-call-in-firefox
but have no answer.
Again - no problems with IE and Chrome.
The stack trace in FireFox:
An error occurred SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Stack trace:
Json</Json.parse@http://www.asbuiltsolutions.com/node_modules/@angular/http//bundles/http.umd.js:133:44
Body</Body.prototype.json@http://www.asbuiltsolutions.com/node_modules/@angular/http//bundles/http.umd.js:1118:24
APIRequestService.prototype.extractData@http://www.asbuiltsolutions.com/app/app.services.js:78:20
ZoneDelegate.prototype.invoke@http://www.asbuiltsolutions.com/node_modules/zone.js/dist/zone.js:203:19
NgZoneImpl/this.inner<.onInvoke@http://www.asbuiltsolutions.com/node_modules/@angular/core//bundles/core.umd.js:9245:36
ZoneDelegate.prototype.invoke@http://www.asbuiltsolutions.com/node_modules/zone.js/dist/zone.js:202:19
Zone.prototype.run@http://www.asbuiltsolutions.com/node_modules/zone.js/dist/zone.js:96:24
scheduleResolveOrReject/<@http://www.asbuiltsolutions.com/node_modules/zone.js/dist/zone.js:462:52
ZoneDelegate.prototype.invokeTask@http://www.asbuiltsolutions.com/node_modules/zone.js/dist/zone.js:236:23
NgZoneImpl/this.inner<.onInvokeTask@http://www.asbuiltsolutions.com/node_modules/@angular/core//bundles/core.umd.js:9236:36
ZoneDelegate.prototype.invokeTask@http://www.asbuiltsolutions.com/node_modules/zone.js/dist/zone.js:235:23
Zone.prototype.runTask@http://www.asbuiltsolutions.com/node_modules/zone.js/dist/zone.js:136:28
drainMicroTaskQueue@http://www.asbuiltsolutions.com/node_modules/zone.js/dist/zone.js:368:25
ZoneTask/this.invoke@http://www.asbuiltsolutions.com/node_modules/zone.js/dist/zone.js:308:25
The text was updated successfully, but these errors were encountered: