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
Describe the bug
Trying to build functionality to allow users to upload files using copilot studio chatbot. Currently, facing issues while trying to launch webpart on localhost. Exact error shared below : -
AssertionError [ERR_ASSERTION]: Handler [handler-0 on GET /api/azurestorage/uploadsastoken] is missing a third argument (the "next" callback) but is not an async function. Middleware handlers can be either async/await or callback-based.Callback-based (non-async) handlers should accept three arguments: (req, res, next). Async handler functions should accept maximum of 2 arguments: (req, res).
AssertionError [ERR_ASSERTION]: Handler [handler-0 on GET /api/azurestorage/uploadsastoken] is missing a third argument (the "next" callback) but is not an async function. Middleware handlers can be either async/await or callback-based.Callback-based (non-async) handlers should accept three arguments: (req, res, next). Async handler functions should accept maximum of 2 arguments: (req, res).
AssertionError [ERR_ASSERTION]: Handler [handler-0 on GET /api/azurestorage/uploadsastoken] is missing a third argument (the "next" callback) but is not an async function. Middleware handlers can be either async/await or callback-based.Callback-based (non-async) handlers should accept three arguments: (req, res, next). Async handler functions should accept maximum of 2 arguments: (req, res).
Describe the bug
Trying to build functionality to allow users to upload files using copilot studio chatbot. Currently, facing issues while trying to launch webpart on localhost. Exact error shared below : -
AssertionError [ERR_ASSERTION]: Handler [handler-0 on GET /api/azurestorage/uploadsastoken] is missing a third argument (the "next" callback) but is not an async function. Middleware handlers can be either async/await or callback-based.Callback-based (non-async) handlers should accept three arguments: (req, res, next). Async handler functions should accept maximum of 2 arguments: (req, res).
We are referencing the below Github Component to build this functionality : -
https://github.com/microsoft/CopilotStudioSamples/tree/master/BuildYourOwnCanvasSamples/2.location-and-file-uploading
Can you please assist with next steps.
Happy to get on a call and discuss.
Expected behavior
The file upload button should appear on copilot studio chatbot that helps in uploading file directly to azure blob storage.
Screenshots
The text was updated successfully, but these errors were encountered: