Odd, anyone getting errors for node sdk deployment...
# agents
w
Odd, anyone getting errors for node sdk deployments? Getting connectivity errors for the Google plugin. Works fine on my local. Ran some test code in the agent using fetch, and got this:
Copy code
Failed to reach <https://oauth2.googleapis.com/token>: TypeError: fetch failed | cause=AggregateError [ETIMEDOUT]
l
Which Google plugin do you mean? How is your agent configured?
w
This one:
@livekit/agents-plugin-google
I've created a debug node fetch to url
<https://oauth2.googleapis.com/token>
and it's failing Still investigating issue
l
Maybe I'm misunderstanding but if you are using https://www.npmjs.com/package/@livekit/agents-plugin-google, you shouldn't need to fetch the token yourself. Make sure you have the appropriate APIs enabled on your Google API key.
w
Sorry I'm probably not very clear, I'm using the plugin which was working fine till today when i performed a deployment to the livekit cloud enviornment. I then added a debug fetch to check for connectivity issue and saw the AggregateError.
Ok bizarre.. I just bumped the base image from node 22 which I was on (and working) for a long while, to node 25 and it started working
l
Glad it's working. For completeness I looked whether there are known issues or recent trouble with Node 22 deployments and I don't see anything.
👍 1