# Problem with a deploy, proxy?

**URL:** <https://forum.weaviate.io/t/problem-with-a-deploy-proxy/1546>\
**Category:** Support\
**Created:** [February 22, 2024, 2:06pm UTC](https://forum.weaviate.io/t/problem-with-a-deploy-proxy/1546 "2024-02-22T14:06:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![garcia.e](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@garcia.e](https://forum.weaviate.io/u/garcia.e)\
**Post date:** [February 22, 2024, 2:06pm UTC](https://forum.weaviate.io/t/problem-with-a-deploy-proxy/1546/1 "2024-02-22T14:06:44Z")

</div>

### 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](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](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:

### Any additional Information

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [February 22, 2024, 9:04pm UTC](https://forum.weaviate.io/t/problem-with-a-deploy-proxy/1546/2 "2024-02-22T21:04:13Z")

</div>

hi @garcia.e ! Welcome to our community 🤗

So, Weaviate 1.19.6 is farily old. We strongely recommend you upgrading it to latest versions, as a lot has happened in terms of performance improvements and bug fixes.

Also, try using the new python client v4, as it’s more performant and, well, has a way better developer experience than v3 😉

With that said, this error is most certainly related to this restrictive proxy as I am pretty sure Open AI embeddings API has not changed since the version you are using.

There is a new feature in recent Weaviate versions that [allows you to specify a baseurl](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-openai#api-settings-openai), so maybe you can use that to point to a Open AI Proxy server (there are some open sources that can handle this, and use different apikeys, take care of booking for multiple customers, etc), but you will probably have the same issue with your proxy.

Your outbound traffic is probably being intercepted by this proxy server that is using a different, untrusted, certificate.

I believe you will have to work that out with that proxy admin 😬
