Closed schnuet closed 2 years ago
I had the same issue and I've downgraded to 7.0.2
as a work-around for now
Can we get a PR to fix this?
I still can experience the same bug in latest version, v7.1.1. Is there a workaround or a fix planned?
Any news?
@niftylettuce Hi, I've fixed the bug and hope to merge branches soon, thank you!🎉
Released in v7.1.4 to npm, thank you @ltxhhz
https://github.com/visionmedia/superagent/releases/tag/v7.1.4
Trying to add a field to a request (
request.field('keyname', 'fielddata');
) fails in 7.1.1 on Google Chrome and generates the following error:failed to execute 'append' on 'formdata': parameter 2 is not of type 'blob'.
Culprit seems to be this line: https://github.com/visionmedia/superagent/blob/84206c75214e20bbc688d0645880696ecd773c27/src/request-base.js#L463
Calling
FormData.append(name, value, options);
does not seem to work ifvalue
is not aBlob
andoptions
isundefined
. The options parameter has to be omitted.