Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { Error: Forbidden
- at Request.callback (/usr/local/lib/node_modules/smee-client/node_modules/superagent/lib/node/index.js:883:15)
- at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/smee-client/node_modules/superagent/lib/node/index.js:1126:20)
- at IncomingMessage.emit (events.js:203:15)
- at endReadableNT (_stream_readable.js:1145:12)
- at process._tickCallback (internal/process/next_tick.js:63:19)
- status: 403,
- response:
- Response {
- _events: [Object: null prototype] {},
- _eventsCount: 0,
- _maxListeners: undefined,
- res:
- IncomingMessage {
- _readableState: [ReadableState],
- readable: false,
- _events: [Object],
- _eventsCount: 4,
- _maxListeners: undefined,
- socket: [Socket],
- connection: [Socket],
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- httpVersion: '1.1',
- complete: true,
- headers: [Object],
- rawHeaders: [Array],
- trailers: {},
- rawTrailers: [],
- aborted: false,
- upgrade: false,
- url: '',
- method: null,
- statusCode: 403,
- statusMessage: 'Forbidden',
- client: [Socket],
- _consuming: false,
- _dumped: false,
- req: [ClientRequest],
- text:
- '<html><head><meta http-equiv=\'refresh\' content=\'1;url=/securityRealm/commenceLogin?from=%2Fbitbucket-hook%2F\'/><script>window.location.replace(\'/securityRealm/commenceLogin?from=%2Fbitbucket-hook%2F\');</script></head><body style=\'background-color:white; color:white;\'>\n\n\nAuthentication required\n<!--\n-->\n\n</body></html> ' },
- request:
- Request {
- _events: [Object: null prototype] {},
- _eventsCount: 0,
- _maxListeners: undefined,
- _enableHttp2: false,
- _agent: false,
- _formData: null,
- method: 'POST',
- url: 'http://127.0.0.1:8080/bitbucket-hook/',
- _header: [Object],
- header: [Object],
- writable: true,
- _redirects: 0,
- _maxRedirects: 5,
- cookies: '',
- qs: {},
- _query: [],
- qsRaw: [],
- _redirectList: [],
- _streamRequest: false,
- _data: [Object],
- req: [ClientRequest],
- protocol: 'http:',
- host: '127.0.0.1:8080',
- _endCalled: true,
- _callback: [Function],
- res: [IncomingMessage],
- _resBuffered: true,
- response: [Circular],
- called: true },
- req:
- ClientRequest {
- _events: [Object],
- _eventsCount: 3,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: true,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- useChunkedEncodingByDefault: true,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- _contentLength: 7360,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket: [Socket],
- connection: [Socket],
- _header:
- 'POST /bitbucket-hook/ HTTP/1.1\r\nhost: smee.io\r\nAccept-Encoding: gzip, deflate\r\ncontent-type: application/json\r\nconnection: close\r\nx-event-key: repo:push\r\nx-hook-uuid: 3763f13b-237c-4a56-9b65-94065d969ff7\r\nx-event-time: Wed, 01 Sep 2021 14:59:16 GMT\r\nuser-agent: Bitbucket-Webhooks/2.0\r\nx-attempt-number: 1\r\nx-request-uuid: 36f82f08-fc11-4efa-b6c8-2fe6626173ed\r\nx-b3-traceid: 8c80eb0792cdc17f\r\nx-b3-spanid: 8c80eb0792cdc17f\r\nx-b3-sampled: 1\r\naccept: */*\r\nx-request-id: 31653f16-8ccb-4e6c-939d-6ff564eaa2ef\r\nx-forwarded-for: %IP-address%\r\nx-forwarded-proto: https\r\nx-forwarded-port: 443\r\nvia: 1.1 vegur\r\nconnect-time: 0\r\nx-request-start: 1630508357509\r\ntotal-route-time: 0\r\ncontent-length: 7360\r\ntimestamp: 1630508357511\r\n\r\n',
- _onPendingData: [Function: noopPendingOutput],
- agent: [Agent],
- socketPath: undefined,
- timeout: undefined,
- method: 'POST',
- insecureHTTPParser: undefined,
- path: '/bitbucket-hook/',
- _ended: true,
- res: [IncomingMessage],
- aborted: undefined,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null,
- [Symbol(isCorked)]: false,
- [Symbol(outHeadersKey)]: [Object] },
- text:
- '<html><head><meta http-equiv=\'refresh\' content=\'1;url=/securityRealm/commenceLogin?from=%2Fbitbucket-hook%2F\'/><script>window.location.replace(\'/securityRealm/commenceLogin?from=%2Fbitbucket-hook%2F\');</script></head><body style=\'background-color:white; color:white;\'>\n\n\nAuthentication required\n<!--\n-->\n\n</body></html> ',
- body: {},
- files: undefined,
- buffered: true,
- headers:
- { connection: 'close',
- date: 'Wed, 01 Sep 2021 14:59:17 GMT',
- 'x-content-type-options': 'nosniff',
- 'set-cookie': [Array],
- expires: 'Thu, 01 Jan 1970 00:00:00 GMT',
- 'content-type': 'text/html;charset=utf-8',
- 'x-hudson': '1.395',
- 'x-jenkins': '2.289.1',
- 'x-jenkins-session': 'f28291d5',
- 'content-length': '619',
- server: 'Jetty(9.4.39.v20210325)' },
- header:
- { connection: 'close',
- date: 'Wed, 01 Sep 2021 14:59:17 GMT',
- 'x-content-type-options': 'nosniff',
- 'set-cookie': [Array],
- expires: 'Thu, 01 Jan 1970 00:00:00 GMT',
- 'content-type': 'text/html;charset=utf-8',
- 'x-hudson': '1.395',
- 'x-jenkins': '2.289.1',
- 'x-jenkins-session': 'f28291d5',
- 'content-length': '619',
- server: 'Jetty(9.4.39.v20210325)' },
- statusCode: 403,
- status: 403,
- statusType: 4,
- info: false,
- ok: false,
- redirect: false,
- clientError: true,
- serverError: false,
- error:
- { Error: cannot POST /bitbucket-hook/ (403)
- at Response.toError (/usr/local/lib/node_modules/smee-client/node_modules/superagent/lib/node/response.js:98:13)
- at ResponseBase._setStatusProperties (/usr/local/lib/node_modules/smee-client/node_modules/superagent/lib/response-base.js:119:48)
- at new Response (/usr/local/lib/node_modules/smee-client/node_modules/superagent/lib/node/response.js:44:8)
- at Request._emitResponse (/usr/local/lib/node_modules/smee-client/node_modules/superagent/lib/node/index.js:930:18)
- at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/smee-client/node_modules/superagent/lib/node/index.js:1126:42)
- at IncomingMessage.emit (events.js:203:15)
- at endReadableNT (_stream_readable.js:1145:12)
- at process._tickCallback (internal/process/next_tick.js:63:19)
- status: 403,
- text:
- '<html><head><meta http-equiv=\'refresh\' content=\'1;url=/securityRealm/commenceLogin?from=%2Fbitbucket-hook%2F\'/><script>window.location.replace(\'/securityRealm/commenceLogin?from=%2Fbitbucket-hook%2F\');</script></head><body style=\'background-color:white; color:white;\'>\n\n\nAuthentication required\n<!--\n-->\n\n</body></html> ',
- method: 'POST',
- path: '/bitbucket-hook/' },
- created: false,
- accepted: false,
- noContent: false,
- badRequest: false,
- unauthorized: false,
- notAcceptable: false,
- forbidden: true,
- notFound: false,
- unprocessableEntity: false,
- type: 'text/html',
- charset: 'utf-8',
- links: {},
- setEncoding: [Function: bound ],
- redirects: [],
- pipe: [Function] } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement