Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Crashing on XHR request #11077

Closed
ariya opened this issue Feb 17, 2013 · 1 comment
Closed

Crashing on XHR request #11077

ariya opened this issue Feb 17, 2013 · 1 comment

Comments

@ariya
Copy link
Owner

ariya commented Feb 17, 2013

ditesh.k...@gmail.com commented:

Which version of PhantomJS are you using? Tip: run 'phantomjs --version'.

1.8.1

What steps will reproduce the problem?

  1. Run the following script:

var page = require('webpage').create();

page.onError = function(msg, trace) {
console.log(JSON.stringify(trace));
};

page.onResourceRequested = function(res) {
console.log("requested: " + JSON.stringify(res));
};

page.onResourceReceived = function(res) {
console.log("received: " + JSON.stringify(res));
};

page.open("http://walmart.com", function (status) {
console.log("done");
phantom.exit();
});

  1. PhantomJS crashes.

What is the expected output? What do you see instead?

It shouldn't crash. It crashes.

Which operating system are you using?

Fedora Linux 16.

Did you use binary PhantomJS or did you compile it from source?

Binary PhantomJS.

Please provide any additional information below.

It seems to crash when making the following XHR:

{"headers":[{"name":"X-Requested-With","value":"XMLHttpRequest"},{"name":"User-Agent","value":"Mozilla/5.0 (Unknown; Linux i686) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.8.1 Safari/534.34"},{"name":"Accept","value":"/"},{"name":"Referer","value":"http://www.walmart.com/"}],"id":55,"method":"GET","time":"2013-02-17T08:23:14.791Z","url":"http://www.walmart.com/__ssobj/track?event=pageview_homepage&value=&x=1361135571286-1"}

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #1077.
🌟   1 people had starred this issue at the time of migration.

@vitallium
Copy link
Collaborator

vitaliy....@gmail.com commented:

 

 
Metadata Updates

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants