I am using retrofit to pass data to server. But getting following exception in response :
okhttp3.internal.http2.StreamResetException: stream was reset: REFUSED_STREAM
I referred following links for the above exception: java.io.IOException: stream was reset: REFUSED_STREAM on several devices
and updated retrofit and okhttp versions to following :
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.okhttp3:okhttp:3.5.0'
Still issue is not resolved. How to fix it?