Exception in embedding creations

Im using langchain version 0.0.199 and openAi version 0.28.1.
in order to generate embedding if im using langchains embed.query() to create embeddings its working fine but when using embed.documents(list)
im getting below error:

Exception in embedding creations HTTPSConnectionPool(host=‘openaipublic[dot]blob[dot]core[dot]windows[dot]net’, port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x7fb2704e9640>: Failed to establish a new connection: [Errno 110] Connection timed out’))

Also both methods are working fine on local machine but 2nd one is failing on my k8’s pods.