Ask coding questions

← Back to all posts
xhr.open not opening
ShivankChhaya

Line 69, file messages.html, we have it. xhr.open isn't opening the request, because it says xhr.send error: the object's state must be opened. But I'm calling xhr.open before that right? Or am I hallucinating? If I'm not, please tell me why the impossible seems to be happening.

Voters
ShivankChhaya
Comments
hotnewtop
ch1ck3n

wrong post

ShivankChhaya

@ch1ck3n your commenting on the wrong post

ch1ck3n

@ShivankChhaya ohh sorry

ShivankChhaya

@ch1ck3n its fine

Your first comment, was that for this or something else?

ch1ck3n

nice

you should use fetch() instead of xhr because it is easier

ShivankChhaya

@ch1ck3n ok?
Sorry if I sounded crazy, but I asked why the xhr wasn't opening.