popcodeorg / popcodeorg/popcode
401 unauthorized error when trying to export to Github from Popcode
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 191
- Forks
- 143
- Ø Merge
- 4 T. 11 Std.
- Gemergte PRs (30 T.)
- 5
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Export Repo-Ablauf zu reproduzieren: Melde dich mit einem verknüpften GitHub-Konto an, wähle Export Repo und untersuche die POST-Anfrage an https://api.github.com/user/repos. Verfolge die für diese Anfrage verwendeten Anmeldedaten des verknüpften Kontos und überprüfe, dass der abgeschlossene Ablauf das Repository erstellt und den Benutzer zu GitHub weiterleitet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- github, javascript
- Bereich
- api, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100