Extension of original question:
@Kirst, sorry for the late response.
Ok the first example, the one with axios, will never get to the console.log as you are calling an async function without the await keyword. The function is returning before the HTTP request responds.
With regard to the second example, it will not work either because the request library do not return a promise and the keyword await as far as I know works when the function you are calling return a promise. To make work you have to either require request-p…
If I am using the docker-compose file shouldn’t I be able to add a line to the environment section of n8n then restart and it should work with the proposed solution:
I am still getting an error “Access denied to require ‘request-promise-native’”"
Thanks in advance.
Using n8n Version: 0.78.0