N
Novu3w ago
DevQuest

Github action error 431

Here is my github action: name: Novu Sync on: workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest steps: - name: Sync State to Novu uses: novuhq/actions-novu-sync@v2 with: secret-key: ${{ secrets.NOVU_SECRET_KEY }} bridge-url: https://6bba2fc0-f082-4bfe-bfd2-4b162fb50d76.novu.sh/api/novu api-url: http://20.79.188.196:4200 The api-url is the hosted URL of my dashboard. Bridge URl is coming from my local machine when running npx novu@latest dev Can somebody please shed some light so I can move past this point and get working. Thanks in advance
8 Replies
Dima Grossman
Dima Grossman3w ago
Hi @DevQuest is the API url is the URl of your FrontEnd dashboard or the API? As the default API port is 3000
Novu_Bot
Novu_Bot3w ago
@DevQuest, you just advanced to level 1!
Dima Grossman
Dima Grossman3w ago
Not your API URl, but the self-hosted docker image of the API It's usually running under localhost:3000 and you need to expose it to the internet for the github action to work http://20.79.188.196:3000
DevQuest
DevQuestOP3w ago
This is my docker image This is what I am currently getting: Run novuhq/actions-novu-sync@v2 with: secret-key: *** bridge-url: https://6bba2fc0-f082-4bfe-bfd2-4b162fb50d76.novu.sh/api/novu api-url: http://20.79.188.196:3000 Error: Request failed with status code 400
Dima Grossman
Dima Grossman3w ago
Seems like your tunnel URL is not running properly, could you try to re-run your npx dev command?
DevQuest
DevQuestOP3w ago
Do I need to deploy it? Or would it work when running locally? So if I run npx dev, I can use that URL with the github action? I updated it to a working server and I am still getting the same issue: Run novuhq/actions-novu-sync@v2 with: secret-key: *** bridge-url: https://wonderful-bush-0fb49f803.5.azurestaticapps.net/api/novu api-url: http://20.79.188.196:3000 Error: Request failed with status code 400
Dima Grossman
Dima Grossman3w ago
Yes you can, how ever it's highly recommended for you to deploy it before using in GitHub actions. As the moment your computer will be turned off it will stop working
Want results from more Discord servers?
Add your server