Skip to content
Advertisement

Azure spring boot function-how to pass trigger and input binding both to handleRequest method at same time?

JavaScript

getting below exception when I create tuple of Http trigger and blobinput and send it to handleRequest..

[2021-08-20T09:53:12.816Z] java.lang.UnsupportedOperationException: At the moment only Tuple-based function are supporting multiple arguments [2021-08-20T09:53:12.818Z] at

I need to send both inputs to handleRequest method… any clue how to achieve that?

Advertisement

Answer

Spent some time and the only way I could achieve that what you want is by using DTO class.

JavaScript

Then handler is easy

JavaScript

And function

JavaScript

I thin with Tuple are allowed only if you want to pass multiple Fluxs in doc

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement