Hello. I've created an Azure Function that essentially receives a request via an HTTP Trigger containing information in JSON, and this information is sent encrypted. My Function's role is to decrypt this information and save it in a queue created in Azure Storage Explorer. The Function is working fine; however, it's not saving all the information. Example: JSON Information { "status": "approved" }
However, when writing the above information to the storage queue, it only writes "Status" and not the entire information.
Function code below:
@app.route(route="cadastro/analise", auth_level=func.AuthLevel.ANONYMOUS)
@app.queue_output(arg_name="msg", queue_name="analise-cadastro", connection="AzureWebJobsStorage")
def analisar_cadastro(req: func.HttpRequest, msg: func.Out [func.QueueMessage]) -> func.HttpResponse:
try:
signature = req.headers.get("SIGNATURE")
payload = req.get_json()
x_real_ip = req.headers.get("X-Real-IP")
decoded_token = jwt.decode(signature, key=signature_key, algorithms=["HS256"])
msg.set(payload)
logging.info(f"Webhook received: {payload}")
return HttpResponse("Webhook received with success!")
Result in Azure Explorer: Using the first example of JSON sent, the return in Azure explorer displays:
Message Text: Status --> (instead of Status: Approved)
Does anyone know how to fetch the complete JSON information to Azure Explorer? Would it be recommended, before writing to Azure Explorer, to convert the JSON to a TXT, for example, and then write that generated string?"