Issue with using fetch to connect to API

I am able to use curl within my terminal to get my profile, camera list, and camera streams… however when I convert these into a fetch to be contacted from my NPM server I am receiving an http 200 status but a blank response on all API calls.
This is the fetch request:


const response = await fetch(
				method: "GET", // *GET, POST, PUT, DELETE, etc.
				mode: "cors", // no-cors, *cors, same-origin
				headers: {
					"Authorization": `PersonalAccessToken  ${this.apiKey}`,
					"Accept": "application/json",
					"Content-Type": "application/json",
		return response;

It appears the issue is the response is not converted into json format first. This fix worked for me:

const json = await response.json()
return json

Justin, Thank you for sharing the solution with us all!