FWIW, I was having this error when I was unintentionally generating a GET request to an endpoint which was expecting a Write-up request. Presumably which was just that specific servers technique for dealing with the problem. But parsing a from a string is strongly discouraged (MDN endorses towards building day https://raymondpkcxo.amoblog.com/how-jav-japanese-can-save-you-time-stress-and-money-56567921