错误400:redirect_uri_mismatch 请求中的重定向URI http:// localhost:8080 /与为OAuth客户端授权的重定向URI不匹配。
这是在运行python get_oauth2_token.py(这是一个可访问Google驱动器和Google表格的脚本文件)后弹出的错误。
现在在脚本文件的流变量中,我提到过redirect_uri,因为http:// localhost:8000也尝试将其设置为http:// localhost:8080。然后,我还将上述的redirect_uri添加到了console.developers.google.com帐户中的地址,但无济于事。
如何解决此错误?请随时问我任何信息。可能会解决我的查询。