pinecone.core.exceptions.PineconeProtocolError via Streamlit cloud

Hi everyone,

I built a webapp on streamlit cloud which queries my pinecone vector db. Most of the time it works perfectly, but every so often i get an pinecone.core.exceptions.PineconeProtocolError when the vector.query line is called - please see screenshot

This doesnt happen on local host so it’s probably related to web host / streamlit or something I am not catching properly?

Any ideas? thanks in advance for your help and guidance.