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
Network on main thread #86
Comments
You must make synchronous call from background thread. |
isnt that the Async Request?
|
This will do the network task in the background and return the response in the main thread. However, you can also get the response in another thread of your choice by using |
is there a way for SSL Pinning in FAN? |
@mohsin1122 As FAN is built on OkHttp Layer, you can definitely pass custom OkHttpClient while initializing it. |
i tried by this way but it is not showing errors as the sha key is incorrect
also try this way but still it gets the response for WS
|
@mohsin1122 without the url how can I debug? |
@mohsin1122 I am getting server error. |
@mohsin1122 cannot help with little information. At least can tell me the exact error body you are getting. As the request is having many input like headers and JSON. |
@amitshekhariitbhu is there a way we can have chat? |
plz provide me the example how to implement ssl pinning using FAN. |
I will provide it as an example on website, I think there is some problem from your server side |
@amitshekhariitbhu thanks |
@mohsin1122 Have you tried your request from Postman (just for testing, is your server working). |
@amitshekhariitbhu bro server is working fine |
@mohsin1122 You are doing it right, but I do not know why that is not working. Try putting the password like this and do not add contentType as it will automatically pick.
|
the snippet u provide is working but still not validating the certificate(not giving any errors) |
Resolved |
hi,
i am using the below code to get synchronous call, but got network on main thread error
The text was updated successfully, but these errors were encountered: