Closed mj12albert closed 5 years ago
Is this from the incoming request, or from a saved tape?
Incoming requests always have at least an empty body (https://github.com/ijpiantanida/talkback/blob/master/src/server.js#L22)
And tapes are expected to always have the body
property, at least set to an empty string.
I see, this is from the incoming request. (trying to save a tape)
so it must be something wrong with the data in the response body... 🤔
Hi @mj12albert. It turns out there was a problem with empty requests after all.
I just published v1.8.1 with a fix.
Getting this error when trying to record a get request with no body
I think its from here? https://github.com/ijpiantanida/talkback/blob/master/src/tape.js#L69
JSON.parse
error whenthis.req.body
isundefined