ebug this, everthing is fine env is correct, the same code is running fine in another device. so what could be the potenstial issue025-08-22 14
4530,926 - INFO livekit.agents - registered worker {"id": "AW_nX8eoKZzjwXv", "url": "
wss://utkarshpc-9jcqjqam.livekit.cloud", "region": "India", "protocol": 16}
2025-08-22 14
4602,979 - INFO - received job request
2025-08-22 14
4602,979 - INFO livekit.agents - received job request {"job_id": "AJ_Hc6awiCTE37H", "dispatch_id": "", "room_name": "*", "agent_name": "bigship-outbound-caller", "resuming": false}
2025-08-22 14
4603,061 - INFO - initializing job runner
2025-08-22 14
4603,061 - INFO livekit.agents - initializing job runner {"tid": 20468}
2025-08-22 14
4603,062 - INFO - Prewarming models...
2025-08-22 14
4603,062 - INFO __mp_main__ - Prewarming models...
2025-08-22 14
4603,161 - INFO - Silero VAD model prewarmed successfully.
2025-08-22 14
4603,161 - INFO __mp_main__ - Silero VAD model prewarmed successfully.
2025-08-22 14
4603,162 - INFO - job runner initialized
2025-08-22 14
4603,162 - INFO livekit.agents - job runner initialized {"tid": 20468, "elapsed_time": 0.1}
2025-08-22 14
4603,162 - DEBUG - Using proactor: IocpProactor
2025-08-22 14
4603,162 - DEBUG asyncio - Using proactor: IocpProactor
2025-08-22 14
4604,801 - INFO - Agent connected to room: *, job_id: AJ_Hc6awiCTE37H, call_id: 4ad4aed8-3363-4e00-b874-9252ff0baf7b
2025-08-22 14
4604,801 - INFO __mp_main__ - Agent connected to room: *, job_id: AJ_Hc6awiCTE37H, call_id: 4ad4aed8-3363-4e00-b874-9252ff0baf7b
2025-08-22 14
4604,962 - INFO - Placing outbound call to:
+918439592468
2025-08-22 14
4604,962 - INFO __mp_main__ - Placing outbound call to:
+918439592468
2025-08-22 14
4604,963 - DEBUG - http_session(): creating a new httpclient ctx
2025-08-22 14
4604,963 - DEBUG livekit.agents - http_session(): creating a new httpclient ctx
2025-08-22 14
4605,174 - ERROR - unhandled exception while running the job task
Traceback (most recent call last):
File "D:\Bigagent\venv\Lib\site-packages\opentelemetry\util\_decorator.py", line 71, in async_wrapper
return await func(*args, **kwargs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Bigagent\venv\Lib\site-packages\livekit\agents\ipc\job_proc_lazy_main.py", line 240, in _traceable_entrypoint
await self._job_entrypoint_fnc(job_ctx)
File "D:\Bigagent\uniid.py", line 258, in entrypoint
await ctx.api.sip.create_sip_participant(api.CreateSIPParticipantRequest(
File "D:\Bigagent\venv\Lib\site-packages\livekit\api\sip_service.py", line 416, in create_sip_participant
return await self._client.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Bigagent\venv\Lib\site-packages\livekit\api\twirp_client.py", line 128, in request
error_data = await resp.json()
^^^^^^^^^^^^^^^^^
File "D:\Bigagent\venv\Lib\site-packages\aiohttp\client_reqrep.py", line 749, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 401, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='
https://utkarshpc-9jcqjqam.livekit.cloud/twirp/livekit.SIP/CreateSIPParticipant'
2025-08-22 14
4605,174 - ERROR livekit.agents - unhandled exception while running the job task
Traceback (most recent call last):
File "D:\Bigagent\venv\Lib\site-packages\opentelemetry\util\_decorator.py", line 71, in async_wrapper
return await func(*args, **kwargs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Bigagent\venv\Lib\site-packages\livekit\agents\ipc\job_proc_lazy_main.py", line 240, in _traceable_entrypoint
await self._job_entrypoint_fnc(job_ctx)
File "D:\Bigagent\uniid.py", line 258, in entrypoint
await ctx.api.sip.create_sip_participant(api.CreateSIPParticipantRequest(
File "D:\Bigagent\venv\Lib\site-packages\livekit\api\sip_service.py", line 416, in create_sip_participant
return await self._client.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Bigagent\venv\Lib\site-packages\livekit\api\twirp_client.py", line 128, in request
error_data = await resp.json()
^^^^^^^^^^^^^^^^^
File "D:\Bigagent\venv\Lib\site-packages\aiohttp\client_reqrep.py", line 749, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 401, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='
https://utkarshpc-9jcqjqam.livekit.cloud/twirp/livekit.SIP/CreateSIPParticipant'