-
Notifications
You must be signed in to change notification settings - Fork 38
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
Sync error #8
Comments
What is your app version ? |
Hi. Have you enabled ocsms app on your owncloud instance ? Error 9 means that your server doesn't answer with 200 or 403 return code. Can you tell me if it's a 404 and your app was enabled or not ? Then i'll handle this code |
Hi. |
Can you find the HTTP return code into your HTTPD server logs (apache, nginx...) ? It will be great to find what is the problem |
The HTTP return code is 412.
There are nothing in owncloud.log and the nginx error log |
412 is a Nginx problem i think. I must review the header problems on the app, maybe Nginx doesn't like it |
Hello Client: I don't know if I have copied the good extract Thanks Gringo1er |
Any update on this problem? I have the same error and I've done pretty much the same tests as above. Slackware / Apache with SSL Here's httpd log: [18/Nov/2014:10:55:49 -0500] "GET /owncloud/index.php/apps/ocsms/get/apiversion?format=json HTTP/1.1" 200 13 412 = Precondition Failed The condition specified by one or more If... headers in the request evaluated to false. "The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server. This response code allows the client to place preconditions on the current resource metainformation (header field data) and thus prevent the requested method from being applied to a resource other than the one intended." Something seems wrong with the client (owncloud-sms). |
Same Problem Ubuntu 12.04 Apache2 / Android 4.4.4 CM11 Log: [18/Nov/2014:20:26:04 +0100] "GET /index.php/apps/ocsms/get/apiversion?format=json HTTP/1.1" 200 808 "-" "Android-ownCloud" |
Hi, thanks for the report. The problem is on the PUSH command, of course. I need to find why ownCloud is setting 412 error code sometimes |
have you got anything in your owncloud.log at this event time ? |
I found this in own cloud.log: |
this is not very verbose but there is a path to find the problem. Can you try to disable appcodechecker by adding this line in your config.php ? 'appcodechecker' => false, |
Also, is there any other error before this error ? |
It seems this bug is triggered by ownCloud app store... https://github.com/owncloud/core/blob/master/lib/private/ocsclient.php Here is the call: https://api.owncloud.com/v1/content/data/167289 I force update of the ownCloud app store, tell me if this fix your bug |
you are a bit faster apache2.log: |
CSRF check failed is a good path. I look at this |
CSRF is not needed on push because user is not calling other pages. This will fix issues #25 and nerzhul/ncsms-android#8
Can you try the given commit ? I forget to set NoCSRF for this function, and it's really not needed. This security is useless on push function and may solve your issue. |
It works!!! great! |
@stagprom have your removed appcodechecker configuration directive ? @Toobian @gringo1er I close the issue. Please add a comment to confirm if it's okay |
of course |
OK. Let me try that solution. I understood that there is something to tune inside owncloud. Let me juste time to read the previous mails and to identify what I have to do |
You don't have to tune anything. Everything is fixed into the app :) |
Oups okay. I missed the "new commit" mail. I have installed it. Owncloud detected the upgrade. Sync seems to be fine. But, when I click on SMS tab, there is no discussion appearing. Where are my messages? It's a mistery..... |
It was not a joke! Maybe you prefer me to open a new issue.... But i's simple. Its syncs, but nothing seems to appear inside the OCSMS tab: no discussion, no messages... Thanx |
Please open a new issue, it's better. |
It works !! :) |
When i create the account on my phone, the sync process failed with "Error 9: Server set unhandle...".
I tried with disable https and bug is always here.
Sorry but i have no more information.
The text was updated successfully, but these errors were encountered: