question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in 7.1.1: adding request.field() fails if value is not Blob

See original GitHub issue

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 if value is not a Blob and options is undefined. The options parameter has to be omitted.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
ltxhhzcommented, May 29, 2022

@niftylettuce Hi, I’ve fixed the bug and hope to merge branches soon, thank you!🎉

0reactions
titanismcommented, May 31, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found