# Help - Agent terminated due to error

**URL:** <https://discuss.ai.google.dev/t/help-agent-terminated-due-to-error/134987>\
**Category:** Google Antigravity\
**Tags:** bug\
**Created:** [March 20, 2026, 10:37pm UTC](https://discuss.ai.google.dev/t/help-agent-terminated-due-to-error/134987 "2026-03-20T22:37:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Panagiotis\_Brentas](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/panagiotis_brentas/32/107687_2.png) [@Panagiotis\_Brentas](https://discuss.ai.google.dev/u/Panagiotis_Brentas)\
**Post date:** [March 20, 2026, 10:37pm UTC](https://discuss.ai.google.dev/t/help-agent-terminated-due-to-error/134987/1 "2026-03-20T22:37:22Z")

</div>

I am trying to use the agent on antigravity and I am getting Agent terminated due to error I have tried every TBS I have found online but nothing worked . Could. you please help :

Trajectory ID: 7c5f555b-868b-41a6-a459-ab35cd1dea46  
Error: HTTP 400 Bad Request  
Sherlog:  
TraceID: 0x7d553c5f100e42d9  
Headers: {“Alt-Svc”:[“h3=“:443”; ma=2592000,h3-29=“:443”; ma=2592000”],“Content-Length”:[“382”],“Content-Type”:[“text/event-stream”],“Date”:[“Fri, 20 Mar 2026 22:32:54 GMT”],“Server”:[“ESF”],“Server-Timing”:[“gfet4t7; dur=253”],“Vary”:[“Origin”,“X-Origin”,“Referer”],“X-Cloudaicompanion-Trace-Id”:[“7d553c5f100e42d9”],“X-Content-Type-Options”:[“nosniff”],“X-Frame-Options”:[“SAMEORIGIN”],“X-Xss-Protection”:[“0”]}

{  
“error”: {  
“code”: 400,  
“details”: [  
{  
“@type”: “[type.googleapis.com/google.rpc.BadRequest”](http://type.googleapis.com/google.rpc.BadRequest%E2%80%9D),  
“fieldViolations”: [  
{  
“description”: “Invalid project resource name”,  
“field”: “name”  
}  
]  
}  
],  
“message”: “Invalid project resource name projects/”,  
“status”: “INVALID\_ARGUMENT”  
}  
}

Thank you

---

<div class="post-metadata">

**Author:** ![chunduriv](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@chunduriv](https://discuss.ai.google.dev/u/chunduriv)\
**Post date:** [March 21, 2026, 12:12am UTC](https://discuss.ai.google.dev/t/help-agent-terminated-due-to-error/134987/2 "2026-03-21T00:12:45Z")

</div>

Hi @Panagiotis_Brentas,

Welcome to the Forum,

This issue sometimes occurs when your primary email identity changes, which breaks the automated linking and results in this error. If this applies to your situation, please try the workaround suggested [here](https://discuss.ai.google.dev/t/critical-bug-http-400-invalid-project-resource-name-projects-after-gmx-to-gmail-migration/128678/2).

---

<div class="post-metadata">

**Author:** ![Panagiotis\_Brentas](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/panagiotis_brentas/32/107687_2.png) [@Panagiotis\_Brentas](https://discuss.ai.google.dev/u/Panagiotis_Brentas)\
**Post date:** [March 21, 2026, 8:28am UTC](https://discuss.ai.google.dev/t/help-agent-terminated-due-to-error/134987/3 "2026-03-21T08:28:48Z")

</div>

Hello @chunduriv ,

Thank you so much It resolved my issues.
