N
Neon11mo ago
eastern-cyan

Neonctl failing in github actions

Just started today for me, but when running the reset branch action i'm getting this error before any other output comes out: ERROR: The request could not be authorized due to an internal error. It looks like I'm not the only one this started happening to: https://discord.com/channels/1176467419317940276/1318273579997200395
GitHub
GitHub - neondatabase/reset-branch-action
Contribute to neondatabase/reset-branch-action development by creating an account on GitHub.
11 Replies
eastern-cyan
eastern-cyanOP11mo ago
I rotated my api key and still getting the same error
other-emerald
other-emerald11mo ago
x2 same error from Amplify on AWS today I tried to do a redeploy and since today I'm getting this error, I tried to do it manually from the command and it works as expected, could it be that Neon is blocking the request from AWS or Github?
plain-purple
plain-purple11mo ago
Hey! Do you mind sharing a code snippet of your GitHub action?
eastern-cyan
eastern-cyanOP11mo ago
Saw your post on the linked thread that this was fixed. For posterity, this was the github action:
- name: Reset to parent branch
uses: neondatabase/reset-branch-action@v1
with:
project_id: ${{ env.NEON_PROJECT_ID }}
branch: ${{ steps.initialize.outputs.neon-branch-name }}
api_key: ${{ env.NEON_API_KEY }}
parent: ${{ env.PARENT_BRANCH }}
- name: Reset to parent branch
uses: neondatabase/reset-branch-action@v1
with:
project_id: ${{ env.NEON_PROJECT_ID }}
branch: ${{ steps.initialize.outputs.neon-branch-name }}
api_key: ${{ env.NEON_API_KEY }}
parent: ${{ env.PARENT_BRANCH }}
plain-purple
plain-purple11mo ago
Yup. Issue should be fixed. Let us know if you run into any other issues
other-emerald
other-emerald11mo ago
@Mahmoud I'm still having the same issue using this bash https://github.com/siegerts/neon-branches-amplify-cicd/blob/main/neon-ci.sh on amplify, the issue started yesterday, the weird part is if I try to run the same command on my local it works but on Amplify I got this ERROR: The request could not be authorized due to an internal error
GitHub
neon-branches-amplify-cicd/neon-ci.sh at main · siegerts/neon-branc...
Neon Postgres Branch for each Amplify Hosting app branch - siegerts/neon-branches-amplify-cicd
other-emerald
other-emerald11mo ago
I also change the api key value but I got the same error
plain-purple
plain-purple11mo ago
Hmm, which step fails exactly? It seems that this might be not related to Neon
other-emerald
other-emerald11mo ago
fails when try to create a new branch, but until friday was working fine and is odd because anything change
plain-purple
plain-purple11mo ago
Can you try upgrading to the latest CLI version as well as action?
other-emerald
other-emerald11mo ago
thanks, that fixed the issue

Did you find this page helpful?