{"action":"opened","issue":{"url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/872","repository_url":"https://api.github.com/repos/ciscospark/spark-js-sdk","labels_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/872/labels{/name}","comments_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/872/comments","events_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/872/events","html_url":"https://github.com/ciscospark/spark-js-sdk/issues/872","id":314705727,"number":872,"title":"conversation and team not respecting high availability hosts","user":{"login":"good-joe","id":3604967,"avatar_url":"https://avatars1.githubusercontent.com/u/3604967?v=4","gravatar_id":"","url":"https://api.github.com/users/good-joe","html_url":"https://github.com/good-joe","followers_url":"https://api.github.com/users/good-joe/followers","following_url":"https://api.github.com/users/good-joe/following{/other_user}","gists_url":"https://api.github.com/users/good-joe/gists{/gist_id}","starred_url":"https://api.github.com/users/good-joe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/good-joe/subscriptions","organizations_url":"https://api.github.com/users/good-joe/orgs","repos_url":"https://api.github.com/users/good-joe/repos","events_url":"https://api.github.com/users/good-joe/events{/privacy}","received_events_url":"https://api.github.com/users/good-joe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-16T15:26:04Z","updated_at":"2018-04-16T15:26:04Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Expected Behavior\r\nAll requests from conversations and teams should be through the current host substituted URL. \r\n\r\n## Current Behavior\r\nConversations and teams use an \"inferred\" cached URL that evades HA host substitution.\r\n\r\n## Possible Solution (we welcome any logical suggestion)\r\nIf HA is enabled the request URL should be computed with each usage. Both team and conversation do a one time \"inference\" of a URL from the service URL and the team ID and cache the result in the convo or team object. In the case of HA we simply need to ignore the cache and recompute with each usage.\r\n\r\n\r\n## Steps to Reproduce\r\n<!--- Please provide detailed steps for reproducing the issue -->\r\n1. Authenticate on web client\r\n2. Select Teams\r\n3. Attempt to create a new team\r\n4. The client fails with a 401 as the request is routed to the incorrect endpoint. For example\r\n    routing to https://conv-a.wbx2.com/... instead of the expect https://conv.a6.ciscospark.com/...\r\n\r\n## Environment Details\r\n<!--- Provide as much detail as possible about your environment -->\r\n* SDK Version 1.30.x\r\n* Node/Browser Version latest Chrome\r\n* NPM Version 7.3\r\n"}}
{"actor":{"display_login":"good-joe"}}