{"action":"created","issue":{"url":"https://api.github.com/repos/postmanlabs/newman/issues/430","repository_url":"https://api.github.com/repos/postmanlabs/newman","labels_url":"https://api.github.com/repos/postmanlabs/newman/issues/430/labels{/name}","comments_url":"https://api.github.com/repos/postmanlabs/newman/issues/430/comments","events_url":"https://api.github.com/repos/postmanlabs/newman/issues/430/events","html_url":"https://github.com/postmanlabs/newman/issues/430","id":161532286,"number":430,"title":"403 error when running tests via newman.","user":{"login":"gerrymcgovern1","id":4693763,"avatar_url":"https://avatars.githubusercontent.com/u/4693763?v=3","gravatar_id":"","url":"https://api.github.com/users/gerrymcgovern1","html_url":"https://github.com/gerrymcgovern1","followers_url":"https://api.github.com/users/gerrymcgovern1/followers","following_url":"https://api.github.com/users/gerrymcgovern1/following{/other_user}","gists_url":"https://api.github.com/users/gerrymcgovern1/gists{/gist_id}","starred_url":"https://api.github.com/users/gerrymcgovern1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerrymcgovern1/subscriptions","organizations_url":"https://api.github.com/users/gerrymcgovern1/orgs","repos_url":"https://api.github.com/users/gerrymcgovern1/repos","events_url":"https://api.github.com/users/gerrymcgovern1/events{/privacy}","received_events_url":"https://api.github.com/users/gerrymcgovern1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-21T20:31:24Z","updated_at":"2016-06-22T13:10:57Z","closed_at":null,"body":"I am receiving a 403 error when attempting to run my tests via newman. The same tests run fine when I run them via the collection runner in Postman. We are using basic auth and my tests add the authorization header as a custom header. I have added the following to my tests in an attempt to glean more information:\r\n\r\n`console.log(responseCode);`\r\n`console.log(JSON.stringify(request.headers[\"Authorization\"]));`\r\n\r\nwhich results in the following when run via newman:\r\n\r\n`Iteration 1 of 1`\r\n`{ code: 403,\r\n  name: 'Forbidden',\r\n  detail: 'The request was a legal request, but the server is refusing to respond to it. Unlike a 401 Unauthorized response, authenticating will make no difference.' }`\r\n`Basic  dGVzdF9hdXRvbWF0aW9uOjVhZTRjYWY2YjQ2Mjc1NDI1ZGI4MDlmOWU1NmRkOGIw\"`\r\n\r\n`403 266ms https://api-general.staging.companyname.com/data/user/2/venue/3/entity_type/V/campaigns/undefined \r\n[POST] https://api-general.staging.companyname.com/data/user/2/venue/3/entity_type/V/campaigns/undefined\r\n    ✗ Status code is 200`\r\n\r\nSo the authorization header is added and seen by newman, but yet I get a 403. \r\n\r\nI have used the postman interceptor to create this test and this test is not currently using any global or env variables. Currently running newman from my mac(not a separate CI machine) which is the same machine as postman is running from so I don't believe it's a firewall issue.\r\n\r\nCan anyone provide any insight into why this is occurring?\r\n"},"comment":{"url":"https://api.github.com/repos/postmanlabs/newman/issues/comments/227738177","html_url":"https://github.com/postmanlabs/newman/issues/430#issuecomment-227738177","issue_url":"https://api.github.com/repos/postmanlabs/newman/issues/430","id":227738177,"user":{"login":"gerrymcgovern1","id":4693763,"avatar_url":"https://avatars.githubusercontent.com/u/4693763?v=3","gravatar_id":"","url":"https://api.github.com/users/gerrymcgovern1","html_url":"https://github.com/gerrymcgovern1","followers_url":"https://api.github.com/users/gerrymcgovern1/followers","following_url":"https://api.github.com/users/gerrymcgovern1/following{/other_user}","gists_url":"https://api.github.com/users/gerrymcgovern1/gists{/gist_id}","starred_url":"https://api.github.com/users/gerrymcgovern1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerrymcgovern1/subscriptions","organizations_url":"https://api.github.com/users/gerrymcgovern1/orgs","repos_url":"https://api.github.com/users/gerrymcgovern1/repos","events_url":"https://api.github.com/users/gerrymcgovern1/events{/privacy}","received_events_url":"https://api.github.com/users/gerrymcgovern1/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T13:10:57Z","updated_at":"2016-06-22T13:10:57Z","body":"@abhijitkane - I can't figure out why it is returning a 403 hence the question here! Seems very odd as it passes using the Postman collection runner. "}}
{"actor":{"display_login":"gerrymcgovern1"}}