Getting TypeError: Cannot read property 'name' of undefined while using form-data
+ 1
I am using node-fetch
and in my call I am using form-data
my code looks something like below
When I run this code, I am getting following error even before the call is made
How to fix this issue?
1 Answer
+ 2
This happens when some of the form value is undefined. I see in your code token
is a variable. Make sure that is not undefined.