Giter Club home page Giter Club logo

Comments (8)

javierbarre avatar javierbarre commented on May 29, 2024

What we found is that in the case that is hosted in azure (and probably because connection speed?) looks like two messages come in one "on_message" execution (see the last socket_trace)

A quick work around for us was to modify base_hub_connection.py

    def on_message(self, raw_message):
        if "{}" in raw_message:
            self.on_message1("{}")
            if len(raw_message) > 2:
                self.on_message1(raw_message.replace("{}", ""))
        else:
            self.on_message1(raw_message)
                    
    def on_message1(self, raw_message):

It worked ok. Let us know a permanent fix

Thanks

from signalrcore.

stsdc avatar stsdc commented on May 29, 2024

@javierbarre tried Your solution but with no success :(

What is interesting, that it works on desktop, but refuses to handshake on our Jetson device.

from signalrcore.

javierbarre avatar javierbarre commented on May 29, 2024

from signalrcore.

stsdc avatar stsdc commented on May 29, 2024

@javierbarre I tried socket_trace, but didn't find anything useful. What I should look for?

from signalrcore.

javierbarre avatar javierbarre commented on May 29, 2024

It was just asking, to check that if the issue was the same I had. Check if the raw message received is more than one element.

In my case, the issue was that the message received was split into two objects (one of the EMPTY)

Example (as in my second post on this thread)

2020-10-13 12:15:42,542 - SignalRCoreClient - DEBUG - Message received{}{message_with_all_fields_here}

As you can see the raw Message received had two {}{xxx} elements. So I find that the def on_message(self, raw_message): function didn't expect a case like that. Two "elements" in the same raw message.

from signalrcore.

mandrewcito avatar mandrewcito commented on May 29, 2024

Hi,

I think that this commits solves your issue,

I will comment here when the new version gets published

Basically, i made a mistake. Handshake´s function only considers an incoming message, not various. I fixed it in the following commit:

e99dd33

thanks, and sorry for the delay!

from signalrcore.

mandrewcito avatar mandrewcito commented on May 29, 2024

https://pypi.org/project/signalrcore/0.8.9/

from signalrcore.

javierbarre avatar javierbarre commented on May 29, 2024

That's great!!! Thank you for solving this issue

from signalrcore.

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.