-
Notifications
You must be signed in to change notification settings - Fork 479
[Dialog Error] There was a problem communicating with the PayPal servers. Please try again. #228
Comments
To provide more information, I am using the SANDBOX Environment and my own clientID. The Sample App provided seems to be starting the Intent just fine. And this dialog doesn't always appear, I am sometimes able to connect to the PayPal servers, but am receiving this dialog more and more often now. |
Can you please dump the log that you get on Activity Monitor. We want to verify if it is not socket error you are seeing. Also, does try Again resolve the issue ? |
12-11 15:13:43.747 20396-20600/... E/paypal.sdk: request failed with server response:Socket is closed No, Try Again does not resolve the issue. |
Let me try to reproduce this issue. Thanks for your quick and detailed information. |
Were you able to reproduce the issue, I am experiencing the same problem. It works the first time i load the app but after that gets the socket close error. If there is something else that needs to be done on the app side, let me know |
I am still having a hard time reproducing this issue. I am pretty sure the issue is valid, as few of your guys have pointed that. I may have to try out on some non-office based network, which may be flaky, and see if that helps me reproduce. Rest assured, we are trying to get this issue sorted out soon 👍 |
having the same issue and same error. 01-11 12:32:26.183 31868-27081... request failed with server response:Socket is closed Is it resolved now? any updates or any other changes do we need to do from coding side? |
Hey All, I have updated the okhttp version to latest stable release in v2.12.5. Can you please update to latest version and confirm if you are now not getting this exception. I was hardly able to reproduce this issue on any device, and so, would need your help fixing this issue. I will keep an eye on this issue promptly, and get it sorted out soon 👍 Thanks for helping all ! |
Thanks, I have checked it with new release, its working fine and not getting any error dialog, but still getting error in logcat request failed with server response:Socket closed Though it is not affecting project flow, so not considering it right now. |
Getting error in logcat is accepted. Basically, what is happening here is, when the app is loaded, we inform okhttp to cancel all stale connections before making a new connection. which for reasons, would throw us an exception back about Socket closed, but as the thread is cancelled already, we neglect the error. I think this is what okhttp tried to fix before too: square/okhttp#1049 I will continue to monitor this issue, and see if people still see this issue, but if not !! Yay ! |
Same problem occurs again. Earlier was getting error when loading paypal SDK, now it is resolved with 2.12.5 but seems it is still there when user logged in with paypal account. I have logged in with paypal account and this dialog again popups with following error.
|
Same error here using Sandbox account. |
Same problem here too, with the SDK version 2.12.5 |
Hey folks, can we get a little more information from you, such as the device type and OS? Also, is it just sandbox that is facing issues, or is it production as well? Please see here for some information that may affect some people using older devices on sandbox-only. |
I am using android 5.1.1 and paypal sdk 2.12.5 and yes facing this issue in sandbox as well as in production also. |
Hi! |
I'm getting the same as @sezn. Android 6.0.1 (Nexus 6) with 2.12.5 in sandbox env, tried different version of okhttp still now working. I had to switch back to 2.10.1. |
Any updates regarding this, it's a blocking issue. |
The Please note that |
Fixed in 2.13.0 release. |
i updated paypal to 2.13.0 ,but paypal is showing same message "There is problem communicating with paypal services " ... |
@adnanafridikhan, is this happening on Live or Sandbox or both? Can you please provide some logs so we can better diagnose the issue? |
@braebot Just showing on sandbox . |
I am using SDK 2.12.1 on Android 5.0.1. |
@avsoftenterprise sorry but I think you have to move to Android Studio. |
@emandtf This is not good at all. I’m an old school Android developer, and I like to develop Android app in Eclipse. I think that is not an extra effort for PayPal SDK developer to provide Jar version of the library. What do you think about that? |
@avsoftenterprise, please see #248. If you're committed to using unsupported tooling, you'll be responsible for the extra work. In the case of this SDK, you'll need to manually duplicate the functionality of Gradle/Maven, which is to download the correct okhttp3 jar, and extract the jar of this project from the aar. You're really welcome to use any IDE that supports the official Google supported |
@avsoftenterprise I agree with you but this is the fact: for ONLY ONE 3rd party library we should move completly to a different IDE. It's a waste of time and money (for who is working with it) convert projects and "learn" a different IDE, but what can we do to avoid this? Unfortunately nothing... :( Maybe this could help you: http://stackoverflow.com/questions/21417419/how-to-convert-aar-to-jar |
it's working fine on Android 5.0 and above . I am using the PayPal SDK 2.10.0 on Android 4.3 and Eclipse |
@vashistrinku Please read the README (https://github.com/paypal/PayPal-Android-SDK#requirements) under "Sandbox and TLSv1.2" section: "If you're testing on sandbox with a version of the PayPal Android SDK older than 2.13.0, then you'll start seeing communication failures when using Android devices >= API 16, and < API 20. Please upgrade to a version 2.13.0 or higher to fix these errors." |
The problem with 2.13.1 is that its not a jar file, but its a aar file. I am using eclipse which doesnt support aar files. |
@vashistrinku, please look at the previous comments in this thread. We will only be distributing |
@vashistrinku , I got the solution for PayPal SDK 2.13.1 compatibility on Eclipse project. |
thanks @avsoftenterprise . |
I'm trying to integrate Paypal to an Android app, im new in Paypal SDK, but i have followed all the steps i have seen, in resume:
I compiled SampleApp with Paypal SDK 2.14.4 Log: com.paypal.example.paypalandroidsdkexample.debug E/paypal.sdk: SERVER_COMMUNICATION_ERROR please paypal team, i have to put the project in production in 3 days, but i cant find the solution. |
@ikuriel read this article and follow these steps. |
i already did all those steps, yesterday Paypal server was down, nobody could to make transactions in some parts of world. i'll wait till paypal team fix their issue and i'll retry. |
now is working because paypal server is running well. thank you. |
Everytime I try to start the PaymentActivity, on launching the intent I recieve this Dialog error message.

The text was updated successfully, but these errors were encountered: