Fixed issue with request that type is a function in the resource