-
Hello folks, I'm creating a project called Unfork for users to easily login using their GitHub account and delete forks that they have. Using the provider_token, I was able to get the repos that the user is an owner of.
However, I'm getting an error when I try to delete repos.
This is the relevant code used
Any help will be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi there @lyqht! 👋 It sounds like the credential you're using to access the API doesn't have permission to delete a repo. How are you authenticating? If you're not sure, then I'm happy to take a look at our logs and figure it out. To do that, I'll need the request ID. You can get that by catching the error and logging |
Beta Was this translation helpful? Give feedback.
Hi there @lyqht! 👋 It sounds like the credential you're using to access the API doesn't have permission to delete a repo. How are you authenticating?
If you're not sure, then I'm happy to take a look at our logs and figure it out. To do that, I'll need the request ID. You can get that by catching the error and logging
error.response.headers
.