Skip to content

🐛 [firestore-send-email] Reconfiguring extension leads to "Function location processQueue would be changed during update" error #2191

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

Open
hongaar opened this issue Oct 11, 2024 · 8 comments
Labels
extension: firestore-send-email Related to firestore-send-email extension needs: author feedback Pending additional information from the author triaged type: bug Something isn't working

Comments

@hongaar
Copy link

hongaar commented Oct 11, 2024

Describe your configuration

  • Extension name: firestore-send-email
  • Extension version: 0.1.34
  • Configuration values:
{
  "DEFAULT_FROM": "[email protected]",
  "MAIL_COLLECTION": "mail",
  "SMTP_CONNECTION_URI": "smtps://postmaster%[email protected]:465",
  "SMTP_PASSWORD": "projects/{id}/secrets/firestore-send-email-SMTP_PASSWORD/versions/1",
  "TTL_EXPIRE_TYPE": "week",
  "TTL_EXPIRE_VALUE": "1"
}

Describe the problem

I want to update some parameters from the Extensions GUI in the Firebase Console. When I click Reconfigure extension, make my changes, and then click Save, nothing happens in the GUI. I can see a request is made for https://firebaseextensions.clients6.google.com/v1beta/projects/examtraining-c20cd/instances/firestore-send-email?updateMask=config.params,config.system_params,config.allowed_event_types,config.eventarc_channel&alt=json&key={key} with the updated params in the payload. This request runs into a 400 response with this body:

{
  "error": {
    "code": 400,
    "message": "Function location \"processQueue\" would be changed during update, which can have unexpected results. To change instance location, create a new instance instead.",
    "status": "INVALID_ARGUMENT"
  }
}

After clicking Cancel, this message occurs in the Extensions GUI:

Error saving configuration

Be aware that a parameter misconfiguration might have caused some extension resources to not successfully deploy.

Use the details below to help resolve this error, then retry configuring the extension. If you continue to get this error, we recommend uninstalling the extension to remove any extension resources that might be deployed.

There was an unknown error while processing the request.

Not sure if this is something which can be fixed in the extension code or is a generic problem with the Extensions GUI and should be addressed to the Firebase team.

Steps to reproduce:

I first updated the TTL_EXPIRE_TYPE successfully, but after this, subsequent changes to any other param resulted in this error.

Expected result

Updated params

Actual result

Error message

@hongaar hongaar added the type: bug Something isn't working label Oct 11, 2024
@hongaar hongaar changed the title 🐛 [firestore-send-email] Your issue title here 🐛 [firestore-send-email] Reconfiguring extension leads to "Function location processQueue would be changed during update" error Oct 11, 2024
@Elena-Ceceva
Copy link

Elena-Ceceva commented Nov 27, 2024

Same issue here. Did you manage to find a solution yet?

@mattias-lonn
Copy link

I’m experiencing the same issue here, but on v0.1.35.

@cabljac
Copy link
Contributor

cabljac commented Feb 11, 2025

Hi! Thanks for raising this

We've recieved this issue and we're reviewing it, I'll give you updates as soon as possible.

@CorieW
Copy link
Member

CorieW commented Feb 14, 2025

Hi @hongaar

Have you experienced this when updating the parameters of any other extension?

@CorieW CorieW self-assigned this Feb 17, 2025
@CorieW CorieW added the needs: author feedback Pending additional information from the author label Feb 17, 2025
@hongaar
Copy link
Author

hongaar commented Feb 21, 2025

@CorieW not that I can remember.

@Revadike
Copy link

No solution yet?

@cabljac
Copy link
Contributor

cabljac commented Apr 22, 2025

This seems like it could be a platform issue, raising it for an internal discussion with the team. We'll provide updates ASAP!

@mattias-lonn
Copy link

Thank you @cabljac 🚀

@cabljac cabljac moved this from Needs Acknowledgment to Triaged in [Cloud] Extensions + Functions May 7, 2025
@cabljac cabljac added triaged extension: firestore-send-email Related to firestore-send-email extension labels May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension: firestore-send-email Related to firestore-send-email extension needs: author feedback Pending additional information from the author triaged type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants