While getting embeddings getting this 104 error

Im tring to get embeddings using get_embedding from openai lib

from openai.embeddings_utils import get_embedding
x = "Hello World!"
emb = get_embedding(x, engine='text-embedding-ada-002')

but hitting connection refused error.

openai.error.APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

Is lib dead or am I trying get embeddings in wrong way ?

I have set my API key as env variable also in the script before.

hi, did you solve this issue? i got the same error code. thx