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.

Warn if `formData` hash values are not strings, to prevent `source.on is not a function`

See original GitHub issue

In request/request#1495, the example code gets an error like source.on is not a function because one of the values in the formData has for a request or request-promise options hash is not a string.

The form-data module should detect this error and tell the user to ensure all formdata hash values are strings, or writeStreams, or whatever else is valid.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

7reactions
alexindigocommented, Jun 13, 2017

You said, you’re no longer interested in this issue. So it was logical to close it. Please let me know if/when you want to get back to it. Thank you.

2reactions
nhooeycommented, Jun 13, 2017

Thanks @alexindigo!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: source.on is not a function · Issue #2366 - GitHub
I'm trying to POST an array of values to a HTTP endpoint, and this is the error I receive: TypeError: source.on is not...
Read more >
How can I solve source.on is not a function when using form ...
When I call the code from postman, I find this error "message": "source.on is not a function". I add return to see the...
Read more >
Invoke-WebRequest (Microsoft.PowerShell.Utility)
When creating the $Form HashTable, the key names are used as form field names. By default, the values of the HashTable are converted...
Read more >
jQuery.ajax() | jQuery API Documentation
A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with...
Read more >
Changelog - Cypress Documentation
The .invoke() command now throws an error if the invoked function returns a ... Fixed an issue where cy.origin() would not prevent users...
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