UnexpectedStatusCodeException: batch response! Unexpected status code: 502, with response body: None

This is my code and error message is below my code

client.batch.configure(batch_size=1)  # Configure batch
with client.batch as batch:  # Initialize a batch process
    for i in range(0,10):  # Batch import data
        print(f"importing question: {i+1}")
        
        d1 = str(df.iloc[i,0])
        d4 = df.iloc[i,3]
        d12 = df.iloc[i,15]
        d13 = df.iloc[i,17]
        d14 = int(df.iloc[i,18])
        d15 = int(df.iloc[i,19])
        d16 = int(df.iloc[i,20])
        d19 = df.iloc[i,23]
        
        ans1 = get_ans1(i)
        ans2 = get_ans2(i)
        ans4 = get_ans4(i)
        ans5 = get_ans5(i)
        ans6 = get_ans6(i)
        ans7 = get_ans7(i)
        ans8 = get_ans8(i)
        ans10 = get_ans10(i)
        ans11 = get_ans11(i)
        ans12 = get_ans12(i)
        ans21 = get_ans21(i)
        ans22 = get_ans22(i)
        ans24 = get_ans24(i)
        
        
        properties = {
            
            "articleNo": d1,
            "exclusiveSpace": d4,
            "realestateTypeName": d12,
            "tradeTypeName": d13,
            "warrantPrice": d14,
            "dealPrice": d15,
            "rentPrice": d16,
            "exposureAddress": d19,
            
            
            
            "ans1" : ans1,
            "ans2" : ans2,
            "ans4" : ans4,
            "ans5" : ans5,
            "ans6" : ans6,
            "ans7" : ans7,
            "ans8" : ans8,
            "ans10" : ans10,
            "ans11" : ans11,
            "ans12" : ans12,
            "ans21" : ans21,
            "ans22" : ans22,
            "ans24" : ans24
            
            
            
        }
        
        
        batch.add_data_object(
            data_object=properties,
            class_name="Question"
        )

UnexpectedStatusCodeException: batch response! Unexpected status code: 502, with response body: None.

What should I do?

I solved this problem by subscribing weaviate vector DB

Hi!

Not sure I understood. You didn’t have a Weaviate server to use?

Let me know how I can help you :slight_smile:

Also: we have a free, weekly intro workshop!
Join us: Weaviate - vector database

Hey im still continuously having this issue can you please help?

An exception occurred: batch response! Unexpected status code: 502, with response body: None.

I solved this by subscribing weaviate cloud service standard version. But this occurs again for me…

I am using a paid version of weavite and still having the same problem