Push and deploy fails

I have connected my project chat with git, and new repo was created and inside it a readme file.
In the chat I can see the Preview (it loads as much as I want) , but when I press Deploy button, I have the option to Push and Deploy like below:

After a bit I get an error: Failed to commit and push files.

In the repo there are no new files/branches and in Vecel the project was created but no new deployment.

What’s happening? Am I doing something wrong?

If needed I can provide with the project id.

Thank you,
Sebastian

Did you know about these other v0 resources? A human should be here soon to help, but the answer may already be available even faster in one of these other posts.

This guide is a great place to start.

And these recordings can give you a look at v0 features and strategies in action: Topics tagged v0

If you share the project name or id, I can dig for more error details :folded_hands:

V0 Project ID: M18ItogF4ro
V0 chat ends with this id bQsl2Nwthe3

In the meanwhile:

  • disconnected the Git Repo from the Vercel project
  • deleted the git repo
  • made a deploy to Vercel - I did not had made this step previously
  • connected back to Git Repo so a new repo was created
  • on Deploy I see now a different screen
  • when I press Push Changes after I while I see same error as before Failed to commit and push files., but nothing in my repo.

Hope it helps.

@amyegan ,

Looking closer when I press Push Changes, the browser is doing a post to https://v0.dev/chat/api/git/push with payload {"blockId":"b_I1lN7ONn3tX"} and the response is {"error":"38","errorMsg":"Failed to commit and push files."}

Hope it helps to have a closer look at things.
Thank you.

Hope it helps.
Thank you.

Thanks for sharing all of that. I found some additional info in the logs about the 38 error you saw, checked with the team about the solution, and here’s what they recommend:

You need to grant the workflows permission to your GitHub App.

  1. Go to the settings page of your GitHub App.
  2. Under “Permissions & events”, click on “Configure permissions”.
  3. In the “Repository permissions” section, check the “Read & write” permission for the “Workflows” option.
  4. Click on “Save changes”.

Please give that a try and let me know whether or not it works for you

I am facing a similar issue, but there’s no app owned by me in my personal account, I presume Vercel Bot does the commit and push for me, and it has the read write access to my repo. not sure what is causing the error 38 issue in my case.

v0 Project Id - eDRY656Nozd
v0 Latest Fork of the chat - 29th-april-4cfBh4Sp8kj

Thank you reply.
Unfortunately the only way I was able to commit the code was remove the github action.
There is no place to for me to change the permissions as you gave me those steps.

So for now I gave up using the GitHub Actions.

1 Like

Ah, I didn’t realize you were using GitHub Actions.

Glad you found a solution for now, but please let me know if you ever want to try again with GitHub Actions. Curious issue I haven’t been able to repro with my test project. I would be happy to dig into this more with you