Code Monkey home page Code Monkey logo

qdrant-go's Introduction

πŸ‘¨β€πŸ’» Senior Backend Developer at UFirst | ☁️ Cloud Adept | 🐧Linux/IoT Expert | 🏝️ Full-remote Addicted | ✍️ Content Creator

Blog - simonevellei.com simonevellei simonevellei

Henomis's github stats

trophy

qdrant-go's People

Contributors

henomis avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

qdrant-go's Issues

Issue in the restclient.go

First of all - this client is much better, compared to official one. Thank you, sir!

The issue is in the bad code of restclientgo dependency, namely in restclient.go:

func (r *RestClient) do(ctx context.Context, method httpMethod, request Request, response Response) error {

       ...........

	response.SetStatusCode(httpResponse.StatusCode)
	if httpResponse.StatusCode >= 400 {
		response.SetBody(httpResponse.Body)
		return nil
	}

In case error code is 400, client returns "ok" and no detailed information about the error server got parsing the request. I had to modify the code in order to read the error message and to fix my client usage - I was sending empty string in distance field, and got cryptic error in logs of qdrant itself - error code 400.

The error message I got was:

{"error":"Format error in JSON body: data did not match any variant of untagged enum VectorsConfig at line 1 column 39"},"time":0.0}

It took me some time to figure out it was because of empty string instead of distance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.