Azure Container App cannot start : 'AsyncPgVector' object has no attribute '_bind'
what follows is the log from the container:
`2024-07-18T06:10:51.977995561Z return wrapped(self, *args, **kwargs)
2024-07-18T06:10:51.978002664Z File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 316, in init
2024-07-18T06:10:51.978022051Z self._bind = connection if connection else self._create_engine()
2024-07-18T06:10:51.978050684Z File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 367, in _create_engine
2024-07-18T06:10:51.978056404Z return sqlalchemy.create_engine(url=self.connection_string, **self.engine_args)
2024-07-18T06:10:51.978062266Z File "
2024-07-18T06:10:52.188295543Z Exception ignored in: <function PGVector.del at 0x73fd3f873e20>
2024-07-18T06:10:52.188447576Z Traceback (most recent call last): 2024-07-18T06:10:52.188474917Z File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/pgvector.py", line 359, in del 2024-07-18T06:10:52.188529549Z if isinstance(self._bind, sqlalchemy.engine.Connection): 2024-07-18T06:10:52.188536822Z AttributeError: 'AsyncPgVector' object has no attribute '_bind'`
I made a research and I think a PORT configuration is missing, but I don't know how to set that port. My environment variables are the same as my local installation which is working perfect. I've checked that a couple of times.
Any help ?
I am also encountering the same error when deploying to Google Cloud Run
I am also encountering the same error when deploying to Google Cloud Run
Update: Matching RAG_PORT to the Container Port solves the issue in my case