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

错误: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.

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

报告相同问题?

悬赏问题

  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧
  • ¥15 #MATLAB仿真#车辆换道路径规划