'source.on is not a function' on Axios request library

Because of problems with credentials I have been switching back and forth a lot between the Request Library and the Axios Request Library using the N8N_USE_DEPRECATED_REQUEST_LIB environment variable.

I ran into a problem where I receive a 'source.on is not a function' error when trying to upload a PDF-file using the SalesForce node.

I switched back to N8N_USE_DEPRECATED_REQUEST_LIB=false and this fixed the problem. I believe there is something going wrong when uploading a file with the new Axios request library.

Set-up:
Platform: Docker
Version: 0.140.0
Node: SalesForce (Document Upload)

Hey @laurens-novyx,

Apologies for the issues you’re facing. I’ve assigned this to @krynble. He will be able to help out :slight_smile:

2 Likes

Hi, @laurens-novyx

Thank you for the detailed error report.

I am investigating now and working on a fix asap.

Please try again with [email protected] it should fix the issue.