Giter Site home page Giter Site logo

Comments (14)

yasserf avatar yasserf commented on May 20, 2024

Hey Giovanni,

I'll look into why tagging the release did not update it correctly, as far as I'm aware the connection type has been updated so the AREQ is an odd regression.

I'll be looking into this today and inform you once its complete,
Thanks,
Yasser

from deepstream.io-client-java.

gioma68 avatar gioma68 commented on May 20, 2024

Thanks very much Yasser for your prompt reply. I'll wait for your next info. Have a nice day and good work.

from deepstream.io-client-java.

jdmnd avatar jdmnd commented on May 20, 2024

Hey @gioma68,

We've just released a fix for some authentication issues in the client and I managed to get the release deploying properly on tags, so it's now available as v1.0.1 on bintray/maven.

Let me know if this fixes the issues you were having,
John

from deepstream.io-client-java.

gioma68 avatar gioma68 commented on May 20, 2024

hi @jdmnd, i'll try and let you the result soon ..thank very much for your strong support.

Giovanni

from deepstream.io-client-java.

gioma68 avatar gioma68 commented on May 20, 2024

We compile the java project with the new client v1.0.1 on bintray/maven (adding the repo reference to pom.xml).
But DP server hang with this error log when client establish the first connection:
INFO | Listening for health checks on path /health-check CLUSTER_JOIN | ivsavwkl-whjldk4pd40g INFO | Listening for websocket connections on 0.0.0.0:6020/deepstream INFO | Deepstream started INCOMING_CONNECTION | from undefined (undefined) TypeError: name.charCodeAt is not a function TypeError: name.charCodeAt is not a function at DistributedStateRegistry._createCheckSum (nexe.js:21420:55) at DistributedStateRegistry._add (nexe.js:21345:20) at DistributedStateRegistry.add (nexe.js:21236:9) at PresenceHandler._handleJoin (nexe.js:26705:26) at emitOne (events.js:96:13) at ConnectionEndpoint.emit (events.js:188:7) at ConnectionEndpoint._registerAuthenticatedSocket (nexe.js:24444:8) at ConnectionEndpoint._processAuthResult (nexe.js:24532:8) at HttpAuthenticationRequest._onComplete (nexe.js:20536:9) at done (nexe.js:19477:14) CLUSTER_LEAVE | ivsavwkl-whjldk4pd40g

In the client side, the flow work with login OK (even if we can't parse the json response - obviously). Consider we have enabled http auth that point to a rest server for user login credentials verification, but this work well in the previous version.

from deepstream.io-client-java.

AlexBHarley avatar AlexBHarley commented on May 20, 2024

Hey @gioma68, we tried to replicate this but weren't able to. Could you get back to us with a java code snippet we can run?

from deepstream.io-client-java.

gioma68 avatar gioma68 commented on May 20, 2024

Hi @AlexBHarley this is the code part of our java server that establish a connection to DP and login with a test account (this code work well with DP 1.1.1)

`......

		try {
			ds = new DeepstreamClient(ServerParams.DEEPSTREAM_HOST);
			Trace.println("DEEPSTREAM: Try to login with GAME-SERVER account...");
			JsonObject authData  = new JsonObject();
			// USE UID/PWD credentials for GAME SERVER
			authData.addProperty("username", "test");	
			authData.addProperty("password", "test");
			LoginResult res = ds.login(authData); 
			// Checking if logged...
			if (res.loggedIn()){
				Trace.println("DEEPSTREAM: LOGIN OK.");
                      .........

`

from deepstream.io-client-java.

AlexBHarley avatar AlexBHarley commented on May 20, 2024

Hi @gioma68, I tried this again with a various combination of the java client 1.0.1, master and deepstream 2.0.0, 2.0.1 and couldn't recreate this.

Could you confirm that you're on deepstream 2.0.1? We were aware of some issues with undefined connection data in 2.0.0

from deepstream.io-client-java.

gioma68 avatar gioma68 commented on May 20, 2024

No @AlexBHarley the test was done only with DP 2.0.0. Now we came back to DP 1.1.1 because we are busy with game server development...when it was possible we will try to migrate to DP 2.0.1 and related java+js client. Thanks for your strong support.

from deepstream.io-client-java.

gioma68 avatar gioma68 commented on May 20, 2024

Hi @AlexBHarley, just for completeness.
I notice that the java source on git have version 1.0-SNAPSHOT yet in build.gradle, and the repo was changed from jcentral to mavencentral. Where I can find the 1.0.1 version to set in my pom file and try with the right java client for DP 2.0.1? Thanks in advance.

from deepstream.io-client-java.

yasserf avatar yasserf commented on May 20, 2024

Hey @gioma68,

The snapshot version in the gradle file is actually picked up from a seperate section ( using bin tray ).

The way bintray works is via https://bintray.com/deepstreamio/maven/deepstream.io-client-java, which uploads to bintray which then gets mirrored to jCenter. As far as I'm aware it should not go near mavencentral.

from deepstream.io-client-java.

gioma68 avatar gioma68 commented on May 20, 2024

Hi @yasserf,
we recompile our java server using jar client 1.0.1 on bintray and as backend DP 2.0.1, but also in this case DP server hang with trace error TypeError: name.charCodeAt is not a function TypeError: name.charCodeAt... when java client try to get login auth.

from deepstream.io-client-java.

yasserf avatar yasserf commented on May 20, 2024

hey @gioma68,

Thank you for your update. We are not able to reproduce the issue, but it is something we certainly we want to fix.

Can you run ./deepstream info so we can get an idea about your platform on 2.0.1?

from deepstream.io-client-java.

AlexBHarley avatar AlexBHarley commented on May 20, 2024

Closing due to age

from deepstream.io-client-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.