From fac4cfd83e1e9f2a93c82adf3996f32028b33e60 Mon Sep 17 00:00:00 2001 From: Huse Kivrak Date: Tue, 5 Nov 2024 13:56:29 -0500 Subject: [PATCH] debug: fixed unauthorized error by adding 'www.' to request URL --- .github/workflows/cron.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 4479932..933420b 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -15,13 +15,13 @@ jobs: ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_API_KEY }} run: | RESPONSE=$(curl -s -L -H "Authorization: Bearer $CRON_ACTION_SECRET" \ - -X GET "https://npspeak.com/api/cron") + -X GET "https://www.npspeak.com/api/cron") echo "Response body: $RESPONSE" STATUS_CODE=$(curl -s -o /dev/null -w "%{http_code}" -L -H "Authorization: Bearer $CRON_ACTION_SECRET" \ - -X GET "https://npspeak.com/api/cron") + -X GET "https://www.npspeak.com/api/cron") if [ "$STATUS_CODE" -ne 200 ]; then echo "Sync Voices failed with status code $STATUS_CODE"