Comments (5)
clarification: This happens both with latest restkit from pypi and with latest master from github.
from restkit.
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.
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.
////////////// 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.
fixed in latest head. Now raises an error.
from restkit.
Related Issues (20)
- Documentation fails to build with Sphinx 1.2 HOT 1
- Document Error: Mixed case pool object typo in gevent example
- tests being installed in generic "tests" directory HOT 1
- Can't set headers per part of multipart requests HOT 1
- Add documentation on proxy usage
- Auth failed when password contains encoded / (slash)
- testsuite of -4.2.2; errors=6 HOT 1
- wsgi proxy and 'hop by hop' HOT 3
- WSGI proxy and Forwarded header
- un-contrib-ifying the proxy HOT 2
- minor performance optimization concerning location
- data coming out in wrong request HOT 1
- HostProxy misbehaves with spaces in PATH_INFO
- IOError: [Errno 0] Error on write() in tee.TeeInput._tee
- Doesn't Validate TLS HOT 4
- Exception in thread Thread-1 (most likely raised during interpreter shutdown
- no proxy support in restkit oauth? HOT 1
- Documentation for forms.py
- Attaching file to test result in test management 4 jira
- Proposing a PR to fix a few small typos
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restkit.