-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I was working with this repo and got an error that said "res.txt() is not a function". After debugging a bit, I eventually changed 'res.txt()' to 'res.text()' and this fixed my issue. Is it possible that this is a typo?
It's in file index.js in the function unsuccessfulResponseCheck(), on line 976. Here's a snippet of the code:
const e = new Error();
e.statusCode = res.status;
const body = util.isJsonResponse(res) ? res.json() : res.txt();
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working