android - 火力基地。身份验证错误:您的凭据不再有效
问题描述
面对下一个问题,或许谁能说得清。我有两个主持人,两个跑步者。在其中一个上,我已经配置了 CI,并且 Firebase 程序集正在那里工作。我设置了另一台主机(第二台)来构建,基本上所有相同的配置,在它上面我得到了一个新的 firebase 令牌,但是当我尝试在第二台主机上运行我的 CI 时,我的工作下降了。我阅读了论坛和官方文档,以寻找解决问题的方法,但它们不适合我的情况。
[12:47:16]: ---------------------------------------
[12:47:16]: --- Step: firebase_app_distribution ---
[12:47:16]: ---------------------------------------
[12:47:19]: ▸ i getting app details...
[12:47:19]: ▸ Error: failed to fetch app information. Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth
[12:47:19]: ▸ For CI servers and headless environments, generate a new token with firebase login:ci
+-------------------------------------+-------------------------------------------------------------------------------------------------------+
| Lane Context |
+-------------------------------------+-------------------------------------------------------------------------------------------------------+
| DEFAULT_PLATFORM | android |
| PLATFORM_NAME | android |
| LANE_NAME | android firebase_dev |
| GRADLE_ALL_APK_OUTPUT_PATHS | ["C:/Users/_/Android/application/build/outputs/apk/psb_dev_test/debug/_ |
| | 722.1-debug.apk"] |
| GRADLE_ALL_AAB_OUTPUT_PATHS | [] |
| GRADLE_ALL_OUTPUT_JSON_OUTPUT_PATHS | [] |
| GRADLE_ALL_MAPPING_TXT_OUTPUT_PATHS | [] |
| GRADLE_APK_OUTPUT_PATH | C:/Users/_/Android/application/build/outputs/apk/psb_dev_test/debug/_ |
| | 2.1-debug.apk |
+-------------------------------------+-------------------------------------------------------------------------------------------------------+
[12:47:19]: Shell command exited with exit status 1 instead of 0.
i getting app details...
Error: failed to fetch app information. Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth
For CI servers and headless environments, generate a new token with firebase login:ci
+------+---------------------------------+-------------+
| fastlane summary |
+------+---------------------------------+-------------+
| Step | Action | Time (in s) |
+------+---------------------------------+-------------+
| 1 | default_platform | 0 |
| 2 | clean assemblePsb_dev_testDebug | 682 |
| | firebase_app_distribution | 3 |
+------+---------------------------------+-------------+
+---------------------------+--------------+----------------+
| Plugin updates available |
+---------------------------+--------------+----------------+
| Plugin | Your Version | Latest Version |
+---------------------------+--------------+----------------+
| firebase_app_distribution | 0.1.4 | 0.2.5 |
+---------------------------+--------------+----------------+
[12:47:19]: To update all plugins, just run
[12:47:19]: $ bundle exec fastlane update_plugins
[12:47:19]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
Could not access the GitHub API, you may have better luck via the website.
https://github.com/fastlane/fastlane/search?q=Shell command exited with exit status 1 instead of 0.
i getting app details...
Error: failed to fetch app information. Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth
For CI servers and headless environments, generate a new token with firebase login:ci
&type=Issues&utf8=✓
Traceback (most recent call last):
30: from C:/Ruby26-x64/bin/fastlane:23:in `<main>'
29: from C:/Ruby26-x64/bin/fastlane:23:in `load'
28: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/bin/fastlane:23:in `<top (required)>'
27: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
26: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
25: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
24: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
23: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
22: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
20: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
19: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
18: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
16: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
15: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
14: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
13: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/lane.rb:33:in `call'
12: from Fastfile:68:in `block (2 levels) in parsing_binding'
11: from Fastfile:83:in `deploy'
10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-plugin-firebase_app_distribution-0.1.4/lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_action.rb:36:in `run'
2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane/lib/fastlane/helper/sh_helper.rb:80:in `sh_control_output'
1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/fastlane-2.172.0/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in `shell_error!': [!] Shell command exited with exit status 1 instead of 0. (FastlaneCore::Interface::
FastlaneShellError)
i getting app details...
Error: failed to fetch app information. Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth
For CI servers and headless environments, generate a new token with firebase login:ci
同样在我的公司,我有一个代理可以阻止对各种资源的访问。我尝试了什么:
- 为代理添加环境变量 http_proxy=... https_proxy=
- 添加了环境变量集“NODE_TLS_REJECT_UNAUTHORIZED=0”
- 尝试进行 firebase login --reauth firebase login:ci 获取令牌没有问题。
我可能错过了一些东西,但到目前为止我还没有找到解决这个问题的方法。
解决方案
推荐阅读
- excel - 错误 401 - 未经授权的 Excel VBA 网页抓取
- python - 如何让 Google 日历返回具有重复规则的特定项目?
- python - 从大型 Json 文件生成单独的文本文件
- css - 使用 flex-wrap:wrap 但无法使用伪选择器调整最后一项的位置
- google-cloud-composer - 无法删除 gcloud composer 环境
- r - 如何将一个模型复制 10 次并从中提取几个对象(测试结果),然后求平均值?
- oracle - 在 SQL Developer 中使用变量作为参数的简单查询
- vue.js - Vuex getter 返回太快
- android - IONIC:http请求在浏览器和开发应用程序中有效,但在apk中无效
- python - 如何让 Intellisense 与使用类属性装饰器的自定义 python 枚举一起工作