firebase / firebase/firebase-ios-sdk
RTDB exposes wrong error message when performing `get` on a path blocked by security rules
- Dominant language
- C++
- Stars
- 6.7k
- Forks
- 1.8k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 72
Description
### Description
When calling `getData` on a path, say `/a/b`, and `/` is set to deny reads, the SDK responds with
```
Unable to get latest value for query FQuerySpec (path: /a/b, params: {
}), client offline with no active listeners and no matching disk cache entries
```
Instead of sending back this opaque error message, we should read the response that comes back from the server after the `get`
Relevant Code:
https://github.com/firebase/firebase-ios-sdk/blob/a885d5e023b04273fcce525e1ae236283845d774/FirebaseDatabase/Sources/Core/FRepo.m#L548C14-L548C14
### Reproducing the issue
_No response_
### Firebase SDK Version
10.9
### Xcode Version
14.3
### Installation Method
Swift Package Manager
### Firebase Product(s)
Database
### Targeted Platforms
All
### Relevant Log Output
_No response_
### If using Swift Package Manager, the project's Package.resolved
_No response_
### If using CocoaPods, the project's Podfile.lock
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.