Git repository owner change http status code: 404

I had my client change his git repository owner from one organization to another, so i went into my Wappler project and edited the remote repository to the newer url, after closing the window it went to git to redo authorization and then redirected me back to Wappler as though all if ok.

When I try push any changes now i get an error of unexpected http status code: 404

Is there anything i should do different?

I’m far from being an expert with Git but it sounds like you need to set the upstream…

git push --set-upstream <repo-name> master

Hopefully someone more expert in this can confirm before you try anything!

1 Like

Sadly in the same boat as you here, not exactly a git master, in fact a git newbie, and of course my client decides to do something fairly out of the ordinary, typical. @sid any ideas, i know you are a github master by now.

I had to delve into Git over the last couple of weeks after switching to a self-hosted version (Gitea) and finding Wappler didn’t behave perfectly with it. I’m still using the terminal on my laptop for pushing, fetching and pulling but, oddly, it’s fine on my desktop. Hoping today’s release might fix it.

Anyway, it made me realise the repo is actually locally stored and the commands with Github just sync the local with the remote. So assuming your local is completely up to date, you should be able to just create the remote one again and then set the upstream and it will push to it and play happily.

2 Likes

I am starting to wonder about this one a bit, not sure if its actually a wappler issue or not.

The original project was at example
https://github.com/organization-1/my-website.git and the project name was my-website.

The client went into git settings and told it to transfer to a new owner and all went ok, I then went to that new url and clicked on Code, which shows me a new HTTP address now of lets say
https://github.com/organization-2/my-website.git and the project name remained my-website.

Each time i try to edit to this new url in Wappler i get a 404 error, and even if i delete my entire .git folder as well as the one reference in the project.json file as well as the .gitignore file, and restart Wappler, it tries to do the full process from the very start and also keeps throwing a 404 error.

Is there a cache or something i need to refresh or a DNS thing, I am not sure, going to try do a manaul pull from this same url provided by GitHub and see if it works, unsure what else to try @Teodor, any suggestions.

Found another topic here

This solved it for me too.