小编Wil*_*opp的帖子

GitHub 错误 probot:未找到集成,documentation_url

在使用 GitHub 的 Probot 应用程序时,我遇到了身份验证问题。当我使用 npm start 运行应用程序时,我会得到

github: Github request: GET /app/installations - 404 Not Found

和

ERROR probot: {"message":"Integration not found", "documentation_url": "https://developer.github.com/v3"}

后来我发现我遇到这个问题的原因是因为我使用的是 GitHub Enterprise 帐户并且需要向我的 .env 文件添加一个额外的变量:

GHE_HOST=github.your_company.com

重新启动我的应用程序后,我不再遇到这些问题。

documentation integration github probot

6
推荐指数
0
解决办法
858
查看次数

Python请求urlencode而不发送任何请求

有没有办法使用python请求模块urlencode字符串而不发送实际请求?

这可以用urllib的完成所看到这里:

>>> urllib.quote_plus('string_of_characters_like_these:$#@=?%^Q^$')
'string_of_characters_like_these%3A%24%23%40%3D%3F%25%5EQ%5E%24'
Run Code Online (Sandbox Code Playgroud)

我找不到任何显示如何获得可比结果的请求文档.

提前致谢,

威廉

python urllib python-requests

2
推荐指数
1
解决办法
1349
查看次数