a2aproject / a2aproject/a2a-samples

[Bug]: Demo project failed to start

Aberta
#11 0 comentários 0 reações 1 responsável Reivindicada por @pstephengoogle Ver no GitHub
Linguagem predominante
Jupyter Notebook
Estrelas
1.8k
Forks
751
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

### What happened?

I followed the documentation to test the demo-ui project, but an error occurred:

file_name: static_file_serving.py
row: 178

### Relevant log output

```shell
raise Exception("Unexpected CSP violation:", violated_directive, report)
Exception: ('Unexpected CSP violation:', 'font-src', {'csp-report': {'document-uri': 'http://localhost:12000/', 'referrer': '', 'violated-directive': 'font-src', 'effective-directive
': 'font-src', 'original-policy': "default-src 'self'; font-src 'self' fonts.gstatic.com data:; frame-src *; img-src 'self' data: https: http: blob:; media-src 'self' data: https: bl
ob:; style-src 'self' 'unsafe-inline' fonts.googleapis.com; script-src 'self' 'nonce-GP0iNdjiWzq2TA1q0JyXRQ' https://cdn.jsdelivr.net; trusted-types angular angular#unsafe-bypass lit
-html highlight.js; require-trusted-types-for 'script'; report-uri /__csp__; frame-ancestors 'self'", 'disposition': 'enforce', 'blocked-uri': 'http://at.alicdn.com/t/font_1334179_yeeyzhmgwya.ttf?t=1564991718045', 'line-number': 19, 'source-file': 'http://localhost:12000/', 'status-code': 200, 'script-sample': ''}})
```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

The error is in static_file_serving.py at line 178, where a CSP violation for font-src is raised. Examine the Content Security Policy configuration and the blocked font URI 'http://at.alicdn.com'. Check if the font source needs to be added to the policy or if the request should be allowed. Run the demo-ui project locally to reproduce the issue and test the fix.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
python
Domínio
backend, security
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
45/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.