Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

[Dialog Error] There was a problem communicating with the PayPal servers. Please try again. #228

Closed
ShreyK opened this issue Dec 11, 2015 · 38 comments
Labels

Comments

@ShreyK
Copy link

ShreyK commented Dec 11, 2015

Everytime I try to start the PaymentActivity, on launching the intent I recieve this Dialog error message.
screenshot_2015-12-11-14-17-18

@ShreyK
Copy link
Author

ShreyK commented Dec 11, 2015

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.

@jaypatel512
Copy link
Contributor

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 ?

@ShreyK
Copy link
Author

ShreyK commented Dec 11, 2015

12-11 15:13:43.747 20396-20600/... E/paypal.sdk: request failed with server response:Socket is closed
12-11 15:13:43.747 20396-20396/... E/paypal.sdk: SERVER_COMMUNICATION_ERROR

No, Try Again does not resolve the issue.

@jaypatel512
Copy link
Contributor

Let me try to reproduce this issue. Thanks for your quick and detailed information.

@kushdua
Copy link

kushdua commented Dec 22, 2015

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

@jaypatel512
Copy link
Contributor

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 👍

@johnpilll
Copy link

having the same issue and same error.

01-11 12:32:26.183 31868-27081... request failed with server response:Socket is closed
01-11 12:32:26.198 31868-31868... SERVER_COMMUNICATION_ERROR

Is it resolved now? any updates or any other changes do we need to do from coding side?

@jaypatel512
Copy link
Contributor

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 !

@johnpilll
Copy link

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.

@jaypatel512
Copy link
Contributor

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 !

@johnpilll
Copy link

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.

request failed with server response:timeout
E/paypal.sdk: SERVER_COMMUNICATION_ERROR

device-2016-01-18-144915

@emandtf
Copy link

emandtf commented Jan 18, 2016

Same error here using Sandbox account.
Sandbox Username and Password are well accepted, internet is working but I get "SERVER_COMMUNICATION_ERROR"
I'm using 2.12.5.

@nestorm001
Copy link

Same problem here too, with the SDK version 2.12.5
"request failed with server response:timeout"
"SERVER_COMMUNICATION_ERROR"

@braebot
Copy link
Contributor

braebot commented Jan 19, 2016

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.

@johnpilll
Copy link

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.

@sezn
Copy link

sezn commented Jan 20, 2016

Hi!
Same thing here, on Android 5.0.2 and 5.1
seems it s okhttp
paypal.sdk: request failed with server response:Certificate pinning failure!
SERVER_COMMUNICATION_ERROR

@Lesilva
Copy link

Lesilva commented Jan 20, 2016

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.

@amrfaisal
Copy link

Any updates regarding this, it's a blocking issue.

@braebot
Copy link
Contributor

braebot commented Jan 21, 2016

The sandbox certificates were updated this week, and it affected certificate pinning. Everyone should be seeing Certificate pinning failure! on sandbox only. We'll work to release a fix in the next day or so.

Please note that live should not be affected. Any issues with live should be carefully diagnosed, as the error appears to be transient.

@sankarbhavanib
Copy link
Contributor

Fixed in 2.13.0 release.

@adnanafridikhan
Copy link

i updated paypal to 2.13.0 ,but paypal is showing same message "There is problem communicating with paypal services " ...
Any updates regarding paypal ?

@braebot
Copy link
Contributor

braebot commented Jan 27, 2016

@adnanafridikhan, is this happening on Live or Sandbox or both? Can you please provide some logs so we can better diagnose the issue?

@adnanafridikhan
Copy link

@braebot Just showing on sandbox .

@avsoftenterprise
Copy link

I am using SDK 2.12.1 on Android 5.0.1.
I have the error in ENVIRONMENT_SANDBOX:
Pinned certificates for api-m.sandbox.paypal.com
SERVER_COMMUNICATION_ERROR

with Dialog "There was a problem with the PayPal servers. Please try again."
I can not use later SDK because my Eclipse project can only import libraries with jar files , not aar files.
Can you solve this issue on server side for this version ? Can you provide new SDK versions with jar file too?

@emandtf
Copy link

emandtf commented Jan 29, 2016

@avsoftenterprise sorry but I think you have to move to Android Studio.
I also faced the same problem with Eclipse and I spent 1 week for move my Project to Android Studio.
I know this is not good for 3rd party library (that should be usable on more than one IDE), but......

@avsoftenterprise
Copy link

@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?

@braebot
Copy link
Contributor

braebot commented Jan 29, 2016

@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 aar file formats and gradle build system. gradle-eclipse-aar-plugin looks like something that may suit your needs.

@emandtf
Copy link

emandtf commented Jan 30, 2016

@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

@vashistrinku
Copy link

it's working fine on Android 5.0 and above .
Not working the paypal below android vsersion 5.0

I am using the PayPal SDK 2.10.0 on Android 4.3 and Eclipse
I have the error in logcat
request failed with server response:null
SERVER_COMMUNICATION_ERROR
with Dialog box "There was a problem communicating with the PayPal servers. Please try again."

@emandtf
Copy link

emandtf commented Feb 1, 2016

@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."

@vashistrinku
Copy link

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.
when i convert the AAR to JAR and import the JAR file.
That doesnt work. I tried, but when i try to use. Its crash the app

@braebot
Copy link
Contributor

braebot commented Feb 1, 2016

@vashistrinku, please look at the previous comments in this thread. We will only be distributing aar files from this point forward.

@avsoftenterprise
Copy link

@vashistrinku , I got the solution for PayPal SDK 2.13.1 compatibility on Eclipse project.
Follow this link:
http://stackoverflow.com/questions/35074432/use-paypal-sdk-in-android-eclipse-project

@vashistrinku
Copy link

thanks @avsoftenterprise .
its working on android 4.2 and above

@ningacoding
Copy link

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 downloaded sample app of Paypal from github
i created an App in Paypal
i copied CLIENT_ID key generated when creating app in paypal

I compiled SampleApp with Paypal SDK 2.14.4
App works when the environment is ENVIRONMENT_NO_NETWORK
But when i run the SampleApp with CLIENT_ID copied and environment ENVIRONMENT_SANDBOX or ENVIRONMENT_PRODUCTION im getting the same error of this question.

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.

@vashistrinku
Copy link

@ikuriel read this article and follow these steps.
it's Working

http://www.articlesbase.com/online-education-articles/how-to-integrate-paypal-in-eclipse-and-android-studio-7389133.html

@ningacoding
Copy link

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.

@ningacoding
Copy link

now is working because paypal server is running well. thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests