{"action":"created","issue":{"url":"https://api.github.com/repos/mattermost/platform/issues/2999","repository_url":"https://api.github.com/repos/mattermost/platform","labels_url":"https://api.github.com/repos/mattermost/platform/issues/2999/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/platform/issues/2999/comments","events_url":"https://api.github.com/repos/mattermost/platform/issues/2999/events","html_url":"https://github.com/mattermost/platform/issues/2999","id":154856361,"number":2999,"title":"Problems  with API requests after upgrade to 3.0","user":{"login":"TwizzyDizzy","id":179595,"avatar_url":"https://avatars.githubusercontent.com/u/179595?v=3","gravatar_id":"","url":"https://api.github.com/users/TwizzyDizzy","html_url":"https://github.com/TwizzyDizzy","followers_url":"https://api.github.com/users/TwizzyDizzy/followers","following_url":"https://api.github.com/users/TwizzyDizzy/following{/other_user}","gists_url":"https://api.github.com/users/TwizzyDizzy/gists{/gist_id}","starred_url":"https://api.github.com/users/TwizzyDizzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TwizzyDizzy/subscriptions","organizations_url":"https://api.github.com/users/TwizzyDizzy/orgs","repos_url":"https://api.github.com/users/TwizzyDizzy/repos","events_url":"https://api.github.com/users/TwizzyDizzy/events{/privacy}","received_events_url":"https://api.github.com/users/TwizzyDizzy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-14T14:23:44Z","updated_at":"2016-05-15T14:43:18Z","closed_at":null,"body":"Hi folks,\r\n\r\nI just upgraded to mattermost 3.0 (from 2.2) and now there seems to be a problem in the administration interface (\"system console\") - clicking on any menu option doesn't do anything but yields some error like: (from browser console)\r\n\r\n    client.js:964 GET https://my.host.name/api/v3/admin/config 500 (Internal Server Error)\r\n\r\nThis actually is expected, since there was the API upgrade from v1 to v3.\r\n\r\nSo what I want to establish is a thourough listing of \r\n\r\n* what API paths need the websocket upgrade\r\n* what API paths need the reverse-proxy-ing to the websocket API locahost:8065\r\n\r\nHere's my apache2 (2.4) configuration that worked flawlessly with APIv1 on mattermost 2.2 with the following setup:\r\n\r\n* Mattermost is running on 127.0.0.1:8065\r\n* Apache2 serves mattermost using reverse proxy\r\n\r\n```\r\nRewriteEngine On\r\nProxyPreserveHost On\r\n\r\nRewriteCond %{REQUEST_URI}  ^/api/v1/websocket    [NC,OR]\r\nRewriteCond %{HTTP:UPGRADE} ^WebSocket$           [NC,OR]\r\nRewriteCond %{HTTP:CONNECTION} ^Upgrade$          [NC]\r\nRewriteRule .* ws://127.0.0.1:8065%{REQUEST_URI}  [P,QSA]\r\n\r\nRewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f\r\nRewriteRule .* http://127.0.0.1:8065%{REQUEST_URI} [P,QSA]\r\n\r\nRequestHeader set X-Forwarded-Proto \"https\"\r\nRequestHeader set X-Forwarded-SSL on\r\nHeader always set Strict-Transport-Security \"max-age=31536000; includeSubDomains\"\r\nHeader always set X-Xss-Protection \"1; mode=block\"\r\nHeader always set X-Content-Type-Options \"nosniff\"\r\nHeader always append X-Frame-Options SAMEORIGIN\r\n\r\nRequestHeader unset If-Modified-Since\r\nRequestHeader unset If-None-Match\r\n\r\n<Location /api/v1/websocket>\r\n        Require all granted\r\n        ProxyPassReverse ws://127.0.0.1:8065/api/vi/websocket\r\n        ProxyPassReverseCookieDomain 127.0.0.1 my.host.name\r\n</Location>\r\n\r\n<Location />\r\n        Require all granted\r\n        ProxyPassReverse http://127.0.0.1:8065/\r\n        ProxyPassReverseCookieDomain 127.0.0.1 my.host.name\r\n</Location>\r\n```\r\n\r\nCheers & thanks in advance\r\nThomas\r\n"},"comment":{"url":"https://api.github.com/repos/mattermost/platform/issues/comments/219289711","html_url":"https://github.com/mattermost/platform/issues/2999#issuecomment-219289711","issue_url":"https://api.github.com/repos/mattermost/platform/issues/2999","id":219289711,"user":{"login":"enahum","id":6757047,"avatar_url":"https://avatars.githubusercontent.com/u/6757047?v=3","gravatar_id":"","url":"https://api.github.com/users/enahum","html_url":"https://github.com/enahum","followers_url":"https://api.github.com/users/enahum/followers","following_url":"https://api.github.com/users/enahum/following{/other_user}","gists_url":"https://api.github.com/users/enahum/gists{/gist_id}","starred_url":"https://api.github.com/users/enahum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enahum/subscriptions","organizations_url":"https://api.github.com/users/enahum/orgs","repos_url":"https://api.github.com/users/enahum/repos","events_url":"https://api.github.com/users/enahum/events{/privacy}","received_events_url":"https://api.github.com/users/enahum/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T14:43:18Z","updated_at":"2016-05-15T14:43:18Z","body":"I couldn't repro.. upgrade its working fine for me "}}