Description
When I try to run this code in a virtual machine:
try:
with client.batch as batch:
for data_obj in blocks:
batch.add_data_object(
{
‘context’:data_obj.content,
‘content’: data_obj.content,
‘title’: data_obj.title,
‘page’:data_obj.page_label,
‘document’: str(document),
‘technology’: str(technology)
},
“Context”,
)
except Exception as ex:
I get the next error:
{‘error’: [{‘message’: ‘update vector: send POST request: Post “https://api.openai.com/v1/embeddings”: x509: certificate signed by unknown authority’}]}
This is the docker.compose for the weaviate docker
services:
weaviate:
volumes:
- persist:/var/lib/weaviate
command:
- --host
- 0.0.0.0
- --port
- ‘8888’
- --scheme
- http
image:
semitechnologies/weaviate:1.19.6
ports:
- 8888:8888
restart: on-failure:0
environment:
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: ‘true’
PERSISTENCE_DATA_PATH: ‘/var/lib/weaviate’
DEFAULT_VECTORIZER_MODULE: ‘text2vec-openai’
ENABLE_MODULES: ‘text2vec-openai,qna-openai’
The virtual machine where I try to deploy have a very restrictive proxy, but is already disconnected and I can access via browser to “https://api.openai.com/v1/embeddings”, but I’m still having that error.
This code work perfectly in my local.
I don’t know what can I do.
Server Setup Information
- Weaviate Server Version: 1.19,6
- Deployment Method: docker
- Multi Node? Number of Running Nodes:
- Client Language and Version: