R
RunPod12mo ago
andrew

error with github workflow

hi im using: https://github.com/runpod-workers/worker-template/tree/main as a template for the CI/CD, but getting this error: Run fjogeleit/http-request-action@v1 Error: {"code":404,"message":""}
GitHub
GitHub - runpod-workers/worker-template: 🚀 | A simple worker that c...
🚀 | A simple worker that can be used as a starting point to build your own custom RunPod Endpoint API worker. - GitHub - runpod-workers/worker-template: 🚀 | A simple worker that can be used as a st...
4 Replies
andrew
andrewOP12mo ago
launch_runner_worker:
runs-on: ubuntu-latest
outputs:
id: ${[ steps.extract_id.outputs.runpod_job_id ]}

steps:
- name: Deploy Worker
uses: fjogeleit/http-request-action@v1
id: deploy

with:
url: "https://api.runpod.ai/v2/${{ vars.RUNNER_24GB }}/run"
method: "POST"
customHeaders: '{"Content-Type": "application/json"}'
bearerToken: ${{ secrets.RUNPOD_API_KEY }}
data: '{"input":{"github_pat": "${{ secrets.GH_PAT }}", "github_org":"${{ vars.GH_ORG }}"}}'

- name: Extract Job ID
id: extract_id
run: |
ID=$(echo '${{ steps.deploy.outputs.response }}' | jq -r '.id')
echo "::set-output name=runpod_job_id::$ID"
launch_runner_worker:
runs-on: ubuntu-latest
outputs:
id: ${[ steps.extract_id.outputs.runpod_job_id ]}

steps:
- name: Deploy Worker
uses: fjogeleit/http-request-action@v1
id: deploy

with:
url: "https://api.runpod.ai/v2/${{ vars.RUNNER_24GB }}/run"
method: "POST"
customHeaders: '{"Content-Type": "application/json"}'
bearerToken: ${{ secrets.RUNPOD_API_KEY }}
data: '{"input":{"github_pat": "${{ secrets.GH_PAT }}", "github_org":"${{ vars.GH_ORG }}"}}'

- name: Extract Job ID
id: extract_id
run: |
ID=$(echo '${{ steps.deploy.outputs.response }}' | jq -r '.id')
echo "::set-output name=runpod_job_id::$ID"
here is my config i have all my secrets setup in my repo
NERDDISCO
NERDDISCO12mo ago
It seems that either RUNNER_24GB isn't pointing to an existing endpoint or the RUNPOD_API_KEY is not correct. Can you check if this is working for you, when replacing the <RUNPOD_API_KEY> with your key?
curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.runpod.io/graphql?api_key=<RUNPOD_API_KEY>' \
--data '{"query": "query Endpoints { myself { endpoints { gpuIds id idleTimeout locations name networkVolumeId pods { desiredStatus } scalerType scalerValue templateId workersMax workersMin } serverlessDiscount { discountFactor type expirationDate } } }"}'
curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.runpod.io/graphql?api_key=<RUNPOD_API_KEY>' \
--data '{"query": "query Endpoints { myself { endpoints { gpuIds id idleTimeout locations name networkVolumeId pods { desiredStatus } scalerType scalerValue templateId workersMax workersMin } serverlessDiscount { discountFactor type expirationDate } } }"}'
andrew
andrewOP12mo ago
ty
NERDDISCO
NERDDISCO12mo ago
@andrew let me know if I can help you any further
Want results from more Discord servers?
Add your server