Hi,
I have an azure function which takes three arguments i.e arg1, arg2, arg3 and does some processing. Gives error if the arguments are invalid or None. Here is how the code looks like:
def main(req: func.HttpRequest) -> func.HttpResponse:
arg1 = req.params.get('arg1')
arg2 = req.params.get('arg2')
arg3 = req.params.get('arg3')
if (not arg1) or (not arg3) or (not arg2):
return func.HttpResponse(
f"Please provide valid arguments. Args receive: arg1: \
{arg1}, arg2: {arg2}, arg3 :{arg3} - Status:500",
status_code=500
)
process(arg1,arg2,arg3)
The azure function using activity is being called as follows:
but it gives an error as follows:
I have tried with Get method and providing arguments in headers. Can someone please help what could be the case? Could it be the way I am acessing these args in code the wrong way?