0

Who knows how to fix this problem?

This is my prod server:

debug {
   proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
   buildConfigField "String", "BASE_URL", "\"https://pethouse.ua/\""
}

But if I change hostname to test-server, like this:

debug {
   proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
   buildConfigField "String", "BASE_URL", "\"https://test.pethouse.ua/\""
}

When my app starts and make first request to server I getting exception:

--> GET https://test.pethouse.ua/app/v1/ua/...../

<-- HTTP FAILED: javax.net.ssl.SSLHandshakeException: Chain validation failed

The same request from Postman - works fine. Restarting emulator doesn't helps. Date and time on emulator are set correctly.

1
  • Did you solve this? I have the same error and no solution is working for me. Commented Apr 16, 2024 at 15:07

1 Answer 1

0

You have to check validity of your api url on SSL checker page https://www.sslshopper.com/ssl-checker.html

if it's expired then you have to update it's expiry time.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.