I have an agent that, as of yesterday, was working: successfully running its tool function, and returning a summary of the response. Today, no change (same prompt, configuration, etc.), and the running of the tool works according to the "Current Activity" section to the right and progress summary in the chat window. But the agent doesn't communicate the response. It hangs "Thinking..." and an Error message appears in the bottom right, "Internal service error", which as far as I can tell is tied to {"success":false,"message":"Authentication failure. Missing xsrf token"} found in Chrome's developer tools...
Hi @Killian_Frailey,
Apologies for the issue. That is very odd that the exact same setup was previously working and has now regressed.
Let me share this with out AI Agents team, my guess is that we may have made a tweak to the code and can hopefully get it reverted and working again shortly.
Can you share a screen recording of all the steps for me to reproduce this error message on my end?
Responded in email as the thread didn't allow me to upload a video.
@Killian_Frailey what email did you send it to?
Just for future reference, we highly recommend using Loom for video recordings at it is free and easy to share in the forum ![]()
Sorry was on vacation last week. Here's a new recording I just made. (Now, instead of thinking indefinitely, it pretty quickly says the message expired.)
Now, in addition, when I try to add a new tool, the new tool is not being saved... that is, I will move to another page and then back to the Agent Configuration page and it is removed... @Jack_T can you please follow up?
Hi @Killian_Frailey,
Thank you for sharing that video! I can forward it on to our AI team and see if this is a known bug or if they have more questions to troubleshoot.
I haven't seen this bug before and agree it is very odd. Could you export the agent via JSON so I can clone it and see if the bug appears on my end? This way I can look around all the agent's set up options instead of asking you a million questions ![]()
Apologies for another issue popping up
Hopefully this will also appear when I import the JSON and I can share with this our eng team to troubleshoot.
My guess is that the agent may have entered into a corrupted state and you may need to delete it/create a new one. If the problem appears again in a new agent then we can dig in deeper, I am hoping this is a one off bug ![]()
Was the agent working previous to the thinking indefinitely/hanging with "message expired"? Or did this issue appear on first use once you set up it up?
If you could share any steps to reproduce from scratch with an agent or any steps that occurred between it working correctly and these bugs popping up that would be super helpful!
Hi @Jack_T,
See json attached. Yes, the agent worked well for a few hours when initially created. Then it started running into the issue where it would successfully call the tool and retrieve the tool's response, but it wouldn't produce the actual response to the user, and it appeared to be related to Missing xsrf token. Now it gives the "This message has expired error."
Thanks!
Killian
GTM Copilot.json (53.8 KB)
Hi @Killian_Frailey,
Thank you for sending that!
Are you able to send me a screenshot of the logs? I am curious if there are more details in there.
How long is the agent/tool 'running' or 'thinking' before it gives you this error? missing xsrf is pretty generic and it seems like the agent's query is hanging for some reason and then those are byproducts of the event timing out.
Have you tried using other model options?
Hi @Killian_Frailey,
Just wanted to double check on this, the tool might have gotten corrupted and needed to be recreated. Where you able to have any luck rebuilding the tool or trying any of my other suggestions?