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
{{ message }}
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
I'm trying to set the output binding name to $return to use the async function return type, using the code seen in #308 (comment) (because I couldn't find any documentation of the possible values) it throws an error
What did you expect should have happened?
It should've changed the out binding name to $return
What stacktrace or error message from your provider did you see?
Error: Binding not supported
at Function.<anonymous> (/home/alex/backend/node_modules/serverless-azure-functions/lib/shared/utils.js:113:39)
at step (/home/alex/backend/node_modules/serverless-azure-functions/lib/shared/utils.js:43:23)
at Object.next (/home/alex/backend/node_modules/serverless-azure-functions/lib/shared/utils.js:24:53)
at fulfilled (/home/alex/backend/node_modules/serverless-azure-functions/lib/shared/utils.js:15:58)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.z
Additional Data
Serverless Framework Version you're using: 2.28.7
Serverless Azure Plugin Version you're using: 2.1.0
Serverless: Finished building offline service
Serverless: Spawning process 'func host start'
Azure Functions Core Tools
Core Tools Version: 3.0.3331 Commit hash: 0b57b1647c5a385beb8f7d64fa0e534ad4c7555d
Function Runtime Version: 3.0.15371.0
[2021-03-08T05:06:59.764Z] The 'api-xml' function is in error: $return bindings must specify a direction of 'out'.
[2021-03-08T05:06:59.824Z] Worker process started and initialized.
which seems to set $return also into the in binding, the temp function folder function.json shows
This is a Bug Report
Description
I'm trying to set the output binding name to
$return
to use the async function return type, using the code seen in #308 (comment) (because I couldn't find any documentation of the possible values) it throws an errorIt should've changed the out binding name to
$return
Additional Data
It seems that here https://github.com/serverless/serverless-azure-functions/blob/master/src/shared/bindings.ts#L49
displayName
is$httptriggerout_displayname
while the closest available options are:The text was updated successfully, but these errors were encountered: