question

Adrian-5124 avatar image
0 Votes"
Adrian-5124 asked SumanthMarigowda-MSFT commented

Errors when running blob trigger python application

Hello,
I am try to 'run and debug' my function app written in Python being triggered by a blob being uploaded.

The whole application works fine, the problem is I have to click 'continue' about 6 times as there are a lot of weird errors showing up, not sure why or where they are coming from, don't think it's much to do with the script I have written.

110940-image.png





This is an example of one of them, if I click continue, this appears: Exception has occurred: KeyError
'Metadata'

and so on for a couple of errors, once we get past them, the function executes the code and does what it is supposed to do.

Is there a way to either get rid of them, or make the function ignore them and still execute the code?

Thanks

azure-functionsazure-blob-storageazure-webapps-content-deployment
image.png (112.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

deherman-MSFT avatar image
0 Votes"
deherman-MSFT answered SumanthMarigowda-MSFT commented

@Adrian-5124
You probably need to add an except. See this thread and this thread for some possible ways to handle this in python. More helpful information on KeyErrors here.

Hope this helps. Let us know if you have further questions or issues.



Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.