Vertex AI - throwing error in prod

I really don’t know maybe the errors is coming from my end or I didn’t set it up properly cause this is my first time using vertex with Gemini and places api.

But everything seems fine locally but when i try to deploy for texting it stop working no error in the console despite the fact that i console log each step but i see an error when I insert the network tab in chrome am seeing "{“error”:“An unexpected error occurred”} ".

so my question is that when I login to google cloud using the sdk and my location and project Id is set that’s all right? secondly is there anything i need to do when deploying am deploying to vercel and i also use firebase hosting to test maybe something is not right with vercel but still the same.

testing deploy link:Loca
expectation: am expecting a response from vertex.