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

客户端访问显示401 #36

Open
Zengsh123 opened this issue Mar 4, 2020 · 1 comment
Open

客户端访问显示401 #36

Zengsh123 opened this issue Mar 4, 2020 · 1 comment

Comments

@Zengsh123
Copy link

我在访问localhost:8081/aiqiyi/qq/redirect时控制台打印了授权码,但是带着授权码去访问token的时候报2020-03-04 13:07:14.996 ERROR 10804 --- [nio-8081-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 null] with root cause

org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 null
但是我用postman使用这个授权码是可以得到token的,不知为什么?

@LeiYuBoGitHub
Copy link

我就奇怪这个接口就是接收code为参数的,所以你哪来的授权码?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants