Skip to content

Instantly share code, notes, and snippets.

@bartvde
Created December 12, 2011 12:03
Show Gist options
  • Save bartvde/1466835 to your computer and use it in GitHub Desktop.
Save bartvde/1466835 to your computer and use it in GitHub Desktop.
django
127.0.0.1 - - [12/Dec/2011:12:21:22 +0000] "GET /geoserver/pdf/info.json?var=printCapabilities HTTP/1.1" 200 293 "csrftoken=9443e9e9fe76aa1497c0d2f84a510b5e;sessionid=2860b1e53d4294dae8a00c15cf9d6e8e"
127.0.0.1 - - [12/Dec/2011:12:21:34 +0000] "GET /geoserver/schemas/wms/1.1.1/WMS_MS_Capabilities.dtd HTTP/1.1" 200 10438 -
127.0.0.1 - - [12/Dec/2011:12:21:28 +0000] "GET /geoserver/wms?SERVICE=WMS&REQUEST=GetCapabilities&TILED=true&VERSION=1.1.1 HTTP/1.1" 200 30997 "csrftoken=9443e9e9fe76aa1497c0d2f84a510b5e;sessionid=2860b1e53d4294dae8a00c15cf9d6e8e"
127.0.0.1 - - [12/Dec/2011:12:21:42 +0000] "GET /geoserver/wms?SERVICE=WMS&&LAYERS=geonode%3Aconflicts&VERSION=1.1.1&REQUEST=DescribeLayer HTTP/1.1" 200 248 "csrftoken=9443e9e9fe76aa1497c0d2f84a510b5e;sessionid=2860b1e53d4294dae8a00c15cf9d6e8e"
127.0.0.1 - - [12/Dec/2011:12:21:43 +0000] "GET /geoserver/wms?SERVICE=WMS&STYLES=&FORMAT=image%2Fpng&TRANSPARENT=TRUE&LAYERS=geonode%3Aconflicts&VERSION=1.1.1&REQUEST=GetMap&TILED=true&SRS=EPSG%3A900913&BBOX=-10305034.96233,1258334.9994088,-8552486.778051,1615448.7955074&WIDTH=1433&HEIGHT=292 HTTP/1.1" 200 2148 "csrftoken=9443e9e9fe76aa1497c0d2f84a510b5e;sessionid=2860b1e53d4294dae8a00c15cf9d6e8e"
127.0.0.1 - - [12/Dec/2011:12:21:43 +0000] "GET /geoserver/wfs/WfsDispatcher?&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=geonode%3Aconflicts HTTP/1.1" 200 609 "csrftoken=9443e9e9fe76aa1497c0d2f84a510b5e;sessionid=2860b1e53d4294dae8a00c15cf9d6e8e"
127.0.0.1 - - [12/Dec/2011:12:21:45 +0000] "GET /geoserver/rest/workspaces.xml HTTP/1.1" 401 1507 -
127.0.0.1 - - [12/Dec/2011:12:21:45 +0000] "GET /geoserver/rest/workspaces.xml HTTP/1.1" 401 1507 -
Request:
http://localhost:8000/maps/time_info.json?&_dc=1323690420828&layer=geonode%3Aconflicts
Headers:
Response Headers
Server PasteWSGIServer/0.5 Python/2.7.1
Date Mon, 12 Dec 2011 11:47:01 GMT
Vary Accept-Language, Cookie
Content-Type text/html
Content-Language en
Connection close
Request Headers
Host localhost:8000
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0.1) Gecko/20100101 Firefox/8.0.1
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip, deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection keep-alive
X-Requested-With XMLHttpRequest
Referer http://localhost:8000/maps/new
Cookie csrftoken=9443e9e9fe76aa1497c0d2f84a510b5e; sessionid=2860b1e53d4294dae8a00c15cf9d6e8e
FailedRequestError at /maps/time_info.json
Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces.xml but got a 401 status code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 401 Full authentication is required to access this resource</title>
</head>
<body><h2>HTTP ERROR: 401</h2><pre>Full authentication is required to access this resource</pre>
<p>RequestURI=/geoserver/rest/workspaces.xml</p><p><i><small><a href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</body>
</html>
Request Method: GET
Request URL: http://localhost:8000/maps/time_info.json?&_dc=1323690420828&layer=geonode%3Aconflicts
Django Version: 1.2
Exception Type: FailedRequestError
Exception Value:
Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces.xml but got a 401 status code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 401 Full authentication is required to access this resource</title>
</head>
<body><h2>HTTP ERROR: 401</h2><pre>Full authentication is required to access this resource</pre>
<p>RequestURI=/geoserver/rest/workspaces.xml</p><p><i><small><a href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</body>
</html>
Exception Location: /Users/bartvde/opengeo/git/mapstory/geonode/src/gsconfig.py/src/geoserver/catalog.py in get_xml, line 123
Python Executable: /Users/bartvde/opengeo/git/mapstory/geonode/bin/python
Python Version: 2.7.1
Python Path: ['/Users/bartvde/opengeo/git/mapstory/geonode/bin', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/site-packages/Paver-1.0.1-py2.7.egg', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/site-packages/pip-0.6.post1-py2.7.egg', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/site-packages/JSTools-0.5-py2.7.egg', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/site-packages/virtualenv-1.7-py2.7.egg', '/Users/bartvde/opengeo/git/mapstory/geonode/src/avatar', '/Users/bartvde/opengeo/git/mapstory/geonode/src/gsconfig.py/src', '/Users/bartvde/opengeo/git/mapstory/geonode/src/nosexcover', '/Users/bartvde/opengeo/git/mapstory/geonode/src/gsuploader/src', '/Users/bartvde/opengeo/git/mapstory/geonode/src/GeoNodePy', '/Users/bartvde/opengeo/git/mapstory', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python27.zip', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/plat-darwin', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/plat-mac', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/bartvde/opengeo/git/mapstory/geonode/Extras/lib/python', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/lib-tk', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/lib-old', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/site-packages', '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/site-packages/PIL']
Server time: Mon, 12 Dec 2011 05:47:00 -0600
Traceback Switch to copy-and-paste view
/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/site-packages/django/core/handlers/base.py in get_response
# Apply view middleware
for middleware_method in self._view_middleware:
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
return response
try:
response = callback(request, *callback_args, **callback_kwargs) ...
except Exception, e:
# If the view raised an exception, run it through exception
# middleware, and if the exception middleware returns a
# response, use that. Otherwise, reraise the exception.
for middleware_method in self._exception_middleware:
response = middleware_method(request, e)
▶ Local vars
Variable Value
callback
<function time_info at 0x104fdea28>
callback_args
()
callback_kwargs
{}
e
FailedRequestError('Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces.xml but got a 401 status code: \n<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>\n<title>Error 401 Full authentication is required to access this resource</title>\n</head>\n<body><h2>HTTP ERROR: 401</h2><pre>Full authentication is required to access this resource</pre>\n<p>RequestURI=/geoserver/rest/workspaces.xml</p><p><i><small><a href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n\n</body>\n</html>\n',)
exc_info
(<class 'geoserver.catalog.FailedRequestError'>, FailedRequestError('Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces.xml but got a 401 status code: \n<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>\n<title>Error 401 Full authentication is required to access this resource</title>\n</head>\n<body><h2>HTTP ERROR: 401</h2><pre>Full authentication is required to access this resource</pre>\n<p>RequestURI=/geoserver/rest/workspaces.xml</p><p><i><small><a href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n\n</body>\n</html>\n',), <traceback object at 0x105095e60>)
exceptions
<module 'django.core.exceptions' from '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/site-packages/django/core/exceptions.pyc'>
middleware_method
<bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x1044b43d0>>
receivers
[(<function _rollback_on_exception at 0x104b77c80>, None)]
request
<WSGIRequest GET:<QueryDict: {u'layer': [u'geonode:conflicts'], u'_dc': [u'1323690420828']}>, POST:<QueryDict: {}>, COOKIES:{'csrftoken': '9443e9e9fe76aa1497c0d2f84a510b5e', 'sessionid': '2860b1e53d4294dae8a00c15cf9d6e8e'}, META:{'CONTENT_LENGTH': '0', 'CONTENT_TYPE': '', 'CSRF_COOKIE': '9443e9e9fe76aa1497c0d2f84a510b5e', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'csrftoken=9443e9e9fe76aa1497c0d2f84a510b5e; sessionid=2860b1e53d4294dae8a00c15cf9d6e8e', 'HTTP_HOST': 'localhost:8000', 'HTTP_REFERER': 'http://localhost:8000/maps/new', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0.1) Gecko/20100101 Firefox/8.0.1', 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest', 'PATH_INFO': u'/maps/time_info.json', 'QUERY_STRING': '&_dc=1323690420828&layer=geonode%3Aconflicts', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '127.0.0.1', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x103ffae10>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x103c9e270>, 'wsgi.input': <socket._fileobject object at 0x105045ed0 length=0>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
resolver
<RegexURLResolver mapstory.urls (None:None) ^/>
response
None
self
<django.core.handlers.wsgi.WSGIHandler object at 0x10446eb90>
settings
<django.conf.LazySettings object at 0x104332810>
urlconf
'mapstory.urls'
urlresolvers
<module 'django.core.urlresolvers' from '/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/site-packages/django/core/urlresolvers.pyc'>
/Users/bartvde/opengeo/git/mapstory/geonode/src/GeoNodePy/geonode/maps/views.py in time_info
from geoserver.support import xml_property, attribute_list
cat = Layer.objects.gs_catalog
layer_name = request.GET.get('layer')
after_split = layer_name.split(":", 1)
if len(after_split) != 2:
return HttpResponse(json.dumps({}), mimetype="application/javascript")
ws, lyr = after_split
layer = cat.get_resource(workspace=cat.get_workspace(ws), name=lyr) ...
if layer is not None:
if layer.metadata['time']:
attributes = {}
dimensionInfo = layer.metadata['time'].find('dimensionInfo')
for attribute in list(dimensionInfo):
attributes[attribute.tag] = attribute.text
▶ Local vars
Variable Value
after_split
[u'geonode', u'conflicts']
attribute_list
<function attribute_list at 0x104d38c08>
cat
<geoserver.catalog.Catalog object at 0x104ef3210>
layer_name
u'geonode:conflicts'
lyr
u'conflicts'
request
<WSGIRequest GET:<QueryDict: {u'layer': [u'geonode:conflicts'], u'_dc': [u'1323690420828']}>, POST:<QueryDict: {}>, COOKIES:{'csrftoken': '9443e9e9fe76aa1497c0d2f84a510b5e', 'sessionid': '2860b1e53d4294dae8a00c15cf9d6e8e'}, META:{'CONTENT_LENGTH': '0', 'CONTENT_TYPE': '', 'CSRF_COOKIE': '9443e9e9fe76aa1497c0d2f84a510b5e', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'csrftoken=9443e9e9fe76aa1497c0d2f84a510b5e; sessionid=2860b1e53d4294dae8a00c15cf9d6e8e', 'HTTP_HOST': 'localhost:8000', 'HTTP_REFERER': 'http://localhost:8000/maps/new', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0.1) Gecko/20100101 Firefox/8.0.1', 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest', 'PATH_INFO': u'/maps/time_info.json', 'QUERY_STRING': '&_dc=1323690420828&layer=geonode%3Aconflicts', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '127.0.0.1', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x103ffae10>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x103c9e270>, 'wsgi.input': <socket._fileobject object at 0x105045ed0 length=0>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
ws
u'geonode'
xml_property
<function xml_property at 0x104d38230>
/Users/bartvde/opengeo/git/mapstory/geonode/src/gsconfig.py/src/geoserver/catalog.py in get_workspace
return self.get_workspace(name)
def get_workspaces(self):
description = self.get_xml("%s/workspaces.xml" % self.service_url)
return [workspace_from_index(self, node) for node in description.findall("workspace")]
def get_workspace(self, name):
candidates = filter(lambda x: x.name == name, self.get_workspaces()) ...
if len(candidates) == 0:
return None
elif len(candidates) > 1:
raise AmbiguousRequestError()
else:
return candidates[0]
▶ Local vars
Variable Value
name
u'geonode'
self
<geoserver.catalog.Catalog object at 0x104ef3210>
/Users/bartvde/opengeo/git/mapstory/geonode/src/gsconfig.py/src/geoserver/catalog.py in get_workspaces
headers, response = self.http.request(workspace_url, "POST", xml, headers)
assert 200 <= headers.status < 300, "Tried to create workspace but got " + str(headers.status) + ": " + response
self._cache.clear()
return self.get_workspace(name)
def get_workspaces(self):
description = self.get_xml("%s/workspaces.xml" % self.service_url) ...
return [workspace_from_index(self, node) for node in description.findall("workspace")]
def get_workspace(self, name):
candidates = filter(lambda x: x.name == name, self.get_workspaces())
if len(candidates) == 0:
return None
▶ Local vars
Variable Value
self
<geoserver.catalog.Catalog object at 0x104ef3210>
/Users/bartvde/opengeo/git/mapstory/geonode/src/gsconfig.py/src/geoserver/catalog.py in get_xml
return parse_or_raise(cached_response[1])
else:
response, content = self.http.request(url)
if response.status == 200:
self._cache[url] = (datetime.now(), content)
return parse_or_raise(content)
else:
raise FailedRequestError("Tried to make a GET request to %s but got a %d status code: \n%s" % (url, response.status, content)) ...
def save(self, obj):
"""
saves an object to the REST service
gets the object's REST location and the XML from the object,
▶ Local vars
Variable Value
cached_response
(datetime.datetime(2011, 12, 12, 5, 40, 21, 869639), '<workspaces>\n <workspace>\n <name>geonode</name>\n <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/geonode.xml" type="application/xml"/>\n </workspace>\n</workspaces>')
content
'<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>\n<title>Error 401 Full authentication is required to access this resource</title>\n</head>\n<body><h2>HTTP ERROR: 401</h2><pre>Full authentication is required to access this resource</pre>\n<p>RequestURI=/geoserver/rest/workspaces.xml</p><p><i><small><a href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n<br/> \n\n</body>\n</html>\n'
is_valid
<function is_valid at 0x1050aac08>
parse_or_raise
<function parse_or_raise at 0x1050aade8>
response
{'content-length': '1507', 'content-type': 'text/html; charset=iso-8859-1', 'date': 'Mon, 12 Dec 2011 11:47:00 GMT', 'server': 'Jetty(6.1.10)', 'set-cookie': 'JSESSIONID=54nrtm7uzek5;Path=/geoserver', 'status': '401', 'www-authenticate': 'Basic realm="GeoServer Realm"'}
self
<geoserver.catalog.Catalog object at 0x104ef3210>
url
'http://localhost:8080/geoserver/rest/workspaces.xml'
Environment: Request Method: GET Request URL: http://localhost:8000/maps/time_info.json?&_dc=1323690420828&layer=geonode%3Aconflicts Django Version: 1.2 Python Version: 2.7.1 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.sitemaps', 'staticfiles', 'django_extensions', 'registration', 'profiles', 'avatar', 'geonode.core', 'geonode.maps', 'geonode.proxy', 'geonode'] Installed Middleware: ('django.middleware.cache.UpdateCacheMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.cache.FetchFromCacheMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware') Traceback: File "/Users/bartvde/opengeo/git/mapstory/geonode/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 100. response = callback(request, *callback_args, **callback_kwargs) File "/Users/bartvde/opengeo/git/mapstory/geonode/src/GeoNodePy/geonode/maps/views.py" in time_info 1955. layer = cat.get_resource(workspace=cat.get_workspace(ws), name=lyr) File "/Users/bartvde/opengeo/git/mapstory/geonode/src/gsconfig.py/src/geoserver/catalog.py" in get_workspace 530. candidates = filter(lambda x: x.name == name, self.get_workspaces()) File "/Users/bartvde/opengeo/git/mapstory/geonode/src/gsconfig.py/src/geoserver/catalog.py" in get_workspaces 526. description = self.get_xml("%s/workspaces.xml" % self.service_url) File "/Users/bartvde/opengeo/git/mapstory/geonode/src/gsconfig.py/src/geoserver/catalog.py" in get_xml 123. raise FailedRequestError("Tried to make a GET request to %s but got a %d status code: \n%s" % (url, response.status, content)) Exception Type: FailedRequestError at /maps/time_info.json Exception Value: Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces.xml but got a 401 status code: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>Error 401 Full authentication is required to access this resource</title> </head> <body><h2>HTTP ERROR: 401</h2><pre>Full authentication is required to access this resource</pre> <p>RequestURI=/geoserver/rest/workspaces.xml</p><p><i><small><a href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> </body> </html>
Request information
GET
Variable Value
layer
u'geonode:conflicts'
_dc
u'1323690420828'
POST
No POST data
FILES
No FILES data
COOKIES
Variable Value
csrftoken
'9443e9e9fe76aa1497c0d2f84a510b5e'
sessionid
'2860b1e53d4294dae8a00c15cf9d6e8e'
META
Variable Value
CONTENT_LENGTH
'0'
CONTENT_TYPE
''
CSRF_COOKIE
'9443e9e9fe76aa1497c0d2f84a510b5e'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_ACCEPT_CHARSET
'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_ACCEPT_ENCODING
'gzip, deflate'
HTTP_ACCEPT_LANGUAGE
'en-us,en;q=0.5'
HTTP_CONNECTION
'keep-alive'
HTTP_COOKIE
'csrftoken=9443e9e9fe76aa1497c0d2f84a510b5e; sessionid=2860b1e53d4294dae8a00c15cf9d6e8e'
HTTP_HOST
'localhost:8000'
HTTP_REFERER
'http://localhost:8000/maps/new'
HTTP_USER_AGENT
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0.1) Gecko/20100101 Firefox/8.0.1'
HTTP_X_REQUESTED_WITH
'XMLHttpRequest'
PATH_INFO
u'/maps/time_info.json'
QUERY_STRING
'&_dc=1323690420828&layer=geonode%3Aconflicts'
REMOTE_ADDR
'127.0.0.1'
REQUEST_METHOD
'GET'
SCRIPT_NAME
u''
SERVER_NAME
'127.0.0.1'
SERVER_PORT
'8000'
SERVER_PROTOCOL
'HTTP/1.1'
paste.httpserver.thread_pool
<paste.httpserver.ThreadPool object at 0x103ffae10>
wsgi.errors
<open file '<stderr>', mode 'w' at 0x103c9e270>
wsgi.input
<socket._fileobject object at 0x105045ed0 length=0>
wsgi.multiprocess
False
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
Settings
Using settings module mapstory.settings
Setting Value
ABSOLUTE_URL_OVERRIDES
{'auth.user': <function get_user_url at 0x104478b18>}
ADMINS
()
ADMIN_FOR
()
ADMIN_MEDIA_PREFIX
'/static/admin/'
ALLOWED_INCLUDE_ROOTS
()
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
('geonode.core.auth.GranularBackend',)
AUTH_PROFILE_MODULE
'maps.Contact'
BANNED_IPS
()
CACHE_BACKEND
'locmem://'
CACHE_MIDDLEWARE_KEY_PREFIX
''
CACHE_MIDDLEWARE_SECONDS
600
COMMENTS_ALLOW_PROFANITIES
False
COMMENTS_BANNED_USERS_GROUP
None
COMMENTS_FIRST_FEW
0
COMMENTS_MODERATORS_GROUP
None
COMMENTS_SKETCHY_USERS_GROUP
None
CSRF_COOKIE_DOMAIN
None
CSRF_COOKIE_NAME
'csrftoken'
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
DATABASES
{'default': {'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/Users/bartvde/opengeo/git/mapstory/mapstory/development.db', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': '/Users/bartvde/opengeo/git/mapstory/mapstory/development.db', 'TIME_ZONE': 'America/Chicago', 'USER': ''}}
DATABASE_ENGINE
''
DATABASE_HOST
''
DATABASE_NAME
''
DATABASE_OPTIONS
{}
DATABASE_PASSWORD
'********************'
DATABASE_PORT
''
DATABASE_ROUTERS
[]
DATABASE_USER
''
DATETIME_FORMAT
'N j, Y, P'
DATETIME_INPUT_FORMATS
('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M', '%m/%d/%y')
DATE_FORMAT
'N j, Y'
DATE_INPUT_FORMATS
('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y')
DB_DATASTORE
False
DB_DATASTORE_HOST
''
DB_DATASTORE_NAME
''
DB_DATASTORE_PASSWORD
'********************'
DB_DATASTORE_PORT
''
DB_DATASTORE_TYPE
''
DB_DATASTORE_USER
''
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DECIMAL_SEPARATOR
'.'
DEFAULT_CHARSET
'utf-8'
DEFAULT_CONTENT_TYPE
'text/html'
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_LAYERS_OWNER
'admin'
DEFAULT_LAYER_SOURCE
{'ptype': 'gxp_wmscsource', 'restUrl': '/gs/rest', 'url': '/geoserver/wms'}
DEFAULT_MAP_CENTER
(-84.7, 12.8)
DEFAULT_MAP_ZOOM
7
DEFAULT_TABLESPACE
''
DISALLOWED_USER_AGENTS
()
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'localhost'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
''
EMAIL_PORT
25
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_USE_TLS
False
FILE_CHARSET
'utf-8'
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_TEMP_DIR
None
FIRST_DAY_OF_WEEK
0
FIXTURE_DIRS
()
FORCE_SCRIPT_NAME
None
FORMAT_MODULE_PATH
None
GEONETWORK_BASE_URL
'http://localhost:8080/geonetwork/'
GEONETWORK_CREDENTIALS
('admin', 'admin')
GEONODE_CLIENT_LOCATION
'http://localhost:8081/'
GEONODE_ROOT
'/Users/bartvde/opengeo/git/mapstory/geonode/src/GeoNodePy/geonode'
GEONODE_UPLOAD_PATH
'/Users/bartvde/opengeo/git/mapstory/mapstory/static/uploadedgeonode'
GEOSERVER_BASE_URL
'http://localhost:8080/geoserver/'
GEOSERVER_CREDENTIALS
('geoserver_admin', 'YsEP-eZ!YDn#@3Ho8UdIiyLV6QsjS4o')
GEOSERVER_TOKEN
'YsEP-eZ!YDn#@3Ho8UdIiyLV6QsjS4o'
GOOGLE_API_KEY
'ABQIAAAAkofooZxTfcCv9Wi3zzGTVxTnme5EwnLVtEDGnh-lFVzRJhbdQhQgAhB1eT_2muZtc0dl-ZSWrtzmrw'
IGNORABLE_404_ENDS
('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
IGNORABLE_404_STARTS
('/cgi-bin/', '/_vti_bin', '/_vti_inf')
INSTALLED_APPS
['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.sitemaps', 'staticfiles', 'django_extensions', 'registration', 'profiles', 'avatar', 'geonode.core', 'geonode.maps', 'geonode.proxy', 'geonode']
INTERNAL_IPS
()
LANGUAGES
(('en', 'English'), ('es', 'Espa\xc3\xb1ol'), ('it', 'Italiano'), ('fr', 'Fran\xc3\xa7ais'))
LANGUAGES_BIDI
('he', 'ar', 'fa')
LANGUAGE_CODE
'en'
LANGUAGE_COOKIE_NAME
'django_language'
LOCALE_PATHS
('/Users/bartvde/opengeo/git/mapstory/mapstory/locale', '/Users/bartvde/opengeo/git/mapstory/mapstory/maps/locale')
LOGIN_REDIRECT_URL
'/'
LOGIN_URL
'/accounts/login/'
LOGOUT_URL
'/accounts/logout/'
MANAGERS
()
MAP_BASELAYERS
[{'args': ['No background'], 'fixed': True, 'group': 'background', 'source': {'ptype': 'gx_olsource'}, 'type': 'OpenLayers.Layer', 'visibility': False}, {'args': ['OpenStreetMap'], 'fixed': True, 'group': 'background', 'source': {'ptype': 'gx_olsource'}, 'type': 'OpenLayers.Layer.OSM', 'visibility': True}, {'args': ['bluemarble', 'http://maps.opengeo.org/geowebcache/service/wms', {'format': 'image/png', 'layers': ['bluemarble'], 'tiled': True, 'tilesOrigin': [-20037508.34, -20037508.34]}, {'buffer': 0}], 'fixed': True, 'group': 'background', 'source': {'ptype': 'gx_olsource'}, 'type': 'OpenLayers.Layer.WMS', 'visibility': False}]
MEDIA_ROOT
'/Users/bartvde/opengeo/git/mapstory/mapstory/static/uploaded'
MEDIA_URL
'/uploaded/'
MESSAGE_STORAGE
'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'
MIDDLEWARE_CLASSES
('django.middleware.cache.UpdateCacheMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.cache.FetchFromCacheMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware')
MONTH_DAY_FORMAT
'F j'
NOSE_ARGS
['--verbosity=2', '--cover-erase', '--nocapture', '--with-coverage', '--cover-package=geonode', '--cover-inclusive', '--cover-tests', '--detailed-errors', '--with-xunit', '--with-id']
NUMBER_GROUPING
0
PASSWORD_RESET_TIMEOUT_DAYS
'********************'
PREPEND_WWW
False
PROFANITIES_LIST
'********************'
PROJECT_ROOT
'/Users/bartvde/opengeo/git/mapstory/mapstory'
REGISTRATION_OPEN
False
ROOT_URLCONF
'mapstory.urls'
SECRET_KEY
'********************'
SEND_BROKEN_LINK_EMAILS
False
SERVER_EMAIL
'root@localhost'
SERVE_MEDIA
True
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
SESSION_COOKIE_PATH
'/'
SESSION_COOKIE_SECURE
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
False
SETTINGS_MODULE
'mapstory.settings'
SHORT_DATETIME_FORMAT
'm/d/Y P'
SHORT_DATE_FORMAT
'm/d/Y'
SITENAME
'MapStory'
SITEURL
'http://localhost:8000/'
SITE_ID
1
STATICFILES_DIRS
['/Users/bartvde/opengeo/git/mapstory/mapstory/media', '/Users/bartvde/opengeo/git/mapstory/geonode/src/GeoNodePy/geonode/media']
STATICFILES_EXCLUDED_APPS
()
STATICFILES_FINDERS
('staticfiles.finders.FileSystemFinder', 'staticfiles.finders.AppDirectoriesFinder')
STATICFILES_ROOT
'/Users/bartvde/opengeo/git/mapstory/mapstory/static'
STATICFILES_STORAGE
'staticfiles.storage.StaticFilesStorage'
STATICFILES_URL
'/static/'
STATIC_ROOT
'/Users/bartvde/opengeo/git/mapstory/mapstory/static'
STATIC_URL
'/static/'
TEMPLATE_CONTEXT_PROCESSORS
('django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'geonode.maps.context_processors.resource_urls')
TEMPLATE_DEBUG
True
TEMPLATE_DIRS
('/Users/bartvde/opengeo/git/mapstory/mapstory/templates', '/Users/bartvde/opengeo/git/mapstory/geonode/src/GeoNodePy/geonode/templates')
TEMPLATE_LOADERS
('django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source', 'django.template.loaders.app_directories.Loader')
TEMPLATE_STRING_IF_INVALID
''
TEST_DATABASE_CHARSET
None
TEST_DATABASE_COLLATION
None
TEST_DATABASE_NAME
None
TEST_RUNNER
'django_nose.NoseTestSuiteRunner'
THOUSAND_SEPARATOR
','
TIME_FORMAT
'P'
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M')
TIME_ZONE
'America/Chicago'
TRANSACTIONS_MANAGED
False
URL_VALIDATOR_USER_AGENT
'Django/1.2 (http://www.djangoproject.com)'
USE_ETAGS
False
USE_I18N
True
USE_L10N
False
USE_THOUSAND_SEPARATOR
False
USE_UPLOADER
True
YEAR_MONTH_FORMAT
'F Y'
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment