Double wrapping of requests when doing function invocation.