Giter VIP home page Giter VIP logo

Comments (5)

loxs avatar loxs commented on July 17, 2024

clarification: This happens both with latest restkit from pypi and with latest master from github.

from restkit.

benoitc avatar benoitc commented on July 17, 2024

could you gace me the git revisions you are using for restkit and couchdbkit ? If possible can you also provides me the logs of connection ? With latest restkit do on top of your application:

from restkir import set_logging
set_logging("debug")

Thanks

from restkit.

loxs avatar loxs commented on July 17, 2024

restkit is:

commit b96f44c
Author: benoitc [email protected]
Date: Tue Mar 2 02:39:47 2010 +0100

couchdbkit is 0.4.4 from pypi

I enabled debug logging in restkit, now waiting for it to happen again

from restkit.

loxs avatar loxs commented on July 17, 2024

////////////// That's normal debug log from reskit ///////////////////

11:57:02,185 DEBUG [restkit.client] Headers: [GET /kontado_experiment/a860bb8f9175a79de4593f64663178d2 HTTP/1.1
Host: localhost:5984
User-Agent: restkit/1.1.1
Accept-Encoding: identity
Accept: application/json
User-Agent: couchdbkit/0.4.4

]
2010-03-02 11:57:02 [32560] [DEBUG] Start response
11:57:02,192 DEBUG [restkit.client] Start response
2010-03-02 11:57:02 [32560] [DEBUG] Response headers: [[('Content-Length', '306'), ('Server', 'CouchDB/0.10.1 (Erlang OTP/R13B)'), ('Etag', '"1-4e401e9c700f055c6b0a7068e6838c7b"'), ('Cache-Control', 'must-revalidate'), ('Date', 'Tue, 02 Mar 2010 09:57:02 GMT'), ('Content-Type', 'application/json')]]
11:57:02,192 DEBUG [restkit.client] Response headers: [[('Content-Length', '306'), ('Server', 'CouchDB/0.10.1 (Erlang OTP/R13B)'), ('Etag', '"1-4e401e9c700f055c6b0a7068e6838c7b"'), ('Cache-Control', 'must-revalidate'), ('Date', 'Tue, 02 Mar 2010 09:57:02 GMT'), ('Content-Type', 'application/json')]]

///////////////////////// Here is the end of request ////////////////////////////

/////////////////// Then I refresh the page again ///////////////////////

Debug at: http://localhost:5000/_debug/view/1267523941

///////////////////// At the given location is the same trace as above ///////////////////

////////////This is it:

URL: http://localhost:5000/a860bb8f9175a79de4593f64663178d2/company/chart_of_accounts
File '/home/loxs/pylons/lib/python2.6/site-packages/WebError-0.10.2-py2.6.egg/weberror/evalexception.py', line 431 in respond
app_iter = self.application(environ, detect_start_response)
File '/home/loxs/pylons/lib/python2.6/site-packages/Beaker-1.5.1-py2.6.egg/beaker/middleware.py', line 73 in call
return self.app(environ, start_response)
File '/home/loxs/pylons/lib/python2.6/site-packages/Beaker-1.5.1-py2.6.egg/beaker/middleware.py', line 152 in call
return self.wrap_app(environ, session_start_response)
File '/home/loxs/pylons/lib/python2.6/site-packages/Routes-1.11-py2.6.egg/routes/middleware.py', line 130 in call
response = self.app(environ, start_response)
File '/home/loxs/pylons/lib/python2.6/site-packages/Pylons-1.0b1-py2.6.egg/pylons/wsgiapp.py', line 107 in call
response = self.dispatch(controller, environ, start_response)
File '/home/loxs/pylons/lib/python2.6/site-packages/Pylons-1.0b1-py2.6.egg/pylons/wsgiapp.py', line 304 in dispatch
return controller(environ, start_response)
File '/home/loxs/kontado/kontado/trunk/kontado/kontado/lib/base.py', line 34 in call
return WSGIController.call(self, environ, start_response)
File '/home/loxs/pylons/lib/python2.6/site-packages/Pylons-1.0b1-py2.6.egg/pylons/controllers/core.py', line 207 in call
response = self._inspect_call(self.before)
File '/home/loxs/pylons/lib/python2.6/site-packages/Pylons-1.0b1-py2.6.egg/pylons/controllers/core.py', line 105 in _inspect_call
result = self._perform_call(func, args)
File '/home/loxs/pylons/lib/python2.6/site-packages/Pylons-1.0b1-py2.6.egg/pylons/controllers/core.py', line 57 in _perform_call
return func(**args)
File '/home/loxs/kontado/kontado/trunk/kontado/kontado/lib/base.py', line 23 in before
c.company = Company.get(company_id)
File '/home/loxs/pylons/lib/python2.6/site-packages/couchdbkit-0.4.4-py2.6.egg/couchdbkit/schema/base.py', line 476 in get
return cls._db.get(docid, rev=rev, wrapper=cls.wrap)
File '/home/loxs/pylons/lib/python2.6/site-packages/couchdbkit-0.4.4-py2.6.egg/couchdbkit/client.py', line 351 in get
doc = maybe_raw(self.res.get(docid), raw=_raw_json)
File 'build/bdist.linux-i686/egg/restkit/resource.py', line 132 in get
File '/home/loxs/pylons/lib/python2.6/site-packages/couchdbkit-0.4.4-py2.6.egg/couchdbkit/resource.py', line 138 in request
payload=body, headers=headers, **params)
File 'build/bdist.linux-i686/egg/restkit/resource.py', line 231 in request
AttributeError: 'NoneType' object has no attribute 'status_int'

from restkit.

benoitc avatar benoitc commented on July 17, 2024

fixed in latest head. Now raises an error.

from restkit.

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.