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

XMLHTTPRequest does not work (Dartium only) #4599

Closed
larsbak opened this issue Aug 20, 2012 · 3 comments
Closed

XMLHTTPRequest does not work (Dartium only) #4599

larsbak opened this issue Aug 20, 2012 · 3 comments
Assignees
Milestone

Comments

@larsbak
Copy link

larsbak commented Aug 20, 2012

Loading dart/samples/newissues/newissues.html in Dartium generates an exception. Works great when translating the application to js.
Likely an HTML library problem.
//Lars
Dartium version 23.0.1234.0 (151225)

XMLHttpRequest cannot load https://code.google.com/feeds/issues/p/dart/issues/full?alt=json&can=new. Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
2Exception: Nothing to parse
Stack Trace: #­0 _JsonParser._error (dart:json:308:5)

­1 _JsonParser._parseValue (dart:json:128:13)

­2 _JsonParser._parseToplevel (dart:json:119:31)

­3 _JsonParser.parse (dart:json:72:58)

­4 JSON.parse (dart:json:4:29)

­5 requestJson.callback (file:///home/bak/dart/dart/samples/newissues/newissues.dart:44:28)

­6 _XMLHttpRequestUtils.get.<anonymous closure> (/mnt/data/b/build/slave/dartium-lucid64-full/build/src/dart/lib/dom/src/_XMLHttpRequestUtils.dart:8:18)

@vsmenon
Copy link
Member

vsmenon commented Aug 20, 2012

Lars: The sample is working for me.

Can you verify that navigating to "chrome://version" shows a Dart VM version of r10683 or later? That revision contains a fix for this issue:

http://code.google.com/p/dart/issues/detail?id=4481

which looks like the error you're hitting.


Set owner to @larsbak.
Added NeedsInfo label.

@DartBot
Copy link

DartBot commented Aug 22, 2012

This comment was originally written by [email protected]


Added this to the M1 milestone.

@larsbak
Copy link
Author

larsbak commented Aug 27, 2012

The bug has been fixed,
  Lars


Added Fixed label.

This issue was closed.
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

3 participants