You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My best guess here is that there's a point in time where the lib's get_relation_data will be non-empty, but the secrets won't have been created yet (or are otherwise somehow not returned in the relation data). Digging into the lib code should be able to confirm that.
If that's the case, then the guard that currently returns {} if there's no relation data should also handle the case where there's relation data, but no credentials (and use an empty environment). My assumption (again, would be good to confirm this) is that the custom DatabaseCreated event will only be triggered after the credentials are available, so eventually the holistic handler would provide the full environment.
The text was updated successfully, but these errors were encountered:
Feedback from an onboarder working through the tutorial - they get an error on config-changed/pebble-ready:
My best guess here is that there's a point in time where the lib's
get_relation_data
will be non-empty, but the secrets won't have been created yet (or are otherwise somehow not returned in the relation data). Digging into the lib code should be able to confirm that.If that's the case, then the guard that currently returns
{}
if there's no relation data should also handle the case where there's relation data, but no credentials (and use an empty environment). My assumption (again, would be good to confirm this) is that the customDatabaseCreated
event will only be triggered after the credentials are available, so eventually the holistic handler would provide the full environment.The text was updated successfully, but these errors were encountered: