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

🐛 Bug Report: Emails Not Triggering in Latest Version of "Trigger Email from Firestore" Extension 0.1.35 #2279

Open
vamshi-i2i opened this issue Feb 10, 2025 · 9 comments
Labels
needs: author feedback Pending additional information from the author type: bug Something isn't working

Comments

@vamshi-i2i
Copy link

[READ] Step 1: Are you in the right place?

Yes, this issue is specifically for the "Trigger Email from Firestore" extension.

[REQUIRED] Step 2: Describe your configuration

  • Extension name: firestore-send-email
  • Extension version: (Latest Version, 0.1.35)
  • Configuration values:
    • SMTP Settings: Verified and working
    • Firestore Collection: Configured correctly

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

After updating to the latest version of the "Trigger Email from Firestore" extension, emails are no longer being triggered, and there are no error logs. The issue is reproducible.

  1. Install the latest version of the extension.
  2. Add a new Firestore document to trigger an email.
  3. Observe that the email is not sent and no errors appear in logs.
Expected result
  • Email should be sent when a Firestore document is added.
Actual result
  • No email is triggered.
  • No error logs appear in Firebase logs.

Screenshots

  • **Latest version of the extension:0.1.35
Image
  • **Old version of the extension (working):0.1.34
Image

Recommended Next Steps

Since this extension is developed by a different team, I recommend checking the extension's GitHub repository to see if others have reported similar issues. Please confirm if this is a bug with the latest release and provide guidance on resolving it.

Let me know if more information is needed.

Thanks,
Vamshi

@vamshi-i2i vamshi-i2i added the type: bug Something isn't working label Feb 10, 2025
@cabljac
Copy link
Contributor

cabljac commented Feb 11, 2025

Hi there, thanks for opening this.

What SMTP provider are you using? Sendgrid, or something else?

@CorieW CorieW added the needs: author feedback Pending additional information from the author label Feb 17, 2025
@CorieW
Copy link
Contributor

CorieW commented Feb 28, 2025

I haven't been able to reproduce this using SendGrid or Gmail as the provider. More information is necessary for further investigation into this.

@cabljac cabljac added blocked Blocked by an outstanding issue or PR and removed blocked Blocked by an outstanding issue or PR labels Mar 3, 2025
@cabljac
Copy link
Contributor

cabljac commented Mar 4, 2025

@vamshi-i2i can you provide any logs you can see? perhaps there's an error message which will provide insight.

@cabljac
Copy link
Contributor

cabljac commented Mar 4, 2025

@vamshi-i2i Also can you tell us what your smtp host is? or at least what provider you're using?

@vamshi-i2i
Copy link
Author

@vamshi-i2i Also can you tell us what your smtp host is? or at least what provider you're using?

Previously, it is network solutions later we changed it to the AWS smtp, these issue was reproduce on my end and firebase support too but it was resolved after 48 hrs of updated extension. Now we are able to send the emails from email trigger extension. Thank you!

@vamshi-i2i
Copy link
Author

@vamshi-i2i can you provide any logs you can see? perhaps there's an error message which will provide insight.

Sorry, Actually when we updated to the version 0.1.35, we are unable to see the logs too and execute the function too. It was resolved after 2 to 3 days of time after the update. Still curious to know How these happen when it is updated or it might take 3 days to update?

@cabljac
Copy link
Contributor

cabljac commented Mar 4, 2025

Hi @vamshi-i2i, i'll reopen this as it sounds like you still have the issue.

Can you provide your extension config (redact anything sensitive of course)

@cabljac cabljac reopened this Mar 4, 2025
@Pwntus
Copy link

Pwntus commented Mar 14, 2025

Having the same issue now.

Fresh install, the first installation issue:

; RESOURCE_ERROR at /deployments/firebase-ext-firestore-send-email/resources/processQueue: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"Gen1 operation for function projects/<redacted>/locations/europe-central2/functions/ext-firestore-send-email-processQueue failed: Build failed: Access to bucket gcf-sources-<redacted>-europe-central2 denied. You must grant Storage Object Viewer permission to <redacted>[email protected]. If you are using VPC Service Controls, you must also grant it access to your service perimeter.\n."}

After granting the principal <redacted>[email protected] with Storage Object Viewer permission to the bucket, I tried re-installing. The re-installation was seemingly successful in the Firebase console, but if I inspect the cloud function ext-firestore-send-email-processQueue it failed to deploy because it already existed.

The root cause seems to be the missing permission for the service role to access the bucket. Upon fixing that permission issue, the extension is re-deployed but fail to update a function because it already exists.

I managed to bypass this by deleting the function before trying to re-install the extension after a clean install. This however resulted in a failed build, where the logs are not viewable Build failed: Build error details not available. Please check the logs at: <URL>

@Pwntus
Copy link

Pwntus commented Mar 14, 2025

I've added the Logs Writer permission to view the build logs:

ERROR: failed to create image cache: accessing cache image "europe-west3-docker.pkg.dev/<redacted>/gcf-artifacts/ext--firestore--send--email--process_queue/cache:latest": connect to repo store "europe-west3-docker.pkg.dev/<redacted>/gcf-artifacts/ext--firestore--send--email--process_queue/cache:latest": GET https://europe-west3-docker.pkg.dev/v2/token?scope=repository%3A<redacted>%2Fgcf-artifacts%2Fext--firestore--send--email--process_queue%2Fcache%3Apull&service=: DENIED: Permission "artifactregistry.repositories.downloadArtifacts" denied on resource "projects/<redacted>/locations/europe-west3/repositories/gcf-artifacts" (or it may not exist)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: author feedback Pending additional information from the author type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants