colecorrente
colecorrente
Was experiencing this on Chrome with `9.21.2`. Adding `style={{width: "100%", height: "100%"}}` to the `` component itself has fixed this for me weirdly.
If there is no way to catch the error, how do we prevent this error from being uncaught and crashing our service? My service crashes as a result of this...
``` try { const result = streamText({ model: anthropic("claude-sonnet-4-20250514"), stopWhen: stepCountIs(25), maxRetries: 2, tools, onError: ({error}) => { Logger.error("Agent onError", error); // { Logger.error("Agent pipeUIMessageStreamToResponse", error); //
``` Promise.all([result.providerMetadata, result.usage, result.totalUsage]).then( ([providerMetadata, usage, totalUsage]) => { Logger.debug( JSON.stringify( { providerMetadata, usage, totalUsage, }, null, 2 ) ); } ); ``` This code was my problem. This Promise.all...