support icon indicating copy to clipboard operation
support copied to clipboard

[Bug] GATT Server is disconnected

Open jxpybrick opened this issue 1 year ago • 8 comments

Describe the bug

Error: Failed to execute 'getPrimaryService' on 'BluetoothRemoteGATTServer':
GATT Server is disconnected.
Cannot retrieve services. (Re)connect first with device.gatt.connect. at D.<computed> 
(https://code.pybricks.com/static/js/main.1bf60dfd.js:2:1397636) at 
https://code.pybricks.com/static/js/main.1bf60dfd.js:2:1401567 at m 
(https://code.pybricks.com/static/js/main.1bf60dfd.js:2:1402498) at h 
(https://code.pybricks.com/static/js/main.1bf60dfd.js:2:1402024) at l 
(https://code.pybricks.com/static/js/main.1bf60dfd.js:2:1402281)

To reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior What did you expect to happen instead?

Screenshots There is a saying that a picture is worth a 1000 words. Screenshots really help to identify and solve problems.

jxpybrick avatar Sep 16 '24 10:09 jxpybrick

Thanks for reporting the issue. However, this isn't enough information to be able to determine the cause of the problem. We will need more information, like details about your OS and which Bluetooth adapter you are using. The most helpful thing is to capture Bluetooth packets so we can see what is going on at a lower level. This is described in more detail in #270.

dlech avatar Sep 18 '24 20:09 dlech