I changed these two lines, just changing the Endpoint.find to config.findEndpoint. I think this is probably a whitespace conflict :/