Custom Query (1174 matches)
Results (208 - 210 of 1174)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #5339 | fixed | urlparse fails | ||
| Description |
Running latest master on python2.7, media uploads via pump clients fail when attempting to reach the feed URL. From sapienTech's pypump logs: In[2]: myimage = pump.Image(display_name='Test from PyPumpShell')
In [2]: myimage.from_file('/home/user/Desktop/MediaGoblinApp/goblinoid/images/newman.jpg')
---------------------------------------------------------------------------
PyPumpException Traceback (most recent call last)
/home/user/Documents/2015_summer/MediaGoblin/PyPump/pypump-shell in <module>()
----> 1 myimage.from_file('/home/user/Desktop/MediaGoblinApp/goblinoid/images/newman.jpg')
/home/user/Documents/2015_summer/MediaGoblin/PyPump/pypump/models/image.pyc in from_file(self, filename)
119 self._post_activity(data)
120 else:
--> 121 self._post_activity(data, unserialize=False)
122
123 # update image with display_name and content
/home/user/Documents/2015_summer/MediaGoblin/PyPump/pypump/models/__init__.pyc in _post_activity(self, activity, unserialize)
105 )
106
--> 107 data = self._pump.request(feed_url, method="POST", data=activity)
108
109 if not data:
/home/user/Documents/2015_summer/MediaGoblin/PyPump/pypump/pypump.pyc in request(self, endpoint, method, data, raw, params, retries, client, headers, timeout, **kwargs)
339 )
340
--> 341 raise PyPumpException(error)
342
343 def _requester(self, fnc, endpoint, raw=False, **kwargs):
PyPumpException: Request Failed to https://pump.goblinrefuge.com/api/user/sapientech/feed (response:
<html>
<head>
<title>Server Error</title>
</head>
<body>
<h1>Server Error</h1>
<div style="text-align:center;font-family: monospace">
<h1>YEOWCH... that's an error!</h1>
<pre>
.-------------------------.
| __ _ |
| -, \_,------,_// |
| <\ ,-- --.\ |
| / (x ) ( X ) |
| ' '--, ,--'\ |
| / \ -v-v-u-v / |
| . '.__.--__'.\ |
| / ',___/ / \__/' |
| | | ,'\_'/, || |
| \_| | | | | || |
| W',_ ||| |||_'' |
| | '------'| |
| |__| |_|_ |
| ,,,-' '-,,, |
'-------------------------'
</pre>
<p>Sorry, our goblins had a little too much to drink.</p>
<p>You may want to <a href="mailto:goblinpolice@goblinrefuge.com?Subject=Goblin%20Error" target="_top">alert the Goblin Police</a> and let them know what happened.</p>
</div>
</body>
</html> | status: 500)
From goblinrefuge.com server logs: Error - <type 'exceptions.AttributeError'>: 'function' object has no attribute 'urlparse' URL: https://pump.goblinrefuge.com/api/user/sapientech/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.10.1-py2.7.egg/werkzeug/wsgi.py', line 591 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 291 in feed_endpoint urlmap=request.app.url_map File '/path/to/mediagoblin/mediagoblin/tools/routing.py', line 83 in extract_url_arguments parsed_url = urlparse.urlparse(url) AttributeError: 'function' object has no attribute 'urlparse' CGI Variables ------------- CONTENT_LENGTH: '1284' CONTENT_TYPE: 'application/json' CSRF_TOKEN: '3243560790715536161' DOCUMENT_ROOT: sanitized GATEWAY_INTERFACE: 'CGI/1.1' HTTPS: 'on' HTTP_ACCEPT: '*/*' HTTP_ACCEPT_ENCODING: 'gzip, deflate' HTTP_AUTHORIZATION: sanitized HTTP_CONNECTION: 'keep-alive' HTTP_CONTENT_LENGTH: '1284' HTTP_HOST: 'pump.goblinrefuge.com' HTTP_USER_AGENT: 'python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-53-lowlatency' PATH_INFO: '/api/user/sapientech/feed' PATH_TRANSLATED: sanitized REDIRECT_STATUS: '200' REMOTE_ADDR: '127.0.0.1' REMOTE_PORT: '48098' REQUEST_METHOD: 'POST' REQUEST_URI: '/api/user/sapientech/feed' SCRIPT_FILENAME: sanitized SERVER_ADDR: '127.0.0.1' SERVER_NAME: 'pump.goblinrefuge.com' SERVER_PORT: '8443' SERVER_PROTOCOL: 'HTTP/1.1' SERVER_SOFTWARE: 'lighttpd/1.4.35' WSGI Variables -------------- application: <mediagoblin.app.MediaGoblinApp object at 0x7fcf00776190> paste.throw_errors: True werkzeug.request: <Request 'https://pump.goblinrefuge.com/api/user/sapientech/feed' [POST]> wsgi process: 'Multiprocess' ------------------------------------------------------------ |
|||
| #5338 | fixed | mock requires setuptools>=17.1 | ||
| Description |
Lately we've had a couple of users complain that
Can we pin mock at a lower version to prevent this issue? |
|||
| #5337 | duplicate | Number of views does not exist for media | ||
| Description |
This sounds fairly simple to implement but I might be wrong. If it's just a matter of some SQL-trickery I could give it a try. |
|||
