"Agent encountered an error while running, we are investigating the issue."

Hi guys,

Hope you’re having a good day.

I am stuck in an endless loop of. “Agent encountered an error while running, we are investigating the issue.”

Everytime I give it a new prompt now it thinks for a minute. Then throws another “Agent encountered an error while running, we are investigating the issue.” and charges me $0.50 to $1.50 for doing absolutely nothing.

Is this an issue with Replit systems right now or an issue specific to my account or project?

2 Likes

I’ve had it happen a few times. Again, I think we’re having some bugs/growing pains with the new version.

Thanks a lot for the response Eric, I really appreciate it.

If anyone from Replit is reading this and wants to know the specifics of when the bug occurs…

Plan mode still works great.

As soon as I switch to build mode, it runs while the agent is thinking about talking to itself about what action to take.

As soon as it goes to touch a file, I get the:

“Agent encountered an error while running, we are investigating the issue.”

It still charges me $0.50 to $1.50 each time for this failed action.

I figured out what the issue was…

It was nothing to do with Agent 3.

The Agent was trying to create a brand new file and import a list of 250+ countries. I think the list was too long and the Agent was just struggling with the quantity of data.

When I prompted the agent, asking if the quantity of data was leading to the errors, it split the import up into smaller batches and things started working correctly.

1 Like

This just happened to me today - logged a support ticket.

These were some of the steps/notes the help desk shared:

”Let’s try these troubleshooting steps:

1. Start a new Agent chat: Click the chat icon on the top right of the chat pane to open a new chat.

2. Reset the container: If that doesn’t work, run this command in your Shell:

kill 1

Then refresh the page and start a new Agent chat.

3. Check your project size: Large projects (over 5GB) can cause Agent errors. Run this in your Shell:

du -sh .

Share the output with me if it shows over 5GB.

If the error persists after trying these steps, please share:
A screenshot of the error message
Your project URL

This will help me investigate further.”

Will keep this post updated, hoping to get resolved soon!

Quick Update:

My App is still having the same issue and I am unable to get out of the loop.

Support team responded with a few more solutions
*Clear your browser cache and cookies:
Chrome/Edge: Ctrl+Shift+Delete (Windows) or Cmd+Shift+Delete (Mac)
Select “Cached images and files” and “Cookies”
Clear the data and refresh the page
If that doesn’t work, try accessing your project in a different browser or incognito/private window.
If the error continues, I’ll escalate this to our technical team for further investigation since this appears to be a platform-level issue with the Agent.
*
Unfortunately none of them were able to fix the issue. This was the last response I got on Thursday Dec 4th:
*I’m connecting you with a teammate who can investigate this Agent error at a deeper technical level. We’re experiencing high demand so the teammate might take some time to get back to you. I’ve provided them with all the troubleshooting steps we’ve tried and your project details to help them investigate quickly.
*
Hoping this gets resolved soon, as I am hesitent to push any updates to production, and this is a live app.

Will keep the post updated when we get a resolution :+1:

Mystery solved…

We’d moved the app over from another account, then downgraded the original creator from Member to Viewer. That combo only broke the apps we’d transferred into the team account and caused the weird redirect loop.

As soon as we switched that user back to Member, everything started working again.

Super simple in hindsight, but the error message was so generic it could’ve meant anything.

Posting this in case someone else hits the same edge case.