{"action":"closed","issue":{"url":"https://api.github.com/repos/GoogleChrome/samples/issues/434","repository_url":"https://api.github.com/repos/GoogleChrome/samples","labels_url":"https://api.github.com/repos/GoogleChrome/samples/issues/434/labels{/name}","comments_url":"https://api.github.com/repos/GoogleChrome/samples/issues/434/comments","events_url":"https://api.github.com/repos/GoogleChrome/samples/issues/434/events","html_url":"https://github.com/GoogleChrome/samples/issues/434","id":184968769,"number":434,"title":"Discover services sample fails at server.getPrimaryServices","user":{"login":"heaversm","id":520541,"avatar_url":"https://avatars.githubusercontent.com/u/520541?v=3","gravatar_id":"","url":"https://api.github.com/users/heaversm","html_url":"https://github.com/heaversm","followers_url":"https://api.github.com/users/heaversm/followers","following_url":"https://api.github.com/users/heaversm/following{/other_user}","gists_url":"https://api.github.com/users/heaversm/gists{/gist_id}","starred_url":"https://api.github.com/users/heaversm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heaversm/subscriptions","organizations_url":"https://api.github.com/users/heaversm/orgs","repos_url":"https://api.github.com/users/heaversm/repos","events_url":"https://api.github.com/users/heaversm/events{/privacy}","received_events_url":"https://api.github.com/users/heaversm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-24T22:13:03Z","updated_at":"2016-10-25T13:47:57Z","closed_at":"2016-10-25T13:47:57Z","body":"I'm using the BLE simulator with the battery service, and attempting to run the \"Discover Services\" sample. It fails at line 20: `return server.getPrimaryServices();` stating\r\n\r\n```\r\nArgh! NotFoundError: No Services found in device.\r\n```\r\n\r\nAny idea how to get this working. I saw an issue filed [here](https://github.com/GoogleChrome/samples/issues/411) but this didn't seem to work, though I think it might be related, as the documentation for [getPrimaryServices](https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattserver-getprimaryservices) states that:\r\n\r\n```\r\nIf this.device.[[allowedServices]] is not \"all\", and service is present and not in this.device.[[allowedServices]], return a promise rejected with a SecurityError and abort these steps.\r\n```\r\n\r\nAny idea how to resolve this - I'd love to get an example working that searches for any available devices and their services. Thanks!"}}
{"actor":{"display_login":"beaufortfrancois"}}