peaceiris/actions-hugo

Invalid JSON Response Body from brew.sh

brandoningli opened this issue · 2 comments

Describe the bug

Action fails due to an invalid json response body from brew.sh

Error: Action failed with error invalid json response body at https://formulae.brew.sh/api/formula/hugo.json reason: Unexpected token < in JSON at position 1

To Reproduce

  1. Trigger the action

Expected behavior

Hugo setup succeeds

YAML

- name: Setup Hugo
      uses: peaceiris/actions-hugo@v2
      with:
          hugo-version: 'latest'

Additional Details

This might be a brew.sh temporary error.

Thank you for the reporting, yes, brew.sh seemed to return an invalid format temporarily and now it works well.

Related to #153 (I plan to add api.github as a backup data source.)

This issue has been LOCKED because of it being resolved!

The issue has been fixed and is therefore considered resolved.
If you still encounter this or it has changed, open a new issue instead of responding to solved ones.