Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

网址中的空格导致授权失败? #63

Closed
cnguu opened this issue Sep 24, 2019 · 3 comments
Closed

网址中的空格导致授权失败? #63

cnguu opened this issue Sep 24, 2019 · 3 comments
Labels
github Issues about GitHub platform Platform issues that cannot be solved by Vssue

Comments

@cnguu
Copy link

cnguu commented Sep 24, 2019

我在我的网站中测试过

失败授权跳转:https://gleehub.com/?error=redirect_uri_mismatch&error_description=The%20redirect_uri%20MUST%20match%20the%20registered%20callback%20URL%20for%20this%20application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=Vssue

我并不清楚实际引起这个错误的原因:https://gleehub.com/?error=redirect_uri_mismatch&error_description=The redirect_uri MUST match the registered callback URL for this application.&error_uri=https://developer.github.com/apps/managing-oauth-apps/troubleshooting-authorization-request-errors/#redirect-uri-mismatch&state=Vssue

我猜测这是空格或者中文或者其它字符引起的

这是我使用的版本

  • "@vssue/api-github-v3": "^1.0.3"
  • "@vssue/vuepress-plugin-vssue": "^1.0.3"

vuepress 中的使用:

<ClientOnly>
    <Vssue :title="$page.title" />
</ClientOnly>
@meteorlxy
Copy link
Owner

简单看了一下,这个应该是 github 的问题,有空格 %20 就会报错:

还是建议避免在 uri 中出现这些字符吧,文件名还是纯英文之类的比较好

@meteorlxy
Copy link
Owner

噢对了,用了 vuepress-plugin-vssue 之后就不用 ClientOnly 了,插件里已经帮你加了

@meteorlxy meteorlxy added github Issues about GitHub platform Platform issues that cannot be solved by Vssue labels Sep 24, 2019
@cnguu
Copy link
Author

cnguu commented Sep 24, 2019

@meteorlxy 蟹蟹,已修复,使用中文的原因

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github Issues about GitHub platform Platform issues that cannot be solved by Vssue
Projects
None yet
Development

No branches or pull requests

2 participants