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
I run test with command : npm test
and i receiver error: expected multipart SIPREC body
i was debuged and i saw error in file test/parser.js line 35
////
const segments = data.split(\n${delimiter});
const regex = /.Content-Type:\s+(.)\n.\n([\s\S.])$/;
const req = { payload: [] };
for (let i = 1; i < segments.length; i++) {
const arr = regex.exec(segments[i]);
if (!arr) {
continue;
}
req.payload.push({ type: arr[1], content: arr[2] });
}
///
arr alway null
so payload null and show error.
please help me. thank a alot.
The text was updated successfully, but these errors were encountered:
running npm test on the main branch works successfully for me. Perhaps you checked out the files such that line endings were changed or something? Please show the output of the failing test
I run test with command : npm test
and i receiver error: expected multipart SIPREC body
i was debuged and i saw error in file test/parser.js line 35
////
const segments = data.split(
\n${delimiter}
);const regex = /.Content-Type:\s+(.)\n.\n([\s\S.])$/;
const req = { payload: [] };
///
arr alway null
so payload null and show error.
please help me. thank a alot.
The text was updated successfully, but these errors were encountered: