-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in connecting remote user #9
Comments
While running python -m realtime_agent.main server, after hit [start_agent] -> (http://localhost:8080/start_agent), I'm facing issue with remote user joining in my channel. Python version: 3.12 agora_openai_remote_user_not_joined_traces.txt cc: @akaminnovations |
Do you see any errors on the front-end console? |
@digitallysavvy , No I just run the backend server in localhost and invoked http://localhost:8080/start_agent via postman, api receives success response as "Agent Created", post that in backend console the attached error came from Agora. |
Do you have a live user in the Agora channel? |
After channel created It authorising OPENAI session are created, But conversional AI not joined in call , Even live user in the channel or not Same Timeout Issue. I tried with both |
@satizzz39 do you have the channel name you were using? |
@plutoless , These are the channel names I passed for local host start_agent endpoint 90bb692f-1d9b-4b3a-b492-4df7d2064i2k |
@plutoless @digitallysavvy , Any update on this please ? |
hi @satizzz39 i checked the logs and it seems no user is joinning as client. this is the reason, the agent will quit if no user exists in channel for 15 seconds. which client do you use to join agora rtc? |
Yes after ws scocket connected and session created, I'm expecting OPENAI gpt-4o-realtime-preview conversational AI needs to join that channel, but its not joining. |
@satizzz39 ai is joinning the channel. but you will need to have a client joinning to send voice to it. the python ai agent joined successfully according to the logs i find for your channel. it will wait for client end user to join to talk to it and will quit if no human joins after 15 secs. |
@plutoless App id: 99a9308db8364fe49bab7159f05c4c10 |
from the logs it seems you failed to join web. could you pls take a look at the browser console logs? |
@plutoless , could please check the root cause of this failure to join in channel, All I followed exact steps in documentations |
@satizzz39 you will need to use a token instead of your appid when you join the channel on web. |
@plutoless , Generated temp token and joined to channel successfully, BUT same error in backend. token used: 007eJxTYPiiPqnP+oC6g9tCdmdtibojx9k8Nbfuv3JH28HW4MrGbGkFBgtzM1MDU0sLE6OUZBNj8zSLxOQ0SwNjk6Qkc0NDS0Oz9WX26Q2BjAzJx+sZGKEQxFdhMDRISjKzNErTNUyxTNI1STJO1E0ysTTSNUlJM08xMjAzyTTKZmAAAKLDJNA= channel id: 10bb692f-1d9b-4b3a-b492-4df7d2064i2k |
@satizzz39 you are using different project for agent and client. you will need to use the same project for them. |
you are using |
you have configured appid and certificate in .env, which is from project You just need to generate temp token for project |
@plutoless , configured correct App id, and token From console I confirmed user joined Now user joined but error in further steps, Could please check this. |
it's working fine for me... just tested could you pls change verbose in this line to True and try again?
|
and share me the logs if possible |
@plutoless , changed verbose=True lot of event messages displayed like this below, no responses for my audio and after few mins exception message occured. 2024-11-21 18:39:08,063 - realtime_agent.realtime.connection - INFO - -> {"event_id": "a930f86e-8ba4-4a44-b19d-840e9312fac3", "audio": "NAQVBPEDkAPzAn4ChgL2An0D9wNxBLMEUARBA/8B7AALAGX/Lv9v/+P/PgB5AMEAMQGsAQwCQwI6AsQB9QAmAH7/9/7X/nn/tQAIAjQDQATpBLoEzAPOAi4CxQF+AZwB...", "type": "input_audio_buffer.append"} |
could you pls share me the full logs? |
backend terminal front end console logs 00:22:44:662 Agora-SDK [DEBUG]: current web page is hidden
AgoraRTC_N.js:5 00:23:02:919 Agora-SDK [DEBUG]: Cannot recognized as ip address: 129-227-108-211.edge.agora.io, use as host |
the log is not complete. i mainly need the backend logs. could you pls share a complete copy of your backend logs? |
def from_dict(data_class, data):
"""Recursively convert a dictionary to a dataclass instance."""
if is_dataclass(data_class): # Check if the target class is a dataclass
fieldtypes = {f.name: f.type for f in data_class.__dataclass_fields__.values()}
return data_class(**{f: from_dict(fieldtypes[f], data[f]) for f in data})
elif isinstance(data, list): # Handle lists of nested dataclass objects
return [from_dict(data_class.__args__[0], item) for item in data]
else: # For primitive types (str, int, float, etc.), return the value as-is
return data
|
Log as below
ERROR - Error waiting for remote user
ERROR - Error running agent
The text was updated successfully, but these errors were encountered: