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
TypeError: arg.replace is not a function
at escapeArg (/var/www/html/node_modules/execa/lib/command.js:18:17)
at /var/www/html/node_modules/execa/lib/command.js:26:46
at Array.map ()
at getEscapedCommand (/var/www/html/node_modules/execa/lib/command.js:26:35)
at execa (/var/www/html/node_modules/execa/index.js:77:25)
at /var/www/html/index.js:25:22
at Layer.handle [as handle_request] (/var/www/html/node_modules/express/lib/router/layer.js:95:5)
at next (/var/www/html/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/var/www/html/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/var/www/html/node_modules/express/lib/router/layer.js:95:5)
The first argument of execa() must be a string (the command/binary) and the second argument must be an optional array of arguments. It appears that youtubedl.raw() returns an array, so this does not match how execa() is meant to be called.
The error message does not make this clear though, so I opened #468 to clarify this.
Error:
TypeError: arg.replace is not a function
at escapeArg (/var/www/html/node_modules/execa/lib/command.js:18:17)
at /var/www/html/node_modules/execa/lib/command.js:26:46
at Array.map ()
at getEscapedCommand (/var/www/html/node_modules/execa/lib/command.js:26:35)
at execa (/var/www/html/node_modules/execa/index.js:77:25)
at /var/www/html/index.js:25:22
at Layer.handle [as handle_request] (/var/www/html/node_modules/express/lib/router/layer.js:95:5)
at next (/var/www/html/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/var/www/html/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/var/www/html/node_modules/express/lib/router/layer.js:95:5)
My code:
The text was updated successfully, but these errors were encountered: