Failed to execute ‘json’ on ‘Response’: body stream already read
I am getting an error when I try to read a response twice:
I need the response in a form of text assigned to a cosnt
, e.g. (api_response.text()
) and then I need to pass the api_response.json()
to a function: