GithubHelp home page GithubHelp logo

Migrate from JsonRPC 1.0 to 2.0 about hyphe HOT 3 CLOSED

medialab avatar medialab commented on June 14, 2024
Migrate from JsonRPC 1.0 to 2.0

from hyphe.

Comments (3)

boogheta avatar boogheta commented on June 14, 2024

Also check whether new version handles request unfinished properly
cf.
Traceback (most recent call last):
File "/datas03/home/boo/dev/pyenvs/HCI/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1126, in gotResult
_inlineCallbacks(r, g, deferred)
File "/datas03/home/boo/dev/pyenvs/HCI/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1113, in _inlineCallbacks
deferred.callback(e.value)
File "/datas03/home/boo/dev/pyenvs/HCI/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 380, in callback
self._startRunCallbacks(result)
File "/datas03/home/boo/dev/pyenvs/HCI/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 488, in _startRunCallbacks
self._runCallbacks()
--- ---
File "/datas03/home/boo/dev/pyenvs/HCI/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 575, in _runCallbacks
current.result = callback(current.result, _args, *_kw)
File "hyphe_backend/core.tac", line 82, in _cbRender
return jsonrpc.JSONRPC._cbRender(self, result, request, id, version)
File "/datas03/home/boo/dev/pyenvs/HCI/local/lib/python2.7/site-packages/txjsonrpc/web/jsonrpc.py", line 129, in _cbRender
request.finish()
File "/datas03/home/boo/dev/pyenvs/HCI/local/lib/python2.7/site-packages/twisted/web/server.py", line 228, in finish
return http.Request.finish(self)
File "/datas03/home/boo/dev/pyenvs/HCI/local/lib/python2.7/site-packages/twisted/web/http.py", line 893, in finish
"Request.finish called on a request after its connection was lost; "
exceptions.RuntimeError: Request.finish called on a request after its connection was lost; use Request.notifyFinish to keep track of this.

from hyphe.

boogheta avatar boogheta commented on June 14, 2024

We need also to consider sending all jsonrpc results encoded with gzip to considerably fasten the communication between front and back for heavy answers such as list of all webentities

from hyphe.

boogheta avatar boogheta commented on June 14, 2024

We will rather move the whole APi to REST in the end, so closing this here

from hyphe.

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.