<#9117 fix: Avoid prepending a slash to state file...
# meltano-repo-activity
g
#9117 fix: Avoid prepending a slash to state file path in Cloud state backends Pull request opened by edgarrmondragon Description We were generating an invalid Blob name with a leading slash and then swalloing the exception during deletion, so the user had no idea what was wrong. The exception looked like this:
Copy code
NotFound('DELETE https://storage.googleapis.com/storage/v1/b/meltano-state/o/%2Fdev%3Atap-fedidb-to-target-jsonl%2Fstate.json?prettyPrint=false: No such object: meltano-state//dev:tap-fedidb-to-target-jsonl/state.json')
Notice the double slash after the bucket name. The changes here: 1. Ensure we ignore empty strings when joining path/blob/object names so we don't end up with states with leading or trailing slashes 2. Log the
NotFound
exception at the debug level. Related Issues • Closes #9017 meltano/meltano