popcodeorg / popcodeorg/popcode
401 unauthorized error when trying to export to Github from Popcode
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 191
- Forks
- 143
- Merge moyen
- 4 j 11 h
- PR mergées (30 j)
- 5
Description
Describe the bug
A clear and concise description of what the bug is.
When you click on the "Export Repo" button, the call POST https://api.github.com/user/repos produces a 401 unauthorized error. This leads to the repo not being created for the person on Github.
To Reproduce
Steps to reproduce the behavior:
- Login to an account with Github Linked
- Click the arrow to the right of "Create Snapshot"
- Click "Export Repo" option in the dropdown list
- See the error
Expected behavior
A clear and concise description of what you expected to happen.
After clicking "Export Repo" a repo should be created with the PopCode code and a user should be taken to the Github page.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:98.0) Gecko/20100101 Firefox/98.0
Additional context
This might be a global PopCode issue, which means the Unit 9 project where students export to Github might be stalled if it is not fixed.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par reproduire le flux Export Repo : connectez-vous avec un compte GitHub associé, choisissez Export Repo et examinez la requête POST vers https://api.github.com/user/repos. Suivez les identifiants du compte associé utilisés pour cette requête et vérifiez que le flux terminé crée le dépôt et redirige l’utilisateur vers GitHub.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- github, javascript
- Domaine
- api, frontend
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100