Code Monkey home page Code Monkey logo

Comments (2)

bonomani avatar bonomani commented on August 22, 2024

I found this log message below: This is in my understandaning related to http_get for AnyEvent, but I dont really undertstand the problem. Please let me know if I can help!:

  • TRACE [2016/12/05 15:19:45] /usr/local/elsa/web/lib/Controller.pm (864) Controller::try {...} 15643 [undef]
    Sending request to URL http://127.0.0.1/API/local_info
  • ERROR [2016/12/05 15:19:45] /usr/local/elsa/web/lib/Controller.pm (883) Controller::ANON 15643 [undef]
    malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/local/elsa/web/lib/Controller.pm line 877.

Header: $VAR1 = {
'Reason' => 'Connection timed out',
'URL' => 'http://127.0.0.1/API/local_info',
'Status' => 596
};

body: $VAR1 = undef;

  • DEBUG [2016/12/05 15:19:45] /usr/local/elsa/web/lib/Controller.pm (757) Controller::_merge_node_info 15643 [undef]
    final: $VAR1 = {
    'nodes' => {}
    };
  • DEBUG [2016/12/05 15:19:45] /usr/local/elsa/web/lib/Controller.pm (791) Controller::ANON 15643 [undef]
    stats: $VAR1 = {
    'overall' => '0.00913190841674805'

from elsa.

bonomani avatar bonomani commented on August 22, 2024

I think I have may be found the problem: I modified /usr/local/elsa/web/lib/Controller.pm
Lines
876 }
877 AnyEvent->now_update;
878 $results{$peer} = http_get $url, headers => $headers, @no_proxy, sub {

I added the line 876 AnyEvent->now_update
This just updates the counter to reflect real time and it seems to work now. I am sure that it is not the best place to add it, as you have probably the AnyEvent functions in different places. (you know that better than me :)
Please let me know if you want me to try something else.

from elsa.

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.