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
Not able to invoke go serverless function using command
netlify functions:invoke hello-world
Seeing error
◈ "port" flag was not specified. Attempting to connect to localhost:8888 by default
Function name hello-world supplied but no matching function found in your functions folder, forcing you to pick a valid one...
? Pick a function to trigger (Use arrow keys)
› Error: Netlify CLI has terminated unexpectedly
This is a problem with the Netlify CLI, not with your application.
If you recently updated the CLI, consider reverting to an older version by running:
npm install -g netlify-cli@VERSION
You can use any version from https://ntl.fyi/cli-versions.
Please report this problem at https://ntl.fyi/cli-error including the error details below.
TypeError: Cannot read properties of undefined (reading 'value')
at ListPrompt.getCurrentValue (/opt/homebrew/lib/node_modules/netlify-cli/node_modules/inquirer/lib/prompts/list.js:121:53)
at MapSubscriber._next (/opt/homebrew/lib/node_modules/netlify-cli/node_modules/rxjs/internal/operators/map.js:49:35)
at Subscriber.next (/opt/homebrew/lib/node_modules/netlify-cli/node_modules/rxjs/internal/Subscriber.js:66:18)
at TakeSubscriber._next (/opt/homebrew/lib/node_modules/netlify-cli/node_modules/rxjs/internal/operators/take.js:54:30)
at Subscriber.next (/opt/homebrew/lib/node_modules/netlify-cli/node_modules/rxjs/internal/Subscriber.js:66:18)
at Interface.handler (/opt/homebrew/lib/node_modules/netlify-cli/node_modules/rxjs/internal/observable/fromEvent.js:22:28)
at Interface.emit (node:events:526:35)
at Interface.emit (node:domain:488:12)
at [_onLine] [as _onLine] (node:internal/readline/interface:416:12)
at [_line] [as _line] (node:internal/readline/interface:887:18)
System:
OS: macOS 14.0
CPU: (8) arm64 Apple M1
Binaries:
Node: 20.8.1 - /opt/homebrew/bin/node
npm: 10.1.0 - /opt/homebrew/bin/npm
Browsers:
Chrome: 118.0.5993.70
Safari: 17.0
npmGlobalPackages:
netlify-cli: 16.7.0
Describe the bug
Not able to invoke go serverless function using command
Seeing error
Steps to reproduce
Run commands
netlify functions:create hello-world -l go
netlify functions:invoke hello-world
Configuration
No response
Environment
The text was updated successfully, but these errors were encountered: