Skip to content Skip to sidebar Skip to footer

Error On Sending Post Request

I am having trouble figuring out why my code is not working. What I am tying to do is send a POST request to an online API that will also return JSON data. after it says, 'Searchin

Solution 1:

From this error:

Uncaught InvalidStateError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest':
The object's state must be OPENED.

I'd say you need to perform .open() first, and then .setRequestHeader()

https://jsfiddle.net/q6w12jae/

Solution 2:

BoardInfoURL is not defined, out of scope (See the var at the start):

var BoardInfoURL = "https://meshech.leankit.com/kanban/api/board/2847596743/searchcards";

Post a Comment for "Error On Sending Post Request"