You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to follow the FormData example from the readme. Here's my code:
let form = new FormData();
form.append("username", "username");
form.append("_password", "password");
return fetch(url.format(urlParts), { method: "POST", body: form });
But I get this error:
TypeError: Cannot read property 'length' of undefined
at C:\Users\...\node_modules\node-fetch\index.js:97:113
at new Fetch (C:\Users\...\node_modules\node-fetch\index.js:49:9)
at Fetch (C:\Users\...\node_modules\node-fetch\index.js:37:10)
at Promise.resolve.then.then.then (C:\Users\...\migrate.js:78:20)
at process._tickCallback (internal/process/next_tick.js:103:7)
The text was updated successfully, but these errors were encountered:
I'm trying to follow the FormData example from the readme. Here's my code:
But I get this error:
The text was updated successfully, but these errors were encountered: