php - 刷新令牌上的 Firebase REST API INVALID_ARGUMENT
问题描述
昨天我们开始遇到 REST API 的问题,尤其是刷新令牌方法:https ://firebase.google.com/docs/reference/rest/auth/#section-refresh-token
curl 'https://securetoken.googleapis.com/v1/token?key=[API_KEY]' \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data 'grant_type=refresh_token&refresh_token=[REFRESH_TOKEN]'
我们使用文档上的 curl 示例和我们自己的开发(使用 PHP 和 Guzzle)尝试了这个调用,但我们总是得到这个错误:
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT"
}
解决方案
当您从 Google 的数据中心内拨打电话时,似乎会发生这种情况,这对我们在本地运行良好。14 日,它也开始发生在我们身上。我向 firebase 团队提出了一个错误。
推荐阅读
- amazon-web-services - 当我通过 cloudformation 将 access_key 和 secret_key 传递给我的 ec2 实例时会发生什么?
- jquery - 如何在不刷新页面的情况下通过分页向索引页面添加新数据?
- python - 使用 Flask 在 html 元素中显示来自 txt 文件的数据
- python - Python Pandas 垂直连接
- python - 通过目录循环构建 Python 字典
- java - Smbfile在java中获取最后访问日期
- java - 在Struts中,如何将键中包含的值赋予href
- jquery - 点击功能上的jQuery重置输入字段
- asp.net - 无法转换类型为“System.Data.Entity.DynamicProxies.QuanTri_8853081F254D1D30AC78D5C548A68F29C932951DF7E094DA751FE0A3AA80E911”的对象
- python - 'ReverseManyToOneDescriptor' 对象没有属性 'all'