       else
         return request method, url, options.data, options, callback
     catch error
-      console.error "Error sending request to Neo4j (GrapheneDB) server:"
-      console.error error
-      console.trace()
+      __error "Error sending request to Neo4j (GrapheneDB) server:"
+      __error new Error error
 
   __parseNode: (currentNode) ->
     if currentNode?.metadata or currentNode?.data

      try
        @__cleanUpResults JSON.parse(response.content), cb
      catch error
        console.error "Neo4j response error (Check your cypher queries):", [response.statusCode], error
        console.error "Original received data:"
        console.log response.content
        console.trace()
    else
      console.error "Empty response from Neo4j, but expecting data"
      console.trace()

  __cleanUpResults: (results, cb) ->
    if results?.results or results?.errors

        bound => callback error, if noTransform then response else @__transformData _.clone(response), reactive

  __connect: -> 
    # response = @__call @root
    @__call @root, {}, 'GET', (error, response) =>
      if response?.statusCode
        switch response.statusCode
          when 200
            if response.data.password_change_required
              throw new Error "To connect to Neo4j - password change is required, please proceed to #{response.data.password_change}"
            else
              for key, endpoint of response.data
                if _.isString endpoint
                  if !!~endpoint.indexOf '://'
                    @__service[key] = new Neo4jEndpoint key, endpoint, @
                  else
                    @__service[key] = get: -> endpoint
                  __success "v#{endpoint}" if key is "neo4j_version"
              @emit 'ready'
              __success "Successfully connected to Neo4j on #{@url}"
          else
            throw new Error JSON.stringify response
      else
        throw new Error "Error with connection to Neo4j"

  __call: (url, options = {}, method = 'GET', callback) ->
    check url, String
