 _ = require 'underscore'
 caseNormalizer = require 'header-case-normalizer'
 fs = Promise.promisifyAll require 'fs-extra'
-request = Promise.promisifyAll require 'request'
-requestAsync = Promise.promisify request, multiArgs: true
+request = require 'request'
 mime = require 'mime'
 socks = require 'socks5-client'
 SocksHttpAgent = require 'socks5-http-client/lib/Agent'

                reqBody = JSON.stringify(querystring.parse reqBody.toString())
                self.emit 'network.on.request', req.method, [domain, pathname, requrl], reqBody
                # Create remote request
                [response, body] = yield requestAsync resolve options
                success = true
                res.writeHead response.statusCode, response.headers
                res.end body
                # Emit response events to plugins
                try
                  resolvedBody = yield resolveBody response.headers['content-encoding'], body

                else
                  self.emit 'network.error', [domain, pathname, requrl], response.statusCode
              catch e
                success = false
                error "Api failed: #{req.method} #{req.url} #{e.toString()}"
                self.emit 'network.error.retry', [domain, pathname, requrl], i + 1 if i < retries
              if success || !isKancolleGameApi pathname
