Skip to content

Not able to set authentication for corporate proxy host #12

Description

@susnigdha1

I am running my code using Protractor conf.js file. My application is running behind corporate proxy...so after creating the browsermob-proxy object, I am trying to set authentication for the host, before starting the proxy. Given below code snippet:
proxy.setAuthentication('8080','',{'username':'','password':'*'},function(err){if(err){console.log(err)}});
Upon execution, system displays below error message:
Error: Error from server: 401
at IncomingMessage. (D:\heat\node_modules\browsermob-proxy-api\index.js:199:25)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions