doubei8168 2014-11-27 06:15
浏览 555

错误:invalid_request redirect_uri的参数值无效:Uri必须包含可打印的ASCII字符:

I Created Client Id and API Key in the Google Developer Console, I given same url in google console and in my config file

This is my url:

https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A81%2Fmoviemuseui%2Fpublic%2Flogin%2FcheckLogin+&client_id=XXXXXXXX-xxxxxxxxxxxxxxxxx.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&access_type=offline&approval_prompt=force

I am getting a error

  1. That’s an error.

Error: invalid_request

Invalid parameter value for redirect_uri: Uri must consist of printable ASCII characters: localhost:81/moviemuseui/public/login/checkLogin

How to solve this, I can't find the problem.

  • 写回答

2条回答 默认 最新

  • dougong5285 2014-11-27 06:22
    关注

    Excluded US-ASCII Characters disallowed within the URI syntax:

       control     = <US-ASCII coded characters 00-1F and 7F hexadecimal>
       space       = <US-ASCII coded character 20 hexadecimal>
       delims      = "<" | ">" | "#" | "%" | <">
    

    There are also some characters that may be allowed in URI syntax but can cause problems.

    "{" | "}" | "|" | "\" | "^" | "[" | "]" | "`"
    

    And the following characters are absolutely reserved for a query component and they are used for specific meaning in the protocol.

    ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | ","
    
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog