Post API is not working giving error Unexpected token < in JSON at position 0

this is the API call export const socialPostUpdateBio = (publicKey,sig,about)=>{ let data= “pub=”+ publicKey+ “&sig=”+ sig.sig+ “&about=”+about console.log(‘====’,data) fetch(‘https://endpoint/postUpdateBio’, { method: ‘POST’, headers: new Headers({ “Content-Type”: “application/x-www-form-urlencoded”, // <– Specifying the Content-Type Accept: “application/json” }), body:data }).then((response) => response.json()) .then((responseJson) => { console.log(“New post updateBio”,responseJson); return responseJson.movies; }) .catch((error) => { console.error(error); }); } this…

Details