You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When running the server with -r and -a flags recording file body is empty #16
hey, Thanks for the project, it looks great. but when i running the server with recording and save-headers flags I get the file (response) body object = null : { "statusCode": 200, "headers": { "date": "Wed, 28 Apr 2021 08:53:00 GMT", "content-type": "application/json; charset=utf-8", ... }, "body": null }
if I running the server with recording and without the "save-headers" flag then the file contains correct "body" value.
i think in recorder.js when this condition data && ext === 'json' is true then
1 - data = JSON.parse(data.toString('utf8'));
2 - data now is Object ==> data instanceof Buffer ? (isString ? data.toString('utf8') : data.toString('base64')) : null
will return null.
Activity
dennisbcloud commentedon May 6, 2021
i think in recorder.js when this condition
data && ext === 'json'is true then1 -
data = JSON.parse(data.toString('utf8'));2 - data now is Object ==>
data instanceof Buffer ? (isString ? data.toString('utf8') : data.toString('base64')) : nullwill return null.
i dont sure what should be here.
sinedied commentedon May 7, 2021
Thanks, I'll look into it.
HarryF514 commentedon Apr 19, 2022
facing same issue here. Did this get fixed?