anzharip/azure-function-multipart

Not working with new runtime

sven5 opened this issue · 5 comments

sven5 commented

Yesterday, I've updated to the new Azure Functions Core Tools

Azure Functions Core Tools
Core Tools Version: 4.0.4544 Commit hash: N/A (64-bit)
Function Runtime Version: 4.3.2.18186

It seems that busboy has some problems, the events don't get fired any more and the functions runs endlessly.
I'm currently trying to find the root cause.
It doesn't work locally neither on Azure.

sven5 commented

Found an issue:
Perhaps, you should invoke busboy.end() after busboy.write(...)

sven5 commented

Now, I changed busboy.write(...) to busboy.end(...) and it works again.
Not sure if the issue is the updated Azure runtime, though.

Hi Sven, thanks for the heads up!

Can you help share your currently installed version of busboy?

I suspect there's a breaking change in busboy's API from the recent release.

Fixed on 90b0755

sven5 commented

@anzharip Sorry for being late, I was on holidays.
Currently, I've installed busboy v1.6.0

Thanks for your update and the new release.