 			statusCode: statusCode
 		}
 
-	stream.on 'error', (error) ->
-		callback null, {
-			error: error
-			parsedUrl: parsedUrl
-		}
+	stream.on 'error', (err) ->
+		error = err
 
 OEmbed.getUrlMeta = (url, withFragment) ->
 	getUrlContentSync = Meteor.wrapAsync getUrlContent

			stream.abort()

	stream.on 'end', Meteor.bindEnvironment ->
		buffer = Buffer.concat(chunks)

		callback null, {


	headers = null
	statusCode = null
	error = null
	chunks = []
	chunksTotalLength = 0

