popcodeorg / popcodeorg/popcode

401 unauthorized error when trying to export to Github from Popcode

Aperta
#2,520 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
JavaScript
Stelle
191
Fork
143
Merge medio
4g 11h
PR unite (30g)
5

Descrizione

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:

  1. Login to an account with Github Linked
  2. Click the arrow to the right of "Create Snapshot"
  3. Click "Export Repo" option in the dropdown list
  4. 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.
PopCode_Export_Github_401_Unathorized

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il flusso Export Repo: accedi con un account GitHub collegato, scegli Export Repo e ispeziona la richiesta POST a https://api.github.com/user/repos. Traccia le credenziali dell’account collegato utilizzate per quella richiesta e verifica che il flusso completato crei il repository e reindirizzi l’utente a GitHub.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
github, javascript
Ambito
api, frontend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.