Azure / Azure/azure-sdk-for-python

Requesting answer_call using azure-communication-callautomation and getting error

Aperta
#38,974 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Client Communication - Call Automation customer-reported needs-team-attention question Service Attention
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
213

Descrizione

- **Package Name**: azure-communication-callautomation
- **Package Version**: 1.4.0b1
- **Operating System**: linux
- **Python Version**: 3.11

**Describe the bug**
I'm using azure-communication-callautomation, It was working fine till 21 dec 2024, and on 23 dec 2024 I started getting error
`(None) No HTTP resource was found that matches the request URI 'https://nextpma.plat.skype.com/calling/callConnections:answer?api-version=2024-11-15-preview'`
I have not changed anything is code and this error suddenly started.

**To Reproduce**
Steps to reproduce the behavior:
1. create azure communication services, get number in it.
2. create event-grid trigger azure function.
3. subscribe azure function from azure communication service, in event tab.
4. write code to catch the event and answer call in azure function
5. sample code
`CALL_CONNECTION_CLIENT.answer_call(
incoming_call_context=incoming_call_context,
callback_url=ANSWER_CALL_CALLBACK_URL,
cognitive_services_endpoint=COGNATIVE_SERVICES_ENDPOINT, # Correctly pass the endpoint
operation_context=f"{caller_id}"
)'
6. It deploy on azure function, and call on the azure number, you will get error in logs.

**Expected behavior**
call should get answered.

**Screenshots**
![Image](https://github.com/user-attachments/assets/df82934d-63a3-4d90-97a4-e91b64ae3e5c)
in last 2-3 lined you can observe error

**Additional context**
I am adding logs for analysis:
Received event: {'to': {'kind': 'phoneNumber', 'rawId': '4:+12222221673', 'phoneNumber': {'value': '+1222222673'}}, 'from': {'kind': 'phoneNumber', 'rawId': '4:+1222222230', 'phoneNumber': {'value': '+12222222230'}}, 'serverCallId': 'aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jjjjjjjjjjjjjjjjjjjjjjjjjjjjjb2QtYWtzLmNvbnYuc2t5cGUuY29tL2NvbnYvaGlEajcwZ2Z1RUN0UFJWSk1SNllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllAzODE4MQ==', 'callerDisplayName': 'NEW YORK NY', 'incomingCallContext': 'eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJjYyI6Ikg0c0lBQUFBQU.eyJhbGcnpGaU5MbzlUT0EtYWhnLWNmQXRKRHAzOE5uYm9CU3VHQmpMS0NJUjFuZllrMk5RZ2pFSW5TRkhzNDZsYzR3QnZkdndzcEVPeWdRV0pWMFRPMVdjekxhSTFrWW0tOENWVnFRYVFISmJZTzhObi1xQ1RFWEM4NjNPcnB4Zk1ValhJdTlQM0kZaelhidUVGTFBYRXNNRVFYN0Q0YjFqOXNCOFVwN0ZJLTVnS0YyUHgwTHpTbHN2WWNfeUdpQWF3akhWUjN3T044Y3JFSlljWFhrNms3dGNGYVZzOW0xN21OWV9PZGxHMGx2eDB6T3hNdWczdXZfY0UEJLRW9xTGVnQUFWV3JjdTRDWVBfUnR3RE83TzQ3TlpRIn0.', 'correlationId': 'fdf8ee20-5844-498d-a1f1-a9828c9ef499'}

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Iniziare con l’invocazione di answer_call di azure-communication-callautomation 1.4.0b1 e con l’URI della richiesta riportata, utilizzando l’ambiente Python 3.11 e Linux indicato per riprodurre il problema. Confrontare la richiesta API generata con l’endpoint e la versione API supportati dal servizio; il lavoro è completato quando la chiamata in arrivo viene risposta senza l’errore No HTTP resource.

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

Valutazione

Stack tecnologico
azure, python
Ambito
api, backend, cloud
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.