title: Firebase exception while reading using FirebaseDatabase.net
body: <p>I am trying to get a particular object from firebase, but I get this exception:</p>
  <pre><code>public async void ReadByIdAsync(string ChildName, string Id) {
  
      var item = await firebaseClient
         .Child(ChildName)
         .Child(Id)
         .OnceAsync&lt;NotebookNote&gt;();
  
      var itemProperty = item.Count;
  
      System.Console.WriteLine(itemProperty);
  
  }
  </code></pre>
  <blockquote>
  <p>Firebase.Database.FirebaseException: 'Exception occured while processing the request.
  Url: <a href="https://duonotes-f2b77-default-rtdb.europe-west1.firebasedatabase.app/Notes/-" rel="nofollow noreferrer">https://duonotes-f2b77-default-rtdb.europe-west1.firebasedatabase.app/Notes/-</a>
  MxgjxhpwoBeOLBy83rh/.json
  Request Data:
  Response: {&quot;CreatedDate&quot;:&quot;Wednesday, March 9,
  2022&quot;,&quot;FileLocation&quot;:&quot;https://notesbucket.blob.core.windows.net/notes/1.html&quot;,&quot;Name&quot;:&quot;1&quot;,&quot;NotebookId&quot;:&quot;-MxgjqZ9JShzHH21k_RS&quot;}'</p>
  </blockquote>
  <p>I already checked this solution, but it did not work in my case</p>
  <p><a href="https://stackoverflow.com/questions/56054361/firebase-database-firebaseexception-exception-occured-while-processing-the-requ?fbclid=IwAR0I4KT7ldUvAeP9gzjJvnJycHat4XOplBrIm-Atv8IiXUvV7T0JGwTpV18">Solution</a></p>
  <p>The strange part is that in the response, I am getting all the data that I want.</p>
  <p>The thing that confuses me the most, is that I have a method that is almost the same, and works perfectly</p>
  <pre><code>public async Task&lt;List&lt;NotebookNote&gt;&gt; ReadWithOutUpdateAsync(string ChildName, string NotebookId = &quot;&quot;) {
        
      var list = await firebaseClient.Child(ChildName)
           .OnceAsync&lt;NotebookNote&gt;();
     
      var collection = new List&lt;NotebookNote&gt;();
      foreach (var item in list) {
          NotebookNote notebookNote = null;
          notebookNote = Convert(ChildName, item);
          collection.Add(notebookNote);
      }
      if (ChildName.Equals(AppConstant.Notes)) {
          collection = collection.Where(n =&gt; ((Note)n).NotebookId == NotebookId).ToList();
      }
      return collection;
  }
  </code></pre>
  <p>I even tried the example code in GitHub and I get the same exception (I modify it for my needs)</p>
  <pre><code>public async void ReadByIdAsync(string ChildName, string Id) {
  
      var Notes = await firebaseClient
                             .Child(ChildName).Child(Id)
                             .OnceAsync&lt;NotebookNote&gt;();
  
      foreach (var item in Notes) {
          Console.WriteLine($&quot;{ item.Key}&quot;);
      }
  </code></pre>