node-fetch: Cannot calculate proper length in synchronous way. (node-fetch + form-data)

Error: Cannot calculate proper length in synchronous way.
      at FormData.getLengthSync (node_modules/form-data/lib/form_data.js:245:17)
      at node_modules/node-fetch/index.js:96:48
      at new Fetch (node_modules/node-fetch/index.js:49:9)
      at Fetch (node_modules/node-fetch/index.js:37:10)

This line causes the error: https://github.com/bitinn/node-fetch/blob/master/index.js#L96

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16

Commits related to this issue

Most upvoted comments

workaround has been added and released as v1.5.3

No response from form-data dev, I am going with option 3.