- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已按照 https://docs.readthedocs.io/en/stable/webhooks.html 上的说明进行操作并向 github 添加了一个 webhook 以触发我构建的 readthedocs,但是 readthedocs 拒绝有效负载:
Response
Status:
400
Content-Type:
text/html; charset=utf-8
Allow:
POST, OPTIONS
详细信息:
{
"detail": "Payload not valid, invalid or missing signature"
}
这是请求的 header :
Host:
...
Connection:
close
Accept:
*/*
Max-Forwards:
10
User-Agent:
GitHub-Hookshot/903858c
X-Github-Event:
push
X-Github-Delivery:
2be06d44-552f-11e9-91f6-d1c2bea59bd2
X-Original-Host:
readthedocs.org
X-Original-Url:
/api/v2/webhook/.../.../
X-Arr-Ssl:
2048|256|C=GB, S=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO RSA Domain Validation Secure Server CA|OU=Domain Control Validated, OU=EssentialSSL Wildcard, CN=*.readthedocs.org
X-Arr-Log-Id:
fef5ee2e-6edd-4386-ad1f-79400cee2d46
Content-Type:
application/json
有效载荷:
{
"after": "..."
"base_ref": null,
"before": "..."
"commits": [
{
"added": [],
"author": {
"email": "..."
"name": "..."
"username": "..."
},
"committer": {
"email": "..."
"name": "..."
"username": "..."
},
"distinct": true,
"id": "..."
"message": "..."
"modified": [
...
],
"removed": [],
"timestamp": "..."
"tree_id": "..."
"url": "..."
}
],
"compare": "..."
"created": false,
"deleted": false,
"forced": false,
"head_commit": {
"added": [],
"author": {
"email": "..."
"name": "..."
"username": "..."
},
"committer": {
"email": "..."
"name": "..."
"username": "..."
},
"distinct": true,
"id": "..."
"message": "..."
"modified": [
...
],
"removed": [],
"timestamp": "..."
"tree_id": "..."
"url": "..."
},
"organization": {
"avatar_url": "..."
"description": null,
"events_url": "..."
"hooks_url": "..."
"id": ...,
"issues_url": "..."
"login": "..."
"members_url": "..."
"node_id": "..."
"public_members_url": "..."
"repos_url": "..."
"url": "..."
},
"pusher": {
"email": "..."
"name": "..."
},
"ref": "..."
"repository": {
"archive_url": "..."
"archived": false,
"assignees_url": "..."
"blobs_url": "..."
"branches_url": "..."
"clone_url": "..."
"collaborators_url": "..."
"comments_url": "..."
"commits_url": "..."
"compare_url": "..."
"contents_url": "..."
"contributors_url": "..."
"created_at": ...,
"default_branch": "..."
"deployments_url": "..."
"description": "..."
"downloads_url": "..."
"events_url": "..."
"fork": false,
"forks": 0,
"forks_count": 0,
"forks_url": "..."
"full_name": "..."
"git_commits_url": "..."
"git_refs_url": "..."
"git_tags_url": "..."
"git_url": "..."
"has_downloads": true,
"has_issues": true,
"has_pages": false,
"has_projects": true,
"has_wiki": true,
"homepage": "..."
"hooks_url": "..."
"html_url": "..."
"id": ...,
"issue_comment_url": "..."
"issue_events_url": "..."
"issues_url": "..."
"keys_url": "..."
"labels_url": "..."
"language": "..."
"languages_url": "..."
"license": {
"key": "..."
"name": "..."
"node_id": "..."
"spdx_id": "..."
"url": "..."
},
"master_branch": "..."
"merges_url": "..."
"milestones_url": "..."
"mirror_url": null,
"name": "..."
"node_id": "..."
"notifications_url": "..."
"open_issues": 8,
"open_issues_count": 8,
"organization": "..."
"owner": {
"avatar_url": "..."
"email": null,
"events_url": "..."
"followers_url": "..."
"following_url": "..."
"gists_url": "..."
"gravatar_id": "..."
"html_url": "..."
"id": ...,
"login": "..."
"name": "..."
"node_id": "..."
"organizations_url": "..."
"received_events_url": "..."
"repos_url": "..."
"site_admin": false,
"starred_url": "..."
"subscriptions_url": "..."
"type": "..."
"url": "..."
},
"private": false,
"pulls_url": "..."
"pushed_at": ...,
"releases_url": "..."
"size": ...,
"ssh_url": "..."
"stargazers": 4,
"stargazers_count": 4,
"stargazers_url": "..."
"statuses_url": "..."
"subscribers_url": "..."
"subscription_url": "..."
"svn_url": "..."
"tags_url": "..."
"teams_url": "..."
"trees_url": "..."
"updated_at": "..."
"url": "..."
"watchers": 4,
"watchers_count": 4
},
"sender": {
"avatar_url": "..."
"events_url": "..."
"followers_url": "..."
"following_url": "..."
"gists_url": "..."
"gravatar_id": "..."
"html_url": "..."
"id": ...,
"login": "..."
"node_id": "..."
"organizations_url": "..."
"received_events_url": "..."
"repos_url": "..."
"site_admin": false,
"starred_url": "..."
"subscriptions_url": "..."
"type": "..."
"url": "..."
}
}
我之前也使用过 read-the-docs(有效)并比较了相应的 webhook,但我找不到任何差异。
最佳答案
从 readthedocs.org 和 github.com 中删除钩子(Hook),然后将其添加回去(注意 url 的 id 部分已更改)解决了问题。
关于github - 使用 github webhook 阅读文档结果为 400 : "Payload not valid, invalid or missing signature",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55475282/
概述 我想实现一个 Lucene 索引器/搜索器,它使用新的有效负载功能,允许向文本添加元信息。在我的具体情况下,我向概念标签添加权重(可以理解为 % 概率,介于 0 到 100 之间),以便使用它们
我正在分析一个 metasploit 漏洞 here我试图弄清楚 payload.encoded 中的 payload 来自第 358 行。我是开发开发的新手,但基本的编程规则说 payload 应该
我从我的 javascript 发送交易 Metamask 打开传输对话框 我确定 i get an error message in metamask (inpage.js:1 MetaMask -
action.payload 何时、何地以及为什么被调用?请任何人帮助我了解action.payload的实际用途是什么。我已经搜索了很多网站,但我不明白.. 最佳答案 当您处理请求时,例如单击我们需
我用 Angular 编写代码,在一种情况下,json 返回一个值(如有效负载),我需要对其进行解密。我有一个这样的有效载荷: 我需要解码它。像下面的方式:例如,$B 部分的值我只需要 14,$s 的
我正在编写一个进行服务调用的 Chrome 扩展。 当我发出同源 POST ajax 请求时,我的数据对象以 JSON 格式传递: $.ajax(sameOriginURL, { data
如何在连接语句的 lambda 中访问信号的“有效负载”? 假设信号看起来像这样: signals: void stateChanged(std::pair); 现在在 connect 语句中,我
我正在尝试使用 RestSharp 来使用查询 rest,但我总是收到 Bad Request 响应。代码: var url = "https://gql.tokopedia.com/graphql/
在 Android GCM 文档中,据说有效载荷最大为 4096 字节限制。 payload的4096字节是否包括registration_id长度?我发现我可以发送有效载荷为 16038 字节(包括
前言 做过前后端联调的小伙伴,可能有时会遇到一些问题。例如,我明明传递数据给后端了,后端为什么说没收到呢?这时候可能就会就会有小伙伴陷入迷茫,本文从chrome-dev-tools(F12调试器)中看
我将 JSON 提供给某个网络钩子(Hook)以触发通知 (M$ Teams)。这很好用。但是,我想扩展我的 Perl 脚本:我需要在特定条件下向我的“messagecard”构造添加一个新节点。 例
我有一个 Xamarin 项目(UWP 和 iOS)在 VS2015 中构建并运行良好。 该项目包含一些通用 Windows 和 iOS 项目,以及两个平台使用的许多 PCL(用于 View 模型、服
我正在使用 Hyperledger Fabric Java SDK 通过 txId 获取交易。返回对象包含交易信息。 TransactionInfo txInfo = channel.queryTra
我有以下代码,用于检查 token 并授权 Google 用户登录 GoogleIdToken.Payload tempPayload = token.getPayload(); if (!tempP
当我们使用 sqlmap ,它会自动执行查找网站的 sql 注入(inject) 的所有操作。我感兴趣的是我直接在我的浏览器中发送恶意查询并在其中获取结果,但是当我找不到任何东西时,我使用 sqlma
我正在使用 Redux 和 React 从 API 加载数据。尽管成功提取数据并将其应用到状态,但它会抛出错误: Uncaught TypeError: Cannot read property 'p
我对 python 的随机函数有一个问题。我不知道哪个随机函数适用于此代码: name=['toffla','rebecca','toff','becca'] if (parser.getPayloa
在阅读了 Heartbeat 的 RFC 6520 后,我有几个问题: https://www.rfc-editor.org/rfc/rfc6520 具体来说,我不明白为什么心跳需要包含任意有效负载甚
如何用php curl发送请求负载? 我正在尝试将一个文件上传到一个免费托管文件的服务器,当将文件发送到curl时,我不接受它,我重定向到一个错误页,当我从您的interfas中执行此操作时,我可以在
我有一个非 ARC 项目,现在我在成功迁移后使用 SDK 8.1 迁移了应用程序 Xcode 6,当我尝试将其存档时,*.ipa 文件已创建,但如果我尝试通过上传应用程序diawi 或 hokey 应
我是一名优秀的程序员,十分优秀!