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

Internal Server Error Paypal #133

Closed
shivanu opened this issue Jan 29, 2015 · 8 comments
Closed

Internal Server Error Paypal #133

shivanu opened this issue Jan 29, 2015 · 8 comments
Labels

Comments

@shivanu
Copy link

shivanu commented Jan 29, 2015

Hi,

I am implementing the PayPal SDK in my phonegap project.When I try to set the environment in sandbox mode it won't work, When I set the environment to noNetwork it works.
There are some services which run in background in my project and I have created plugins for shared preferences and network status.

My client id works in sample projects.

Following is the log cat error

01-29 12:32:22.689: I/System.out(31779): httpget:https://paypal.112.2o7.net/b/ss/paypalglobal/0/OIP-2.1.6/s81658486?AQB=1&ndh=1&t29%2F0%2F2015+12%3A32%3A22+5+-330&ch=mplandroid&sv=mobile&vid=3f2ef7a5bd4749f6a844bb86514c9c54&gn=mobile%3Ampl%3Adevicecheck%3A%3A&c37=Android%3A%3A&v25=D%3Dc25&c25=mobile%3Ampl%3Adevicecheck%3A%3A%3AAndroid%3Asandbox%3A&v31=mobile%3Ampl%3Adevicecheck%3A%3A&c35=out&c50=en_US&AQE=1
01-29 12:32:22.689: I/System.out(31779): https://paypal.112.2o7.net/b/ss/paypalglobal/0/OIP-2.1.6/s81658486?AQB=1&ndh=1&t29%2F0%2F2015+12%3A32%3A22+5+-330&ch=mplandroid&sv=mobile&vid=3f2ef7a5bd4749f6a844bb86514c9c54&gn=mobile%3Ampl%3Adevicecheck%3A%3A&c37=Android%3A%3A&v25=D%3Dc25&c25=mobile%3Ampl%3Adevicecheck%3A%3A%3AAndroid%3Asandbox%3A&v31=mobile%3Ampl%3Adevicecheck%3A%3A&c35=out&c50=en_US&AQE=1
01-29 12:32:22.690: I/System.out(31779): [CDS]rx timeout:1
01-29 12:32:22.691: I/System.out(31779): [CDS]rx timeout:1
01-29 12:32:22.702: I/System.out(31779): [CDS]rx timeout:90000
01-29 12:32:22.702: I/System.out(31779): [CDS]rx timeout:90000
01-29 12:32:22.702: I/System.out(31779): [CDS]rx timeout:90000
01-29 12:32:22.702: I/System.out(31779): [CDS]rx timeout:90000
01-29 12:32:22.703: I/System.out(31779): >doSendRequest
01-29 12:32:22.705: I/System.out(31779): <doSendRequest
01-29 12:32:22.739: I/System.out(31779): [CDS]rx timeout:1
01-29 12:32:22.739: I/System.out(31779): [CDS]rx timeout:1
01-29 12:32:22.747: E/CellLocation(31779): create GsmCellLocation
01-29 12:32:22.749: I/System.out(31779): [CDS]rx timeout:90000
01-29 12:32:22.749: I/System.out(31779): [CDS]rx timeout:90000
01-29 12:32:22.750: I/System.out(31779): [CDS]rx timeout:90000
01-29 12:32:22.750: I/System.out(31779): [CDS]rx timeout:90000
01-29 12:32:22.750: I/System.out(31779): >doSendRequest
01-29 12:32:22.754: I/System.out(31779): <doSendRequest
01-29 12:32:22.853: I/System.out(31779): propertyValue:true
01-29 12:32:22.854: I/System.out(31779): [socket][14] connection /173.0.82.78:443;LocalPort=36803(90000)
01-29 12:32:22.854: I/System.out(31779): [CDS]connect[/173.0.82.78:443] tm:90
01-29 12:32:23.185: I/System.out(31779): [socket][/192.168.1.17:36803] connected
01-29 12:32:23.185: I/System.out(31779): [CDS]rx timeout:90000
01-29 12:32:23.186: I/System.out(31779): [CDS]SO_SND_TIMEOUT:0
01-29 12:32:23.532: I/System.out(31779): >doSendRequest
01-29 12:32:23.536: I/System.out(31779): [CDS]rx timeout:2000
01-29 12:32:23.537: I/System.out(31779): [CDS]rx timeout:2000
01-29 12:32:23.873: I/System.out(31779): [CDS]rx timeout:90000
01-29 12:32:23.874: I/System.out(31779): [CDS]rx timeout:90000
01-29 12:32:23.877: I/System.out(31779): <doSendRequest
01-29 12:32:24.259: I/System.out(31779): [CDS]close[36803]
01-29 12:32:24.260: I/System.out(31779): close [socket][/0.0.0.0:36803]
01-29 12:32:24.262: W/paypal.sdk(31779): af SN:20 PayPal Debug-ID: 78ff1c2496c37 [sandbox, 2.8.4;release]
01-29 12:32:24.262: E/paypal.sdk(31779): request failure with http statusCode:500,exception:org.apache.http.client.HttpResponseException: Internal Server Error
01-29 12:32:24.266: E/paypal.sdk(31779): Exception parsing server response
01-29 12:32:24.266: E/paypal.sdk(31779): org.json.JSONException: End of input at character 0 of 
01-29 12:32:24.266: E/paypal.sdk(31779):    at org.json.JSONTokener.syntaxError(JSONTokener.java:450)
01-29 12:32:24.266: E/paypal.sdk(31779):    at org.json.JSONTokener.nextValue(JSONTokener.java:97)
01-29 12:32:24.266: E/paypal.sdk(31779):    at com.paypal.android.sdk.aq.B(Unknown Source)
01-29 12:32:24.266: E/paypal.sdk(31779):    at com.paypal.android.sdk.af.d(Unknown Source)
01-29 12:32:24.266: E/paypal.sdk(31779):    at com.paypal.android.sdk.A.a(Unknown Source)
01-29 12:32:24.266: E/paypal.sdk(31779):    at com.paypal.android.sdk.F.a(Unknown Source)
01-29 12:32:24.266: E/paypal.sdk(31779):    at com.paypal.android.sdk.H.a(Unknown Source)
01-29 12:32:24.266: E/paypal.sdk(31779):    at com.paypal.android.sdk.cw.a(Unknown Source)
01-29 12:32:24.266: E/paypal.sdk(31779):    at com.paypal.android.sdk.cw.b(Unknown Source)
01-29 12:32:24.266: E/paypal.sdk(31779):    at com.paypal.android.sdk.cw.b(Unknown Source)
01-29 12:32:24.266: E/paypal.sdk(31779):    at com.paypal.android.sdk.cw.a(Unknown Source)
01-29 12:32:24.266: E/paypal.sdk(31779):    at com.paypal.android.sdk.cv.a(Unknown Source)
01-29 12:32:24.266: E/paypal.sdk(31779):    at com.paypal.android.sdk.cv.run(Unknown Source)
01-29 12:32:24.266: E/paypal.sdk(31779):    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
01-29 12:32:24.266: E/paypal.sdk(31779):    at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-29 12:32:24.266: E/paypal.sdk(31779):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
01-29 12:32:24.266: E/paypal.sdk(31779):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
01-29 12:32:24.266: E/paypal.sdk(31779):    at java.lang.Thread.run(Thread.java:841)
01-29 12:32:24.266: E/paypal.sdk(31779): request failed with server response:
01-29 12:32:24.272: E/paypal.sdk(31779): INTERNAL_SERVER_ERROR

device-2015-01-29-122846

@braebot
Copy link
Contributor

braebot commented Jan 29, 2015

Does this failure consistently occur, or was it a one time occurrence?

@shivanu
Copy link
Author

shivanu commented Jan 29, 2015

This failure consistently occurs

@pp-louis
Copy link

Not sure if this is related, but there are some issue with Sandbox environment which appears to be down moments ago. However it is fixed now. Can you try again if that still happening on Sandbox?

@shivanu
Copy link
Author

shivanu commented Jan 29, 2015

Not working

@pp-louis
Copy link

Grabbed the log from the system based on the debug ID you provided on top :78ff1c2496c37

and this is what I have got:
msg=URLDecoder: Illegal hex characters in escape (%) pattern - For input string: ""}"

Not sure if this is something due to your app implementation.

@shivanu
Copy link
Author

shivanu commented Jan 29, 2015

debug Id is different every time when I run the application.

@braebot
Copy link
Contributor

braebot commented Jan 29, 2015

As you've already alluded to, there must be a conflict with something in your app that is affecting the request being sent to PayPal's servers. Is there any way you can isolate the conflict? I might suggest starting with the Sample App and building up the components one by one until you find the conflict.

@tomwhipple
Copy link
Contributor

I'm closing this issue since it is old, but please feel free to reopen if the problem persists.

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

4 participants