Skip to content

Commit

Permalink
debug: fixed unauthorized error by adding 'www.' to request URL
Browse files Browse the repository at this point in the history
  • Loading branch information
huseKivrak committed Nov 5, 2024
1 parent a8d526f commit fac4cfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fac4cfd

Please sign in to comment.