For the future please see this post for details of the preferred method of posting flows - How to share code or flow json
Earlier you said that you were making http requests from within a function node, but the flow you posted is using an http request node. Are you saying that the http request node is generating the error that you posted at the start?