Giter Site home page Giter Site logo

com.vesoft.nebula.client.graph.exception.AuthFailedException: Auth failed: Authenticate failed: Expected protocol id ffffff82 but got 0 about nebula-java HOT 9 CLOSED

vesoft-inc avatar vesoft-inc commented on August 15, 2024
com.vesoft.nebula.client.graph.exception.AuthFailedException: Auth failed: Authenticate failed: Expected protocol id ffffff82 but got 0

from nebula-java.

Comments (9)

Nicole00 avatar Nicole00 commented on August 15, 2024 1

Dear @kinda830,
Could you please check one thing: the nebula java client's version matches the nebula graph server side?

  • java-client version
  • nebula-graph version

Thanks.

nebulagraph : 2.0.0-nightly
java-client: 2.0.0

java-client:2.0.0-SNAPSHOT 这个版本的依赖无法解决,找不到这个版本

You are using Nebula nightly, please make sure the client version is 2.0.0-SNAPSHOT. You can find the snapshot version from there: https://oss.sonatype.org/content/repositories/snapshots/com/vesoft/client/2.0.0-SNAPSHOT/

In your own pom.xml, you can add snapshot repository to auto download client-2.0.0-SNAPSHOT.jar.

<repositories>
        <repository>
            <id>snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        </repository>
    </repositories>

from nebula-java.

aminmaghsodi avatar aminmaghsodi commented on August 15, 2024 1

Finally I found it!
In my case, the error was using one instance of session by multi threads.
I have designed an object pool of sessions which keeps using sessions and assigns them to requester. In my case there was some cases that two threads request for one instance of session and therefore it throws the mentioned error.
I think you can search your code for some cases that session could be used by 2 requester by executing session.execute()

from nebula-java.

wey-gu avatar wey-gu commented on August 15, 2024

Dear @kinda830,

Could you please check one thing: the nebula java client's version matches the nebula graph server side?

  • java-client version
  • nebula-graph version

Thanks.

from nebula-java.

kinda830 avatar kinda830 commented on August 15, 2024

nebulagraph : 2.0.0-nightly
java-client: 2.0.0

java-client:2.0.0-SNAPSHOT 这个版本的依赖无法解决,找不到这个版本

from nebula-java.

kinda830 avatar kinda830 commented on August 15, 2024

Dear @kinda830,

Could you please check one thing: the nebula java client's version matches the nebula graph server side?

  • java-client version
  • nebula-graph version

Thanks.

nebulagraph : 2.0.0-nightly
java-client: 2.0.0

java-client:2.0.0-SNAPSHOT 这个版本的依赖无法解决,找不到这个版本

from nebula-java.

wey-gu avatar wey-gu commented on August 15, 2024

Dear @kinda830

You are right, 2.0.0-SNAPSHOT should be the client to be used as there were thrift changes between 2.0.0-nightly and 2.0.0 GA+, thus the RPC call including authentication itself may encounter protocol issues as you did through 2.0.0 client.

@Nicole00 could you help hint @kinda830 's dependencies issue?

Thanks!

from nebula-java.

Nicole00 avatar Nicole00 commented on August 15, 2024

com.vesoft.nebula.client.graph.exception.AuthFailedException: Auth failed: Authenticate failed: Expected protocol id ffffff82 but got 0
集群的登录验证没有开,但是登录失败

Please check if you use the correct graphd's host and port, can you post your code to establish a connection with Nebula Graph ?

from nebula-java.

aminmaghsodi avatar aminmaghsodi commented on August 15, 2024

Hi, I have the same problem.
I use client v2.0.0 and server v2.0.0
Today I see this error, every time I start my application.
Sometimes when I activate debug mode, when I execute session.execute(some_command), client executes it well, but when I deactivate debug mode and run it normally it throws the below exception.

com.vesoft.nebula.client.graph.exception.IOErrorException: Expected protocol id ffffff82 but got 7
	at com.vesoft.nebula.client.graph.net.SyncConnection.execute(SyncConnection.java:74) ~[client-2.0.0.jar:?]
	at com.vesoft.nebula.client.graph.net.Session.execute(Session.java:46) ~[client-2.0.0.jar:?]

from nebula-java.

wey-gu avatar wey-gu commented on August 15, 2024

Will close it as it's been inactive for days. Feel free to reopen it.

from nebula-java.

Related Issues (20)

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.