DEV Community

Cover image for Requested URL returned error: 403
Shafia Rahman Chowdhury
Shafia Rahman Chowdhury

Posted on

4

Requested URL returned error: 403

The image below shows a 403 error which means means credentials errors or forbidden (you don’t have permission to push).

Image description

Solution-1

Step-1: Check if you are pushing the code to your repository



git remote -v


Enter fullscreen mode Exit fullscreen mode

Step-2: If it is not your repository, open a new repository in your GitHub

Image description

Step-3: Copy your repository link

Image description

Step-4: Go to the terminal and write the following command:



git remote set-url origin your-repo-link


Enter fullscreen mode Exit fullscreen mode

After the entering command, check if the git repository url changed. Write git remote -v on your terminal.

Step-5: Then, run these commands one by one



git branch -M main
git push -u origin main

Enter fullscreen mode Exit fullscreen mode




Solution-2

Step-1: Go to your Start tab on windows and search for Credential Manager.

Image description

Step-2: Click on the Credential Manager and then click on Windows Credential

Image description

Step-3: Below, Generic Credentials you will see git:https://github.com. Remove it.

Step-4 Follow the steps in this blog
https://dev.to/shafia/support-for-password-authentication-was-removed-please-use-a-personal-access-token-instead-4nbk

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay