Fast-android-networking: com.androidnetworking.error.ANError:

Created on 12 May 2017  路  6Comments  路  Source: amitshekhariitbhu/Fast-Android-Networking

Not able to request continuously getting error

com.androidnetworking.error.ANError: java.lang.NullPointerException: Attempt to invoke virtual method 'okhttp3.HttpUrl$Builder okhttp3.HttpUrl.newBuilder()' on a null object reference

question

Most helpful comment

@salmansynergytop tell me the URL, it must contain HTTP or HTTPS.

All 6 comments

@salmansynergytop tell me the URL, it must contain HTTP or HTTPS.

I also encountered this error, i use http.

I also faced the same problem, when I did not used HTTPS mistakenly

@amitshekhariitbhu I also encounter the same error, my URL is this http://523.642.333.80:9002/. @salmansynergytop Did you find the solution..?

In my case the url has typo by mistake an arabic character 馗
instead of / which happens to have same keyboard key.... but the logcat did not specify,
it should provide more accurate excpetion, i suggest some one fork and improve :)

@amitshekhariitbhu I also encounter the same error, my URL is this http://523.642.333.80:9002/. @salmansynergytop Did you find the solution..?

I think you should use the url in his format "http://site.com" or "https://site.com" and not "site.com" coz if you use it without http or https you will get the okhttp3 url builder error

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ExploiTR picture ExploiTR  路  7Comments

igabice picture igabice  路  8Comments

Ali-Khazaee picture Ali-Khazaee  路  5Comments

amervelic picture amervelic  路  4Comments

GulajavaMinistudio picture GulajavaMinistudio  路  3Comments