GoogleJSONResponseException - android

I tried to start using Google Cloud Console and followed after the Google IO tutorial for Geek Serendipity http://www.youtube.com/watch?v=v5u_Owtbfew. I followed all the steps of the tutorial, however, I get an error every time I try to send a request to server. Neither logcat, nor Eclipse console gave any errors, however, I see a toast in the application that says
com.google.apiclient.apis.json.GoogleJSONResponseException:503 Service unavailable... "reason": backend error.
However, in google appengine logs there are no recent error.
Has anyone faced same problem?

I would suggest that you ensure the following:
1) Check that you have set PROJECT_ID correctly in the Consts.java
2) You should definitely see the same message in LogCat. Check this answer to get your LogCat working:
Android debugging on device - LogCat doesn't work!
Once LogCat works, you should see the same Exception there, along with another exception such as SocketTimeoutException, or something else that will give you an idea of what went wrong.

Related

Crashlytics not showing the logs

In my android project I'm using Crashlytics to get the app crash reports.I have also added the logs to see it in my dashboard.For adding logs I've used
Crashlytics.log (Log.ERROR, TAG, message);
So when I run the app for testing,and open the activity where I've added the Crashlytics log statements ,the logs were generated for the first time .I can see them on the dashboard. But when I again open the same activity ,I'm not able to see the new logs generated . I read here that if the logs are not seen on the dashboard then restart the app.I did that ,but still couldn't see the logs on the dashboard,my dashboard only shows the logs which were generated for the first time.I also tried testing my app on different device but it still doesn't show on the dashboard.Can somebody please help me in solving this issue .Why am I not able to see all non-fatal logs on my dashboard?
IF this doesn't produce errors you have to wait for logs registered on your dashboard in free account
Mike from Firebase here.
Crashlytics.log (Log.ERROR, TAG, message); will only be displayed if there is also a non-fatal - Crashlytics.logException(e); or fatal exception. We prioritize capturing exceptions (fatal or non-fatal) over logs so if you log the value immediately before the exception, depending on the size of the log, it may not be recorded. This is because we think capturing the exception is more important than the log.

Cannot get google-services.json file for Google Play Services

I am currently working on updating the Google Login process in my app using google-services 3.0.0 and play-services 9.6.1 and am having troubles getting the required google-services.json file to include in my project.
I am following the setup guide and trying to get the json file from https://developers.google.com/mobile/add?platform=android.
When I pick my app from the dropdown menu I get a 'bad request' error message.
I went ahead through the process anyway, choosing only Google Login for the service but I still get an error when I attempt to download the google-services.json file
This is what is returned when I attempt to download the file
)]}'
{"code":3,"errorSpace":"generic","placeholders":{"trackingId":"123456789"},"status":400,"message":"backend error"}
Looking at the form that was sent in Fiddler, the query string is
["getArtifactRequest",null,"android:my.app.package","2","123456789"]
(After replacing the trackingId and the project Id numbers in these two requests)
Attempting to go back through the process gives me an error stating that the package already exists (Which it does). Other places seem to imply that I could use this method repeatedly as a way to re-generate the json file though.
The app was already listed in the OAuth 2.0 client IDs on the developer console site when I did this. I also went through it a second time for a debug version of the app which was not already created, but I received the same messages and outcome.
Has anyone else seen this issue and found out how to fix it?
After switching projects for a bit and checking back today, I went through the same process as listed and it worked just fine. I haven't changed any settings, so maybe it was a problem on their end for a while. Wish there was something more helpful to say about this, but it just works now.

In app billing: Failure can't be captured from the sample code

I integrated the sample code (helper classes) for the inapp billing from the official Android website. I am trying to test error path ( i.e incorrect APK signature, no internet..etc). When this error occurs, the dialog shows the error such as " Error retrieving billing info ..etc"
The problem is that, once you click ok, the app continues (although I have checks everywhere to terminate the app when things go wrong). Before someone says "post some code", let me clarify here. I am not able to "catch the failure" in the sample code. I placed debug points everywhere. The last piece of code that is called is when the "purchase buying intent" is initiated. After that, I can't seem to find anywhere where the code would actually indicate failure (so I can action based on it)
anyone else faced this?
I found the reason for that
The overridden OnActivityResult was not called. So I corrected it and now it receives the results
Hoping this would save someone else many hours

Android Emulator - JumpTap Ads returning error 404

I'm using JumpTap in my project to display banner ads.
The Ads have been approved at their portal for my application but still if it try to run the project in emulator, in the logcat,
I see error like JAdFetcher.getContent - Received error[404]
Is there anything that can be checked to resolve this issue?
You will get a 404 if the publisher, site or spot that is passed in the call to Jumptap's server is invalid. If you send me a note I'll work with you to get everything verified and on the road to get ads back.
Disclaimer: I am representative of Jumptap.

Facebook Publish Error In Android Application

HI Friends,
I implemented facebook connect in android using facebook-android-sdk. Most of the times I am getting error while i am publishing.
Less number of times publish is working fine.
Publish story window is opening good with What's on your mind text box. When i am clicking on the publish button in the Publish story window, i am getting error.
The error is constantly changing when i coming(clicking ) to next time.
some of the the errors i have been seen in my application when i am clicking in the publish button are.
Error Examples:
1. An error occurred with Holyplanets Connect.please try again later
An error occurred with WordpressBlog Connect.please try again later
An Error occurred with UFOS ON EARTH. Please try agian later
How can i fix this error? If anybody knows please let me know.
Thanks and Regards,
Kiran
I think this could be a fault with Facebook.com.
I started getting this yesterday in my iOS app which has been out for months.

Categories

Resources