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>\n<head>\n<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>\n<title>Error 403 No valid crumb was included in the request</title>\n</head>\n<body><h2>HTTP ERROR 403 No valid crumb was included in the request</h2>\n<table>\n<tr><th>URI:</th><td>/bitbucket-hook/</td></tr>\n<tr><th>STATUS:</th><td>403</td></tr>\n<tr><th>MESSAGE:</th><td>No valid crumb was included in the request</td></tr>\n<tr><th>SERVLET:</th><td>Stapler</td></tr>\n</table>\n<hr><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.39.v20210325</a><hr/>\n\n</body>\n</html>\n' },
- 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:54:09 GMT\r\nuser-agent: Bitbucket-Webhooks/2.0\r\nx-attempt-number: 1\r\nx-request-uuid: f9e91787-5ff3-477f-b62e-c3f495ec8bda\r\nx-b3-traceid: 3e13542bbae18215\r\nx-b3-spanid: 3e13542bbae18215\r\nx-b3-sampled: 1\r\naccept: */*\r\nx-request-id: b254466f-a8a7-40ee-89a7-7ac0a2127e36\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: 1630508050595\r\ntotal-route-time: 0\r\ncontent-length: 7360\r\ntimestamp: 1630508050599\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>\n<head>\n<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>\n<title>Error 403 No valid crumb was included in the request</title>\n</head>\n<body><h2>HTTP ERROR 403 No valid crumb was included in the request</h2>\n<table>\n<tr><th>URI:</th><td>/bitbucket-hook/</td></tr>\n<tr><th>STATUS:</th><td>403</td></tr>\n<tr><th>MESSAGE:</th><td>No valid crumb was included in the request</td></tr>\n<tr><th>SERVLET:</th><td>Stapler</td></tr>\n</table>\n<hr><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.39.v20210325</a><hr/>\n\n</body>\n</html>\n',
- body: {},
- files: undefined,
- buffered: true,
- headers:
- { connection: 'close',
- 'x-content-type-options': 'nosniff',
- 'cache-control': 'must-revalidate,no-cache,no-store',
- 'content-type': 'text/html;charset=iso-8859-1',
- 'content-length': '558',
- server: 'Jetty(9.4.39.v20210325)' },
- header:
- { connection: 'close',
- 'x-content-type-options': 'nosniff',
- 'cache-control': 'must-revalidate,no-cache,no-store',
- 'content-type': 'text/html;charset=iso-8859-1',
- 'content-length': '558',
- 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>\n<head>\n<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>\n<title>Error 403 No valid crumb was included in the request</title>\n</head>\n<body><h2>HTTP ERROR 403 No valid crumb was included in the request</h2>\n<table>\n<tr><th>URI:</th><td>/bitbucket-hook/</td></tr>\n<tr><th>STATUS:</th><td>403</td></tr>\n<tr><th>MESSAGE:</th><td>No valid crumb was included in the request</td></tr>\n<tr><th>SERVLET:</th><td>Stapler</td></tr>\n</table>\n<hr><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.39.v20210325</a><hr/>\n\n</body>\n</html>\n',
- 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: 'iso-8859-1',
- links: {},
- setEncoding: [Function: bound ],
- redirects: [],
- pipe: [Function] } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement