Trying the simple example from documentation throw a TypeError

Bug #771506 reported by Chmouel Boudjnah
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Burrow
Fix Released
Undecided
Unassigned

Bug Description

I am trying the simple example from the documentation and I am getting this error :

004434
2011-04-26 14:35:15,166 - burrow.frontend.wsgi - DEBUG - Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/eventlet/wsgi.py", line 336, in handle_one_response
    result = self.application(self.environ, start_response)
  File "/Users/chmouel.boudjnah/Dropbox/GIT/rackspace/burrow/lp771500/burrow/frontend/wsgi.py", line 111, in __call__
    return self._routes(*args, **kwargs)
  File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py", line 131, in __call__
    response = self.app(environ, start_response)
  File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/WebOb-1.0.7-py2.7.egg/webob/dec.py", line 147, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/WebOb-1.0.7-py2.7.egg/webob/dec.py", line 208, in call_func
    return self.func(req, *args, **kwargs)
  File "/Users/chmouel.boudjnah/Dropbox/GIT/rackspace/burrow/lp771500/burrow/frontend/wsgi.py", line 122, in _route
    return method(req, **args)
  File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/WebOb-1.0.7-py2.7.egg/webob/dec.py", line 161, in __call__
    return self.func(req, *args, **kw)
  File "/Users/chmouel.boudjnah/Dropbox/GIT/rackspace/burrow/lp771500/burrow/frontend/wsgi.py", line 209, in _put_message
    attributes):
  File "/Users/chmouel.boudjnah/Dropbox/GIT/rackspace/burrow/lp771500/burrow/backend/sqlite.py", line 161, in create_message
    ttl += int(time.time())
TypeError: cannot concatenate 'str' and 'int' objects
2011-04-26 14:35:15,166 - burrow.frontend.wsgi - DEBUG - 127.0.0.1 "PUT /v1.0/chmouel.boudjnah/test_queue/message_1 HTTP/1.1" 500 1707 0.050578

I am guessing it's a simple 'casting' problem.

Related branches

Revision history for this message
Chmouel Boudjnah (chmouel) wrote :

What I mean the simple example from the documentation is :

launching burrowd :

chmouel.boudjnah@tapouz:burrow/lp771500/bin$ ./burrowd ../etc/burrowd.conf
2011-04-26 14:38:28,085 - burrow.backend.sqlite - DEBUG - Module created
2011-04-26 14:38:28,147 - burrow.frontend.wsgi - DEBUG - Module created
2011-04-26 14:38:28,154 - burrow.frontend.wsgi - INFO - Listening on 0.0.0.0:8080
2011-04-26 14:38:28,154 - burrow.server - INFO - Waiting for all threads to exit
2011-04-26 14:38:28,157 - burrow.frontend.wsgi - DEBUG - (17891) wsgi starting up on http://0.0.0.0:8080/

and creating a message :

chmouel.boudjnah@tapouz:burrow/lp771500/bin$ echo "data" | ./burrow create_message test_queue message_1
2011-04-26 14:38:59,289 - burrow.backend.http - DEBUG - Module created
Internal Server Error

Eric Day (eday)
Changed in burrow:
status: New → Fix Committed
milestone: none → 2011.3
assignee: nobody → Chmouel Boudjnah (chmouel)
Changed in burrow:
assignee: Chmouel Boudjnah (chmouel) → nobody
Revision history for this message
Tom Fifield (fifieldt) wrote :

Marking as "Fix Released" to remove from bug lists :)

Changed in burrow:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.