Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed service account email to None as the default service account was resulting in an invalid argument #817

Merged
merged 1 commit into from
Apr 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion label_studio/io_storages/gcs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def python_cloud_function_get_signed_url(self, bucket_name, blob_name):
expires_at_ms = datetime.now() + timedelta(minutes=self.presign_ttl)
# This next line is the trick!
signing_credentials = compute_engine.IDTokenCredentials(auth_request, "",
service_account_email=credentials.service_account_email)
service_account_email=None)
signed_url = signed_blob_path.generate_signed_url(expires_at_ms, credentials=signing_credentials, version="v4")
return signed_url

Expand Down