title: com.google.firebase.firestore.FirebaseFirestoreException: Failed to get document because the client is offline. Android
body: <p>I get this run time error that I do not understand the reason behind it.</p>
  
  <p><code>com.google.firebase.firestore.FirebaseFirestoreException: Failed to get document because the client is offline.</code></p>
  
  <p>Below is the code in my Activity that tries to fetch data from the cloud Firestore</p>
  
  <pre><code>DocumentReference docRef = db.collection("room-id-1").document("participan-name-1");
      docRef.get().addOnCompleteListener(new OnCompleteListener&lt;DocumentSnapshot&gt;() {
          @Override
          public void onComplete(@NonNull Task&lt;DocumentSnapshot&gt; task) {
              if (task.isSuccessful()) {
                  DocumentSnapshot document = task.getResult();
                  if (document != null) {
                      Log.d(TAG, "DocumentSnapshot data: " + task.getResult().getData());
                      userData.registerUserToHotspot(roomId_str, participantName_str);
                  } else {
                      Log.d(TAG, "No such document");
                  }
              } else {
                  Log.d(TAG, "get failed with ", task.getException());
              }
          }
      });
  </code></pre>
  
  <p>Is there something I can do about this?</p>