This gives me an error saying it was unable to parse the json. Unexpected token <. I went through the error and found the headers, and the url. Everything looks okay.
I'm wondering if GOT is doing something funky with the redirects or something is happening under the hood. I'm going to start a fresh project and see if I can figure out what happened.
I'm really confused as to what's going on.
Upgraded a bunch of packages, including this one to the latest version.
trying to just perform a simple test with the API results in the body coming back as my site's homepage HTML.
For example;
This gives me an error saying it was unable to parse the json. Unexpected token <. I went through the error and found the headers, and the url. Everything looks okay.
However if I just run the following simple axios request, everything works as expected.
I'm wondering if GOT is doing something funky with the redirects or something is happening under the hood. I'm going to start a fresh project and see if I can figure out what happened.
Any ideas?