0

我正在向我的 Smee 端点发布一些示例数据,并且我还在运行我的 ProBot 应用程序的本地实例。我在我的机器人日志中收到了一个错误的请求,我看到这是 Smee 响应:

  { Error: cannot POST / (400)
at Response.toError (/usr/local/lib/node_modules/smee-client/node_modules/superagent/lib/node/response.js:94:15)
at ResponseBase._setStatusProperties (/usr/local/lib/node_modules/smee-client/node_modules/superagent/lib/response-base.js:123:16)
at new Response (/usr/local/lib/node_modules/smee-client/node_modules/superagent/lib/node/response.js:41:8)
at Request._emitResponse (/usr/local/lib/node_modules/smee-client/node_modules/superagent/lib/node/index.js:752:20)
at IncomingMessage.parser (/usr/local/lib/node_modules/smee-client/node_modules/superagent/lib/node/index.js:916:38)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
    status: 400,
    text: 'Required headers missing: x-github-event, x-github-delivery',
    method: 'POST',
    path: '/' },

如何获取这些标头值以在我的应用程序中进行测试?不确定是不是我,但文档没有在任何地方注明

4

1 回答 1

0

我使用https://www.freeformatter.com/hmac-generator.html#ad-output将有效负载作为正文和我的秘密和哈希有效!

于 2018-05-07T03:54:35.777 回答