Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

fix: Fix UTF-8 parsing on some environments for config sync step

Clémence Lesnéa4580356c1b7
diff --git a/Makefile b/Makefile
index 50982e2..adc9eef 100644
--- a/Makefile
+++ b/Makefile
@@ -209,11 +209,12 @@ watch-call:
sync-local-config:
@echo "📥 Copying remote CONFIG_JSON to local config..."
az containerapp revision list \
- --name $(container_app_name) \
- --output tsv \
- --query "[0].properties.template.containers[0].env[?name=='CONFIG_JSON'].value" \
- --resource-group $(name_sanitized) \
- | yq \
- --output-format yaml \
- --prettyPrint \
- > config.yaml
+ --name $(container_app_name) \
+ --output tsv \
+ --query "[0].properties.template.containers[0].env[?name=='CONFIG_JSON'].value" \
+ --resource-group $(name_sanitized) \
+ | iconv -f utf-8 -t utf-8 -c \
+ | yq \
+ --output-format yaml \
+ --prettyPrint \
+ > config.yaml