-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ML Model Downloader is giving wrong exception #4157
Comments
I found a few problems with this issue:
|
Thanks for reporting, @sandeep5193. Just to clarify so I don't get it wrong, how did you "restrict API key with android app's debug/release key"? Can you walk me through the steps? Also I wonder, does passing an empty string to the Thanks! |
I have restricted the API key used for this project with these steps. I have not tried passing an empty string to that method when API key is not restricted, this is a prod setup, I cannot test that. |
Thanks for the extra details, @sandeep5193. I was able to reproduce the same behavior. I'll notify our engineers and see what we can do here. Thanks! Just some notes here. The point of entry of the issue is here: Lines 151 to 153 in ee13f03
Which triggers the following error code: Line 275 in ee13f03
|
i updated fierbase libs and now i have this error. very bad. have you any workaround temporary case ? |
Hi @Sankyuubigan, are you pertaining to the wifi/mobile data issue? Can you share what was the previous version you were using? Also what error are you receiving? Can you also provide code snippets or MCVE? Thanks! |
Hi @sandeep5193, we've added a new exception handler for empty strings. The fix would be available in the next upcoming release. That said, I'll close this issue now. |
Step 2: Describe your environment
Step 3: Describe the problem
In 2 situations, model download is failing.
while there can be a problem with the network, and of course in point no 2 it should fail, but error message it is giving is misleading.
Error message for Empty model name:
Permission error while fetching model (): HTTP response from Firebase Download Service: [401 - Unauthorized: API keys are not supported by this API. Expected OAuth2 access token or other authentication credentials that assert a principal. See https://cloud.google.com/docs/authentication]
And yes, I have restricted my API key with debug/release keys.
Steps to reproduce:
restrict API key with android app's debug/release key, send modelName as empty string to
getModel()
method.Relevant Code:
The text was updated successfully, but these errors were encountered: