yokawasa / azure-functions-python-samples

Azure Functions Python Sample Codes. NOTE: The project, hosted in a repository, is no longer actively maintained by its creators or contributors. There won't be any further updates, bug fixes, or support from the original developers in the project.
MIT License
392 stars 181 forks source link

Azure functions || python httptrigger || client before deployment || error posting file #31

Closed ElanReep closed 5 years ago

ElanReep commented 5 years ago

error [12/09/2019 15:25:33] Error writing message type InvocationRequest to workerId: 44de9e70-9290-4fcb-a8e2-0a5d188e2f9a [12/09/2019 15:25:33] System.Private.CoreLib: Error sending from server.

Post req from postman with File Key imgfile includeded in body - getting server error and the req never gets to the function #####################

import logging import azure.functions as func

def main(req: func.HttpRequest) -> func.HttpResponse:

logging.info('Python HTTP trigger function processed a request.')

decodeType = req.form['decodeType']

imgfile = req.files['imgfile']
.......
yokawasa commented 5 years ago

@ElanReep First of all, please read this. You can find a workaround using base64 as well.

Secondly, file uploading to httptrigger may cause unexpected timeout issues as it may be long-running. Please read this. You can find a workaround.