Device Status : unexpected output "connection error"

First of all:

  1. My bolt module is online ( both blue and green LEDs are stable )
  2. On bolt cloud my device is showing online.

But still, I’m not getting the expected output in case of checking device status.

Here is my code:
from boltiot import Bolt
device_id = “BOLTXXXXXX”
mybolt = Bolt(api_key, device_id)
response = mybolt.isOnline()
print (response)

And here is the output:

Hi @patnetushar96,

Please write in the reply about how did you solve your issue ? It will help other also.

I got the solution for my own problem. I’m posting the solution in case someone else is facing same issue.

The problem here is that VirtualBox was not getting the internet connection.

follow these steps:

  1. Open Virtualbox Manager
  2. Select the machine you cannot get internet on in the left pane
  3. Click the Settings button in the top menu
  4. Click Network in the left pane in the settings window
  5. Switched to Bridged Adapter in the Attached to drop-down menu
  6. Under Advanced , make sure the machine is using the Desktop Adapter Type
  7. Under Advanced , make sure Promiscuous Mode is set to Allow All
  8. Under Advanced , make sure Cable connected is checked on
  9. Hit OK to save your changes
  10. Start your VM