Azure-Samples / Azure-Samples/llama-index-javascript

`azd auth login` will fail in GitHub CodeSpaces Browser

Aperta
#34 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
76
Fork
33
Merge medio
5g 20h
PR unite (30g)
1

Descrizione

**Describe the bug**
Clicking the `Open in GitHub Codespaces` button will open the sample in GitHub Codespaces in web browser. The README ask us to run `azd auth login` command in terminal. Running this command in browser will have error:

**To Reproduce**
Steps to reproduce the behavior:
1. Go to [AI app templates sample page](https://azure.github.io/ai-app-templates/repo/azure-samples/llama-index-javascript/)
2. Click on `Open in GitHub Codespaces` button. This will open the sample in GitHub Codespaces in web browser.
3. Run `azd auth login` command in VS Code terminal.

![Image](https://github.com/user-attachments/assets/d03456cb-d317-471d-87b0-8c449d7438e0)

4. See error: `localhost refused to connect.`

**Expected behavior**
When connect to the GitHub Codespaces via VS Code desktop locally, the `azd auth login` command can successfully logged in.

**Screenshots**
![Image](https://github.com/user-attachments/assets/58ad5fec-c45e-4383-bcc3-51e14c11aa0e)
hyperlink: http://localhost:42025/?code=xxx&session_state=xxx

**Desktop (please complete the following information):**
- OS: Microsoft Windows 11 Enterprise. 10.0.26100 Build 26100
- Browser Chrome
- Version [e.g. 22]

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con le istruzioni del README per `azd auth login` e riproduci il comando in un GitHub Codespace basato su browser, quindi confrontalo con un Codespace connesso localmente. Identifica il punto di ingresso dell'autenticazione o la documentazione pertinente e considera l'issue completata quando l'accesso basato su browser non fallisce più oppure il workflow supportato e la limitazione sono documentati chiaramente.

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

Valutazione

Stack tecnologico
azure, github
Ambito
authentication, cloud
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.