Luka
Sevoral
I fix seroval errors easily but I just used JSON.stringify on server and then parsed it on the client. but I wanted to know more about it. I really typed Sevoral LoL. Thanks @Brendonovich, I am working with mongodb so it might be giving me error because of ObjectId's and other types.
9 replies
Busboy "missing content-type" error
It works I do get the headers as object but busboy has this type of check which should be pass it without error but it still throws the error
module.exports = (cfg) => {
if (typeof cfg !== 'object' cfg === null)
cfg = {};
if (typeof cfg.headers !== 'object'
cfg.headers === null
|| typeof cfg.headers['content-type'] !== 'string') {
throw new Error('Missing Content-Type');
}
return getInstance(cfg);
};
4 replies