extensions icon indicating copy to clipboard operation
extensions copied to clipboard

šŸ› [firestore-send-email] Reconfiguring extension leads to "Function location processQueue would be changed during update" error

Open hongaar opened this issue 1 year ago • 8 comments

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 avatar Oct 11 '24 09:10 hongaar

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

Elena-Ceceva avatar Nov 27 '24 14:11 Elena-Ceceva

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

mattias-lonn avatar Feb 06 '25 09:02 mattias-lonn

Hi! Thanks for raising this

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

cabljac avatar Feb 11 '25 15:02 cabljac

Hi @hongaar

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

CorieW avatar Feb 14 '25 17:02 CorieW

@CorieW not that I can remember.

hongaar avatar Feb 21 '25 09:02 hongaar

No solution yet?

Revadike avatar Apr 17 '25 08:04 Revadike

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

cabljac avatar Apr 22 '25 15:04 cabljac

Thank you @cabljac šŸš€

mattias-lonn avatar Apr 22 '25 16:04 mattias-lonn