-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not send ACRA Post responseCode=405 message=Method Not Allowed #409
Comments
By default ACRA POSTs requests. HTTP 405 means that the server does not expect to be given a request of tat type on that URL. http://www.checkupdown.com/status/E405.html If you are getting different behaviour between your debug vs your release version, then you must be changing the config between the two. What is your debug config? WHat is your release config? |
The only difference between our debug and release build is, we are running |
ACRA ships with all the Proguard rules it requires. I would suggest that if the only difference between your debug and release is Proguard, then you have incorrectly configured Proguard for ACRA. |
Have a look at the ACRA proguard config. If that doesn't clarify things, then post your Proguard config. |
Looks like proguard isn't an issue. I have commented everything(minifyEnabled & proguardFiles) within release build and tried but that too didn't help. Below are the ACRA related configs in our project. build.gradle:
proguard-rules.pro:
|
As a sanity check, switch off Proguard entirely for your release build. |
@william-ferguson-au , as per the documentation, setting |
Sorry, I can't answer a Gradle question because I don't use it. Proguard has the ability to minify AND to obfuscate. |
@william-ferguson-au - as per this Android documentation, setting Quote from Android site,
Also it states,
From the above readings, I strongly believe something is wrong in the proguard config(either in my project or in ACRA, which I yet to find). I'm yet to try the
|
OK, I don't think I can say this any more plainly. To totally rule out Proguard being the issue - remove it from your build. |
@william-ferguson-au , very very sorry for wasting your time. Issue is with my app. The cloudant URL for debug and release modes are different. When I enabled |
Glad you got it working. |
When we generate release build of our app, we are getting the below exception. Tried acra-4.8.2 and 4.8.5 versions, same behaviour. When we generate the debug build, ACRA logs are perfectly getting published to the database. We have our database in cloudant.com.
We didn't have this issue in our last app release but don't know how its happening in the current release alone. We used same version(4.8.2) of ACRA for both previous and current releases.
Stacktrace:
The text was updated successfully, but these errors were encountered: