Bug in 7.1.1: adding request.field() fails if value is not Blob
See original GitHub issueTrying 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 if value
is not a Blob
and options
is undefined
. The options parameter has to be omitted.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:6 (1 by maintainers)
Top Results From Across the Web
ksql/CHANGELOG.md at master · confluentinc/ksql - GitHub
INSERT fails when serializing Proto/Avro nested Structs (#9038) (cd6cbf2) ... ksql: allow migrations tool to run connector commands with IF [NOT] EXISTS ...
Read more >Node.js v19.3.0 Documentation
If the function has not been called exactly exact times when tracker.verify() is called, then tracker.verify() will throw an error. import assert from...
Read more >REDCap-Changelog_9.2.1.docx
Bug fix: When attempting to upload a CSV import file for Automated Survey Invitations on the Online Designer, it would fail with no...
Read more >Known Issues and Limitations in CDH 6.3.0 | 6.x
Log in to Cloudera Manager Admin Console. Select Clusters > Impala, and then click the Configuration tab. Type java in the search field...
Read more >Release Notes for Couchbase Server 7.1
Potential for request stall if stream operator fails to notify request that it has terminated ... Couchbase Server 7.1.1 was released in July...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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