Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Error: Network_Error: null #10

Open
ksyamkrishnan opened this issue Nov 3, 2017 · 16 comments
Open

Error: Network_Error: null #10

ksyamkrishnan opened this issue Nov 3, 2017 · 16 comments

Comments

@ksyamkrishnan
Copy link

I took a pull and installed the app .

But when I verified the device response is Network_Error_null

@JeppeLeth
Copy link

I had the same issue. Turns out the API key I used was for a different project in the Google APIs Console

@phileo
Copy link

phileo commented Nov 16, 2017

If you goto https://console.developers.google.com/apis/api/androidcheck.googleapis.com/overview and select your project in the upper left, you will see under the "Errors" section an http error code. In my case, I got a 403, which indicated that I had the same problem as @JeppeLeth . Once I passed in a valid API key to sendSafetyNetRequest() , I got the onSuccess() callback.

@scorpeeon
Copy link

I have the same problem.
I found that it's indeed the API key that causes the issue: using a fully unrestricted API key works (as expected). But using one with the restriction: Android Device Verification API does not work, it produces the error:
java.io.FileNotFoundException: https://www.googleapis.com/androidcheck/v1/attestations/verify?key=API_KEY

Shouldn't this work with the Android Device Verification API restriction? Do we really have to use unrestricted keys for this?

@MunkyAlberto
Copy link

Everything works as expected if the key has no restrictions, but I get this error when I enable the 'Android app' restriction with my package name and SHA-1 signature.

I can see 403 errors in the console.

Is this expected? An attacker could just deplete our quota if they get their hands on the API key.

@harri35
Copy link

harri35 commented Mar 23, 2018

I have the same problem - is the restrictions are set, then I get 403 / ApiException 7. If no restrictions are set then everything works. I have the same API Key for GCM push also, works fine there.

@ynagarjuna2012
Copy link

I have the same issue.
Using a fully unrestricted key.

@vishishttiwari
Copy link

vishishttiwari commented Jun 13, 2018

Make sure that you API is enabled. I was using the key without restrictions and it was not working until I realized that I had never enabled the APIs from the dashboard.

It will not work with restrictions because google has not implemented that. You can find this here: https://support.google.com/googleplay/android-developer/contact/safetynetqr

@khalid64927
Copy link

I've suddenly started getting this issue, was working fine so far.

Trials

  1. tried with new API key (no restriction) same issue
  2. tried with different wifi and same issue
  3. tried new API key (no restriction) with deprecated SafetyNetApi and same issue

This we are getting in production and is high priority issue, anybody know why it is throwing NETWORK_ERROR all of sudden and is it happening for all new API Keys that is strange.

If it fails for one API key and not for other makes sense but this is weird.

@parth9966
Copy link

Hello @khalid64927

Have you found the solutions about NETWORK_ERROR ?

@khalid64927
Copy link

@parth9966 Nope

@parth9966
Copy link

Hello @khalid64927

try this, Play services 15.0.1 to fix the Attest failures and let me know even success or fail.
thanks

@parth9966
Copy link

Hello @khalid64927
check #35 and #39

NETWORK_ERROR Solved !!!!

@khalid64927
Copy link

khalid64927 commented Aug 31, 2018

@parth9966 I tried updating to 15.0.1 and gradle plugin 3.1.4 and wrapper to 4.4
still issue is reproducible in Google sample.

I think it also need code changes done by scotty

Do you have it working ?

I can see Scotty already uploaded to playstore working app but not merged code yet.

@khalid64927
Copy link

@parth9966 Yup it's working with code changes

@parth9966
Copy link

parth9966 commented Sep 27, 2018 via email

@daviswliu
Copy link

daviswliu commented Sep 27, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests