Opened 9 years ago
Closed 9 years ago
#5340 closed defect (fixed)
API feed request fails
Reported by: | ayleph | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | programming | Keywords: | api, feed, pump |
Cc: | tsyesika | Parent Tickets: |
Description
After applying the latest models update, an API request to /feed fails.
Error - <type 'exceptions.TypeError'>: 'NoneType' object is not iterable URL: https://pumpdev.goblinrefuge.com/api/user/machalus/feed File '/path/to/mediagoblin/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/exceptions/errormiddleware.py', line 144 in __call__ app_iter = self.application(environ, sr_checker) File '/path/to/mediagoblin/mediagoblin/app.py', line 342 in __call__ return self.call_backend(environ, start_response) File '/path/to/mediagoblin/lib/python2.7/site-packages/Werkzeug-0.9.6-py2.7.egg/werkzeug/wsgi.py', line 588 in __call__ return self.app(environ, start_response) File '/path/to/mediagoblin/mediagoblin/app.py', line 276 in call_backend return self._finish_call_backend(request, environ, start_response) File '/path/to/mediagoblin/mediagoblin/app.py', line 318 in _finish_call_backend response = controller(request) File '/path/to/mediagoblin/mediagoblin/decorators.py', line 427 in wrapper return controller(request, *args, **kwargs) File '/path/to/mediagoblin/mediagoblin/api/views.py', line 534 in feed_endpoint "author": request.user.serialize(request), File '/path/to/mediagoblin/mediagoblin/db/models.py', line 399 in serialize user.update(super(LocalUser, self).serialize(request)) TypeError: 'NoneType' object is not iterable CGI Variables ------------- CSRF_TOKEN: '14966043511774073798' DOCUMENT_ROOT: sanitized GATEWAY_INTERFACE: 'CGI/1.1' HTTPS: 'on' HTTP_ACCEPT_ENCODING: 'gzip, deflate' HTTP_ACCEPT_LANGUAGE: 'en-US,*' HTTP_AUTHORIZATION: sanitized HTTP_CONNECTION: 'Keep-Alive' HTTP_HOST: 'pumpdev.goblinrefuge.com' HTTP_USER_AGENT: 'Mozilla/5.0' PATH_INFO: '/api/user/machalus/feed' PATH_TRANSLATED: sanitized REDIRECT_STATUS: '200' REMOTE_ADDR: '127.0.0.1' REMOTE_PORT: '49590' REQUEST_METHOD: 'GET' REQUEST_URI: '/api/user/machalus/feed' SCRIPT_FILENAME: sanitized SERVER_ADDR: '127.0.0.1' SERVER_NAME: 'pumpdev.goblinrefuge.com' SERVER_PORT: '8443' SERVER_PROTOCOL: 'HTTP/1.1' SERVER_SOFTWARE: 'lighttpd/1.4.35'
Note:
See TracTickets
for help on using tickets.
This has been fixed as of de366f7.