Unexpected ParseError
when using afterResponse
with json
#761
Labels
bug
Something does not work as it should
🎁 Rewarded on Issuehunt
This issue has been rewarded on Issuehunt
✭ help wanted ✭
Milestone
Unexpected parse error thrown by got in specific case described below.
How to reproduce:
json:true
Unexpected parse error will be thrown.
Details:
response.body = JSON.parse(response.body);
)response.body
is already parsed to json object (second pase throws error)await getNewToken()
.getNewToken
is using another got instance to obtain token. Default optionjson
is true for both got instances. No other differences between docs and my code.The text was updated successfully, but these errors were encountered: