Errore 404 dopo cambio permessi #191732
Replies: 3 comments
-
|
This usually isn’t just a “visibility delay” issue — it’s often related to how GitHub handles cached access and old references after a repo switches from private → public. A few things that specifically cause 404 in this scenario:
Hard refresh (Ctrl + Shift + R)
Old bookmarks They may still reference a state where the repo was private. Re-copy the repo URL from the main page and try again.
Toggle visibility again (public → private → public)
If none of these fix it after ~10–15 minutes, it’s likely a GitHub-side sync delay — but in most cases, one of the above resolves it immediately. |
Beta Was this translation helpful? Give feedback.
-
🔍 Cause comuni dell'errore 404 dopo cambio visibilitàQuando un repository passa da privato a pubblico, GitHub aggiorna i permessi, rigenera alcuni endpoint e sincronizza l'indice di Code Search. Un
✅ Passaggi di risoluzione1. Verifica lo stato effettivo del repositoryVai su 2. Aggiorna le credenziali GitI client Git memorizzano le credenziali. Dopo un cambio di visibilità, un PAT con scope limitati può restituire 404 invece di 403. Controlla il remote: git remote -v
# Output atteso: https://github.com/<username>/<repo>.gitSe usi HTTPS, rigenera o modifica il tuo Personal Access Token assicurandoti che includa lo scope Aggiorna le credenziali locali: # Rimuovi credenziali memorizzate (macOS)
git credential-osxkeychain erase
# Windows (Git Credential Manager)
git credential-manager reject host=github.com
# Effettua un nuovo fetch/push per reinserire il token
git fetch originSe usi SSH, verifica la connessione: ssh -T git@github.com
# Dovrebbe restituire: Hi <username>! You've successfully authenticated...3. Svuota cache e verifica i redirectLa CDN di GitHub e il tuo browser possono memorizzare la risposta 404/403 del periodo privato:
Se il repository è stato rinominato, GitHub crea un redirect automatico. Assicurati che la barra degli indirizzi non mostri un vecchio percorso. 4. Aggiornamento indice Code SearchDopo un cambio di visibilità, l'indice di ricerca codice richiede 5–15 minuti per sincronizzarsi. Nel frattempo, alcuni percorsi interni o filtri avanzati restituiscono 404.
📖 Documentazione ufficiale💡 Prossimi passiSe il problema persiste, rispondi con:
Con questi dettagli potrò indicarti la soluzione mirata. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @cirotorelli-sys, thanks for participating! Unfortunately, we don’t currently have moderators for languages other than English. Until that changes, we need to ask that everyone use English here in the GitHub Community when posting to ensure discussions are adhering to our Code of Conduct. We’ll be locking this post for now, but please feel encouraged to create a new discussion in English if you still need support. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Code Search and Navigation
Body
Avevo impostato i permessi del mio repositori a privato, poi cambiato nuovamente a public ma ora continuo a ricevere errore 404
Beta Was this translation helpful? Give feedback.
All reactions