"DATA_RETRIEVAL" error when deployed on GAE - java

I am using the new iOS SDK and it's associated REST API. Implementing the iOS framework was a charm but when trying to verify the payments using a Java/Google App Engine backend things are less than optimal. All of this is in testing on the sandbox environment.
Right now the Credit Card payment verification is working (using the REST API SDK v0.5.2) when testing locally. However, when I deploy the application to the app engine the call to com.paypal.api.payments.Payment.get(accessToken, paymentId) fails and returns the following error:
Response Code : 500 with response : {"name":"DATA_RETRIEVAL","message":"Error retrieving data","information_link":"https://developer.paypal.com/docs/api/#DATA_RETRIEVAL","debug_id":"b42c7f5c2b97d"}
A couple more debug ids in case they help: 04870b7c20522, 9cc4393ce08b1, 3d3eb3b9109e0.
The information link only contains another error message.
("Service Temporarily Unavailable - The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.")
Does anyone have an idea why this fails on the App Engine? Any help would be appreciated.

PayPal seems to have fixed the problem.

Related

Api Integrity Issues

I am migrating my app from Google play safety net api to Integrity api, but getting below error from api-
When i using setCloudProjectNumber(idProjectNumber) retrieve :
Integrity API error (-8): The calling app is making too many requests to the API and hence is throttled.
Retry with an exponential backoff
when i remove setCloudProjectNumber(idProjectNumber) retrieve :
Integrity API error (-12): Unknown internal Google server error.
Retry with an exponential backoff.
Please I need To know Why this error is retrieve
note :The app has been uploaded To Google play using SafetyNet
You most probably haven't set up the API in the Play Console. From https://developer.android.com/google/play/integrity/setup#apps-on-google-play, see "In the Play Console, navigate to the Release section of the left menu. Go to Setup > App integrity. Select the Integrity API tab to get started."
I think there is something of a rate-limit active for maximum API requests.
I have no knowledge about the Playstore services since a long time so is there any?

getting too many follow-up request as response of request

we have a Restful web service created using Jersey and running on TomEE 7.0.3
we are using Android platform for client-side and it's using Retrofit for having communication with the server.
our system is modular and contains more than 14 parts.
about 3 weeks (until now), sometimes the clients getting too many follow-up requests as the response.
we searched for it in here and retrofit issues in github.
they said that it might be server falt so we trace the request with ngrep command on the server.
we saw that server was getting the request and also responding to it correctly even when clients get follow-up.
we also test this matter with different networks and this matter still remains.
so what else could cause this problem?
after several tests, we realized that this error is only on Android platforms (we tested the APIs with Postman when Android platforms were receiving Too many follow up request.
so after some more tests, we found out, when Android platforms get 408 as a response code they show this message. we changed the status code and this problem fixed.
I put this issue on square/okhttp repository in github and they put the bug flag on it.
you can see it here
---- update ----
they said it fixed in OkHttp v3.10

This app isn't verified This app hasn't been verified by Google yet. Only proceed if you know and trust the developer

Hi I have developed an web application using google app engine, for google shared domain contact, Its working fine when I am running it in the localhost but when I deploy that application into google app engine it showing warning screen before user conforming for consent(as shown in the image).
I am using 2 scope http://www.google.com/m8/feeds/contacts/ and https://www.googleapis.com/auth/userinfo.email. when I try to add a user information in the google shared contact I am getting a exception message as www.google.com. How can I resolve the problem? am i need to verify my application in the oauth_app_verification. Can any one solve this?
Thank you.,
You need to go through the verification process before you launch your app. This new process came recently to protect user's data. You can start the verification by submitting this form but before it is recommended to follow steps here

Android AWS Cognito: unable to resolve host

I am having difficulty getting Cognito registration and login to work for my app in Android Studio using this sample. When I attempt to log in via the simulator, the app works for a few seconds, then displays an error message: "Unable to execute HTTP request: Unable to resolve host 'cognito-idp.us-east-1.amazonaws.com': No address associated with hostname". This same error is the only error that appears in the console. I have seen similar questions and tried solutions such as checking to ensure my app has the permissions android.permission.INTERNET and android.permission.ACCESS_NETWORK_STATE, but the error persists. It also doesn't seem to be a network issue. I have updated to the latest version of the Android SDK as well as the AWS SDK, and the problem persists.
I currently I have a Cognito user pool set up which works properly for login on the iOS version of my app. Following the instructions in the readme for the sample code, I added an app to my existing user pool, and then copied and pasted the newly generated app client ID and app client secret into AppHelper.java for clientId and clientSecret respectively. I also set userPoolId to the ID listed for my user pool under "pool details" in the Cognito conosle, and cognitoRegion to US East, since this is the region of my user pool. I noticed that there was no need for me to set the pool name, as there was in the iOS version, so I'm wondering if that's something I need to do.
Sorry if this counts as a duplicate, but I wanted to post a question with the exact error message I encountered and the steps I took, and I'm wondering if someone has managed to get this specific sample working and what I should do.
The problem has been resolved, but unfortunately I'm not quite sure what fixed it since I didn't change anything in the code. All I did was install an update, so anyone with a similar problem should probably ensure that all SDKs used in the sample are properly updated, along with the simulator. It's also worth noting that I was using a different network than in my previous tests, so it's possible that it was a network issue after all.
I had the same issue.
The issue occurred when I used a VPN with emulator to test my program. The reason was that the internet connection in the emulator was too slow when connecting through a VPN.
This could also happen if your internet connection is not strong enough.
The solution is, use a real android device to test your code, if your internet connection is not good enough.
More info: https://github.com/aws-amplify/aws-sdk-android/issues/567

Google App Engine gets a 502 error in the client

We have an API with Googe App Engine. The process does as follows. We have two calls to datastore with objetify and a call with urlfetch (to an external API).
We were working normally and suddenly we started to get in the client some 502 errors. There is not error traces in the server. The message we are getting is this one:
Do you have any idea of what is happening??? The only change we made was to release the project with different versions, we did it because somebody in Google support recommended us to do it.
Does it mean that GAE is doing some internal maintenance? if so, shouldn't they tell us in some way.
We talked to Google support. They told us that these errors are unpredictable and expected (if they are in a very small percentage, less than 0.01%). They suggested to do an exponential back-off and retry the request.
The reason why this happened was due to a network connectivity loss for a single machine in Google's wide cluster.

Categories