I'm getting response as empty by checking Object.keys(response)
it returns empty array but on expanding the response it looks like what shown below. Can someone help me to understand this?
This is the response:
Response
{
type: 'basic',
url: 'https://us-west-2/fd…d=4ed89588-409a-4b5a-9d32-b04665818797&v=2.332.19',
redirected: false,
status: 400,
ok: false,
…}
body: (...)bodyUsed: falseheaders: Headers {}ok: falseredirected: falsestatus: 400statusText: ""type:
"basic"url: "https://us-west-2.e2e./fdx/v2/accounts/2a8eb2ce-cf2f-4301-b730-c09f7dd57fa4?authType=ofx2&consentAgreed=false&consentForReauth=false&country_code=US&flowId=c0be9de2-1034-4826-9f83-4b2d9e69b181&flow_name=EditConnection&intuit_apikey=preprdakyresw7JPdK9pAVi7FwnK41H8sw1W47M2&intuit_offeringid=&=fde0bdf6-6a94-4af9-834e-d17509db1aa9&isRealmContext=false&isTestReCaptcha=true&locale=en_US&providerId=4ed89588-409a-4b5a-9d32-b04665818797&v=2.332.19"[[Prototype]]:
Response
The response you're seeing is not an empty JSON object but rather a Response object from the Fetch API or a similar HTTP request. This object contains metadata about the request, such as the URL, status code, headers, etc., but it does not directly contain the response body as a JSON object unless you explicitly parse it.