Open vmontana opened 1 year ago
Hi @muhammadqazi , the guide you provide doesn't explains how to upload android apps in a Managed Google Play Console Account (Android Enterprise). In this type of account, you cannot use the "API access" section. It also doesn't explain that you need to enable a second API on GCP called "Google Play Custom App Publishing API".
Does the exact lane "create_app_on_managed_play_store" work for you?
Thanks!
Hi. Does the "create_app_on_managed_play_store" lane work for anyone?
To check if it is a general issue or not.
Thanks.
@vmontana try this guide https://medium.com/@muhammedqazi/mastering-fastlane-the-ultimate-guide-to-effortless-android-and-ios-deployments-with-github-e0878c3f9529
Your tutorial guided me to use json_key with upload_to_play_store and solved authentication issue.
upload_to_play_store(track: 'internal', json_key: json_key_file)
Hi
Getting the same when running upload_to_play_store
- worked 3 weeks ago. Setting store/key pw, store file and alias in gradle
properties.
@vmontana @mvrty What happens when you put json_key property to your create_app_on_managed_play_store?
create_app_on_managed_play_store(
json_key: 'path/to/you/json/key/file',
...
)
Actually re-ran the job after a while and it went through without a problem. Some issues at play store today maybe?
@marcosrocha85 & @mvrty : You have commented the behavior of the "upload_to_play_store" lane. That is not the lane for which the case has been opened. Does the exact lane "create_app_on_managed_play_store" work for you?
@marcosrocha85 : We were already putting the json_key parameter as you indicate and it fails with the same error.
Fastfile:
platform :android do
desc "Crear App en Google Play Console Administrado de ITG."
lane :create_app_on_managed_play_store_itg do
create_app_on_managed_play_store(
json_key: "/Users/vmontana/Documents/fastlane/mdona-cloud-itg-cicdmovd.json",
developer_account_id: "<HIDDEN-VALUE>",
app_title: "HelloWorldITG2",
language: 'es_ES',
apk: "/Users/vmontana/Documents/fastlane/HelloWorldITG2.apk",
)
end
end
Execution:
vmontana@K9XLDQKJR9 fastlane % bundle exec fastlane android create_app_on_managed_play_store_itg
[β] π
[09:09:30]: Driving the lane 'android create_app_on_managed_play_store_itg' π
[09:09:30]: ----------------------------------------------
[09:09:30]: --- Step: create_app_on_managed_play_store ---
[09:09:30]: ----------------------------------------------
+----------------------+------------------------------------------------------------+
| Summary for create_app_on_managed_play_store |
+----------------------+------------------------------------------------------------+
| json_key | /Users/vmontana/Documents/fastlane/mdona-cloud-itg-cicdmo |
| | vd.json |
| developer_account_id | <HIDDEN-VALUE> |
| app_title | HelloWorldITG2 |
| language | es_ES |
| apk | /Users/vmontana/Documents/fastlane/HelloWorldITG2.apk |
| timeout | 300 |
+----------------------+------------------------------------------------------------+
+---------------+----------------------------------------------+
| Lane Context |
+---------------+----------------------------------------------+
| PLATFORM_NAME | android |
| LANE_NAME | android create_app_on_managed_play_store_itg |
+---------------+----------------------------------------------+
[09:09:35]: Google Api Error: Unauthorized - Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
+------+----------------------------------+-------------+
| fastlane summary |
+------+----------------------------------+-------------+
| Step | Action | Time (in s) |
+------+----------------------------------+-------------+
| π₯ | create_app_on_managed_play_store | 4 |
+------+----------------------------------+-------------+
[09:09:35]: fastlane finished with errors
[!] Google Api Error: Unauthorized - Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
vmontana@K9XLDQKJR9 fastlane %
The same code and files worked 2 months ago. What has changed?
Same here, started failing more frequently today
same here, it is failing since today at 11:30 CET
previous build working perfectly, nothing changed in our configuration
same here
any news
Hello,
I'm still facing this issue only with "create_app_on_managed_play_store" lane.
Does it work for anyone?
It seems that few people use this lane.
Has anyone used it recently? Hi @joshdholtz ! Could you tell me if this lane is still working OK? Thanks!
The problem was there we should set this Access token location: access_token url paramater
Hi @fxcjahid ,
It's an issue that the client side can solve? Or is a new release of fastlane needed?
Thanks!
I don't know, But this is server-side
Hello,
Could any fastlane developer please confirm if this is an issue that could be resolved with a new version of fastlane?
Thanks!
hello, is there any update on this one? i am also experiencing same issue.
same issue too
I have the same problem intermittently while using supply
Same Issue, are there any updates?
Any workaround here? Build stopped working this today.
I'm facing the same issue, any updates here?
We have the same problem, JSON keys are ok, permissions are there. If anyone has a solution, please tell us! :)
This is happening on our project as well, started facing it 2 days ago.
I created a new issue #21507 as this does not seem to be related with create_app_on_managed_play_store
command.
facing this same issue from today
Started getting this yesterday as well, not on every run, but about 75% of the time.
I'm also seeing this on the upload_to_play_store
command. Last ran successfully on 7th September. No runs over the weekend but since Monday it's failed consistently. No config changes on our end
The same issue if we are trying to upload more than one localization at a time.
We're facing the same issue. Please help. We've a production release today.
We're facing the same issue. Please help. We've a production release today.
Started getting this from yesterday. It is being triggered when fastlane is trying to sync image metadata. Please help!!
We are having the same issue
Same issue in Bitrise workflow
Same issue in Bitrise workflow
rebuild fix the problem. for now.
https://github.com/fastlane/fastlane/issues/21507 the same scenario for us too, the error gets triggered during screenshots upload
I ended up building and uploading our build manually for now.
Same on my side for upload_to_play_store
since today - worked all the time. Checked JSON_KEY_FILE but all good. No code changes at all.
same issue, i ended up deploying it manually
I opened this case for the "create_app_on_managed_play_store" lane (Android enterprise private apps). I am still facing this problem since February without a solution yet.
Now, I'm getting the same error in the 'public' lane "upload_to_play_store" like you guys. It seems like the same problem is affecting both lanes.
Please, Fastlane developers, could you check what's going on?
I confirm, by setting these params, the upload goes through successfully:
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true,
I confirm, by setting these params, the upload goes through successfully:
No such luck on my end. Our config already includes those params
We just started getting this error yesterday for the upload_to_play_store
lane. It was working fine as of last Friday (9/8) π π€¦
I think Google has made some changes to the API. I'm encountering this issue because I've integrated the Play Store API into my project, and I've been receiving the same error since yesterday..
We have the same issue with Bitrise, and they have similar reports. It's an issue on Google's side.
I think Google has made some changes to the API.
That's possible. The failed uploads include the following output
Google Api Error: Unauthorized - Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See [https://developers.google.com/identity/sign-in/web/devconsole-project.](https://developers.google.com/identity/sign-in/web/devconsole-project)
The linked page has a deprecation warning at the top but it also links to a deprecation & sunsetting page where the sunset date is still marked as TBD. It seems plausible that Google sunsetted something without proper notice, but what makes me doubt it is that a few people in this thread have reported successful uploads. Maybe it's something less drastic.
Google Cloud status is green: https://status.cloud.google.com/ Previous incident last night, not sure it's related: https://status.cloud.google.com/incidents/71zrZxw3PRkiNYhM1JsZ
Started facing this issue again today while using fastlane on Azure pipelines...last months release worked fine
Been working fine for months, now encountering the same issue, both play store and test lanes:
Store
Google Api Error: Server error - Internal error encountered.
Test
Google Api Error: Unauthorized - Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
New Issue Checklist
Issue Description
When we execute the "create_app_on_managed_play_store" lane we're always getting a "Google Api Error: Unauthorized - Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential." error since a month ago. The App in the Managed Google Play Console is not created.
The json we use was generated on a project in Google Cloud Platform and has privileges to execute Google Play APIs (Google Play Android Developer API and Google Play Custom App Publishing API) and also has admin privileges on Managed Google Play Console. Prior to a month ago, it always worked fine.
It seems that Google requires a different authentication method now? It is possible that fastlane has not adapted?
Command executed
fastlane run create_app_on_managed_play_store
Complete output when running fastlane, including the stack trace and command used
Environment