CLI returns "unexpected non-JSON response ""
Hi there,
I have a github/gitea action file, which creates and deletes sample templates on a test system.
Since some time, I get this error:
These are the relevant parts of the action:
Did the cli command change or something? Thanks!
I have a github/gitea action file, which creates and deletes sample templates on a test system.
Since some time, I get this error:
Encountered an error running "coder templates push", see "coder templates push --help" for more information
error: Trace=[get organizations: ]
unexpected non-JSON response ""
Gateway Timeout
❌ Failure - Main Push template
exitcode '1': failureEncountered an error running "coder templates push", see "coder templates push --help" for more information
error: Trace=[get organizations: ]
unexpected non-JSON response ""
Gateway Timeout
❌ Failure - Main Push template
exitcode '1': failureThese are the relevant parts of the action:
steps:
- name: Checkout the codebase
uses: actions/checkout@v5
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: "Get latest Coder binary"
run: |
curl -L https://coder.com/install.sh | sh -s -- --version $CODER_VERSION
env:
CODER_VERSION: 2.28.3
- name: "Push template"
run: |
coder templates push $TEMPLATE_NAME --directory $CODER_TEMPLATE_DIR --yes --name="$TEMPLATE_VERSION" --message="$UPDATE_MESSAGE"
coder templates archive $TEMPLATE_NAME --all -y
env:
CODER_URL: https://coder-test.domain.com
CODER_SESSION_TOKEN: ${{ secrets.CODER_TEST_TOKEN }}
CODER_TEMPLATE_DIR: ${{ matrix.template-path }}
TEMPLATE_NAME: '${{ matrix.template-name }}-PR${{ gitea.event.number }}'
TEMPLATE_VERSION: ${{ steps.vars.outputs.sha_short }}
UPDATE_MESSAGE: ${{ gitea.event.head_commit.message }}
- uses: mshick/add-pr-comment@v2
if: matrix.template-name == 'base'
with:
message: |
Test server: <a href="${{ env.CODER_URL }}/templates/${{ env.TEMPLATE_NAME }}/workspace?mode=auto" target="_blank">${{ env.TEMPLATE_NAME }}</a>
env:
CODER_URL: https://coder-test.domain.com
TEMPLATE_NAME: '${{ matrix.template-name }}-PR${{ gitea.event.number }}'
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }} steps:
- name: Checkout the codebase
uses: actions/checkout@v5
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: "Get latest Coder binary"
run: |
curl -L https://coder.com/install.sh | sh -s -- --version $CODER_VERSION
env:
CODER_VERSION: 2.28.3
- name: "Push template"
run: |
coder templates push $TEMPLATE_NAME --directory $CODER_TEMPLATE_DIR --yes --name="$TEMPLATE_VERSION" --message="$UPDATE_MESSAGE"
coder templates archive $TEMPLATE_NAME --all -y
env:
CODER_URL: https://coder-test.domain.com
CODER_SESSION_TOKEN: ${{ secrets.CODER_TEST_TOKEN }}
CODER_TEMPLATE_DIR: ${{ matrix.template-path }}
TEMPLATE_NAME: '${{ matrix.template-name }}-PR${{ gitea.event.number }}'
TEMPLATE_VERSION: ${{ steps.vars.outputs.sha_short }}
UPDATE_MESSAGE: ${{ gitea.event.head_commit.message }}
- uses: mshick/add-pr-comment@v2
if: matrix.template-name == 'base'
with:
message: |
Test server: <a href="${{ env.CODER_URL }}/templates/${{ env.TEMPLATE_NAME }}/workspace?mode=auto" target="_blank">${{ env.TEMPLATE_NAME }}</a>
env:
CODER_URL: https://coder-test.domain.com
TEMPLATE_NAME: '${{ matrix.template-name }}-PR${{ gitea.event.number }}'
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}Did the cli command change or something? Thanks!
