NYPL-Simplified/circulation

Possible problem with admin routes without slashes when running from docker

Closed this issue · 0 comments

When I run the app from docker, going to /admin/ works but going to /admin gives me this:
{"host": "05af3e533f95", "name": "root", "level": "ERROR", "timestamp": "2018-04-30T02:35:16.704907", "app": "simplified", "traceback": "Traceback (most recent call last):\n File \"/var/www/circulation/env/local/lib/python2.7/site-packages/flask/app.py\", line 1813, in full_dispatch_request\n rv = self.dispatch_request()\n File \"/var/www/circulation/env/local/lib/python2.7/site-packages/flask/app.py\", line 1791, in dispatch_request\n self.raise_routing_exception(req)\n File \"/var/www/circulation/env/local/lib/python2.7/site-packages/flask/app.py\", line 1774, in raise_routing_exception\n raise request.routing_exception\nRequestRedirect: 301 Moved Permanently: None", "message": "Exception in web app: 301 Moved Permanently: None", "filename": "app_server.py"}