Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to upload APK to in Firebase Test Lab

I have recently upgraded to the 'Blaze" plan of Firebase. I am trying to test a release APK using the Firebase Test Lab, but every time I upload an APK, I get this.

The file could not be uploaded to Google Cloud Storage (GCS). This issue might be caused by incorrect GCS permissions.

How to solve this problem? Do I need to change some settings in the project?

PS - I know this is specifically not a programming related question. I have to resort to SO, as even after putting this issue to Firebase support, I have got no solution.

like image 356
Aritra Roy Avatar asked Oct 26 '16 10:10

Aritra Roy


2 Answers

Firebase Test Lab team member here

Projects that were using Test Lab on the Blaze plan prior to Septmber 29th own the storage bucket used for app and test result storage. If such a project is downgraded to the Spark plan and has its billing account removed, that storage bucket may become unwritable.

You can tell whether or not you are using your own storage bucket by examining the path on the request to clients6.google.com/upload/storage/ from your browser. If it is not something like clients6.google.com/upload/storage/.../test-lab-(id) then you may have problems uploading APKs on the Spark plan.

If that is the case, try creating a new project. We are working on a fix so that this will not be necessary.

like image 105
Michael Lawrence Avatar answered Nov 20 '22 10:11

Michael Lawrence


Sorry for coming a bit late i faced the issue recently but solved it simply my disabling a VPN service i turned on, I was using it a minute then turned on my vpn to do something else only for the issue to start after that it wasn't intentional but i guessed it was the vpn and i was right everything was back to normal after i turn off the vpn. I think this has to be because google cloud storage work in the background based on region just like firebase bucket will asked to used a storage location bucket when creating a project

like image 35
Serenity Avatar answered Nov 20 '22 11:11

Serenity