{"action":"created","issue":{"url":"https://api.github.com/repos/paschmann/rasa-ui/issues/65","repository_url":"https://api.github.com/repos/paschmann/rasa-ui","labels_url":"https://api.github.com/repos/paschmann/rasa-ui/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/paschmann/rasa-ui/issues/65/comments","events_url":"https://api.github.com/repos/paschmann/rasa-ui/issues/65/events","html_url":"https://github.com/paschmann/rasa-ui/issues/65","id":318738239,"number":65,"title":"builtins.AttributeError: 'RasaCoreServer' object has no attribute 'access_token'","user":{"login":"ayashjorden","id":4204371,"avatar_url":"https://avatars3.githubusercontent.com/u/4204371?v=4","gravatar_id":"","url":"https://api.github.com/users/ayashjorden","html_url":"https://github.com/ayashjorden","followers_url":"https://api.github.com/users/ayashjorden/followers","following_url":"https://api.github.com/users/ayashjorden/following{/other_user}","gists_url":"https://api.github.com/users/ayashjorden/gists{/gist_id}","starred_url":"https://api.github.com/users/ayashjorden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayashjorden/subscriptions","organizations_url":"https://api.github.com/users/ayashjorden/orgs","repos_url":"https://api.github.com/users/ayashjorden/repos","events_url":"https://api.github.com/users/ayashjorden/events{/privacy}","received_events_url":"https://api.github.com/users/ayashjorden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-29T18:25:54Z","updated_at":"2018-04-29T18:58:39Z","closed_at":"2018-04-29T18:58:39Z","author_association":"CONTRIBUTOR","body":"Hello,\r\nWhen I try the conversation sidebar (in the Agent screen), it causes my Rasa core (HTTP server) to throw an exception and crash the rasaui server.\r\n\r\nI'm running RASA NLU as HTTP server and CORE as HTTP server based on the provided script from the Training section -> 'Rasa Core Config' sub section python script:\r\n```\r\nimport logging\r\nfrom rasa_core.interpreter import RasaNLUHttpInterpreter\r\nfrom rasa_core.server import RasaCoreServer\r\nfrom rasa_core.server import create_argument_parser\r\n\r\nlogger = logging.getLogger(__name__)\r\n\r\nif __name__ == '__main__':\r\n    # Script to run Rasa NLU HTTP Interpreter\r\n    arg_parser = create_argument_parser()\r\n    cmdline_args = arg_parser.parse_args()\r\n\r\n    logging.basicConfig(level=cmdline_args.loglevel)\r\n    if cmdline_args.nlu == 'RasaNLUHttpInterpreter':\r\n        logger.info(\"Creating RasaNLU HTTP Interpreter\")\r\n        # Fill in the modelname and server details.\r\n        cmdline_args.nlu = RasaNLUHttpInterpreter(model_name=\"MODEL_NAME\",\r\n                                                  token=\"\",\r\n                                                  server=\"http://localhost:5000\",\r\n                                                  project_name=\"PROJECT_NAME\")\r\n\r\n    rasa = RasaCoreServer(cmdline_args.core,\r\n                          cmdline_args.nlu,\r\n                          cmdline_args.loglevel,\r\n                          cmdline_args.log_file,\r\n                          cmdline_args.cors,\r\n                          auth_token=cmdline_args.auth_token)\r\n\r\n    logger.info(\"Starting Rasa Core http server on port %s\" %\r\n                cmdline_args.port)\r\n    rasa.app.run(\"0.0.0.0\", cmdline_args.port)\r\n```\r\nrasaui error:\r\n```\r\nHTML_OF_THE_PYTHON_STACK_TRACE_BELOW\r\n\r\nSyntaxError: Unexpected token < in JSON at position 0\r\n    at JSON.parse (<anonymous>)\r\n    at Request._callback (/Users/jbar/private-src/rasaui/server/routes/mw_routes/core_router.js:109:24)\r\n    at Request.self.callback (/Users/jbar/private-src/rasaui/node_modules/request/request.js:186:22)\r\n    at Request.emit (events.js:180:13)\r\n    at Request.<anonymous> (/Users/jbar/private-src/rasaui/node_modules/request/request.js:1163:10)\r\n    at Request.emit (events.js:180:13)\r\n    at IncomingMessage.<anonymous> (/Users/jbar/private-src/rasaui/node_modules/request/request.js:1085:12)\r\n    at Object.onceWrapper (events.js:272:13)\r\n    at IncomingMessage.emit (events.js:185:15)\r\n    at endReadableNT (_stream_readable.js:1101:12)\r\n    at process._tickCallback (internal/process/next_tick.js:114:19)\r\n\r\n```\r\n\r\n```\r\n2018-04-28 15:37:38+0300 [_GenericHTTPChannelProtocol,1,127.0.0.1] Unhandled Error\r\n\tTraceback (most recent call last):\r\n\t  File \"$HOME/venv/PROJECT_DIR/lib/python3.6/site-packages/twisted/web/server.py\", line 255, in render\r\n\t    body = resrc.render(self)\r\n\t  File \"$HOME/venv/PROJECT_DIR/lib/python3.6/site-packages/klein/resource.py\", line 210, in render\r\n\t    d = defer.maybeDeferred(_execute)\r\n\t  File \"$HOME/venv/PROJECT_DIR/lib/python3.6/site-packages/twisted/internet/defer.py\", line 150, in maybeDeferred\r\n\t    result = f(*args, **kw)\r\n\t  File \"$HOME/venv/PROJECT_DIR/lib/python3.6/site-packages/klein/resource.py\", line 204, in _execute\r\n\t    **kwargs)\r\n\t--- <exception caught here> ---\r\n\t  File \"$HOME/venv/PROJECT_DIR/lib/python3.6/site-packages/twisted/internet/defer.py\", line 150, in maybeDeferred\r\n\t    result = f(*args, **kw)\r\n\t  File \"$HOME/venv/PROJECT_DIR/lib/python3.6/site-packages/klein/app.py\", line 128, in execute_endpoint\r\n\t    return endpoint_f(self._instance, *args, **kwargs)\r\n\t  File \"$HOME/venv/PROJECT_DIR/lib/python3.6/site-packages/klein/app.py\", line 227, in _f\r\n\t    return _call(instance, f, request, *a, **kw)\r\n\t  File \"$HOME/venv/PROJECT_DIR/lib/python3.6/site-packages/klein/app.py\", line 50, in _call\r\n\t    result = f(*args, **kwargs)\r\n\t  File \"$HOME/venv/PROJECT_DIR/lib/python3.6/site-packages/rasa_nlu/server.py\", line 108, in decorated\r\n\t    return f(*args, **kwargs)\r\n\t  File \"$HOME/venv/PROJECT_DIR/lib/python3.6/site-packages/rasa_nlu/server.py\", line 124, in decorated\r\n\t    if self.access_token is None or token == self.access_token:\r\n\tbuiltins.AttributeError: 'RasaCoreServer' object has no attribute 'access_token'\r\n```\r\n\r\nThank you,\r\nJorden"},"comment":{"url":"https://api.github.com/repos/paschmann/rasa-ui/issues/comments/385273164","html_url":"https://github.com/paschmann/rasa-ui/issues/65#issuecomment-385273164","issue_url":"https://api.github.com/repos/paschmann/rasa-ui/issues/65","id":385273164,"user":{"login":"ayashjorden","id":4204371,"avatar_url":"https://avatars3.githubusercontent.com/u/4204371?v=4","gravatar_id":"","url":"https://api.github.com/users/ayashjorden","html_url":"https://github.com/ayashjorden","followers_url":"https://api.github.com/users/ayashjorden/followers","following_url":"https://api.github.com/users/ayashjorden/following{/other_user}","gists_url":"https://api.github.com/users/ayashjorden/gists{/gist_id}","starred_url":"https://api.github.com/users/ayashjorden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayashjorden/subscriptions","organizations_url":"https://api.github.com/users/ayashjorden/orgs","repos_url":"https://api.github.com/users/ayashjorden/repos","events_url":"https://api.github.com/users/ayashjorden/events{/privacy}","received_events_url":"https://api.github.com/users/ayashjorden/received_events","type":"User","site_admin":false},"created_at":"2018-04-29T18:58:39Z","updated_at":"2018-04-29T18:58:39Z","author_association":"CONTRIBUTOR","body":"Issue is gone when installed `rasa_core==0.9.0a3` and `rasa_nlu==0.12.2`"}}
{"actor":{"display_login":"ayashjorden"}}