Closed oyvindremme closed 1 month ago
Nextcloud version: 26.0.4 Nextcloud Notes version (server app): 3.7.2
What's the reason running a version of the Notes server app that is this outdated? For Nextcloud 26 the Notes server app is available in version 4.8.1 (!).
I'm encountering what seems to be the same issue. I'm running an up-to-date Nextcloud and the notes app was installed from google store.
App Version: 4.1.0 App Version Code: 40010090 App Flavor: play Files App Version Code: 30260090 (PROD) --- OS Version: 4.4.146+(v2B3M-0) OS API Level: 28 Device: Venice Manufacturer: TCL Model (and Product): 5048U_EEA (5048U_EEA) --- com.nextcloud.android.sso.exceptions.NextcloudHttpRequestFailedException: o pedido HTTP falhou com código de estado HTTP: 404 at com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:197) at com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:180) at com.nextcloud.android.sso.api.NextcloudAPI.lambda$performRequestObservableV2$0$com-nextcloud-android-sso-api-NextcloudAPI(NextcloudAPI.java:122) at com.nextcloud.android.sso.api.NextcloudAPI$$ExternalSyntheticLambda0.subscribe(Unknown Source:6) at io.reactivex.internal.operators.observable.ObservableFromPublisher.subscribeActual(ObservableFromPublisher.java:31) at io.reactivex.Observable.subscribe(Observable.java:12284) at io.reactivex.internal.operators.observable.ObservableMap.subscribeActual(ObservableMap.java:32) at io.reactivex.Observable.subscribe(Observable.java:12284) at io.reactivex.internal.operators.observable.ObservableSingleMaybe.subscribeActual(ObservableSingleMaybe.java:31) at io.reactivex.Maybe.subscribe(Maybe.java:4290) at io.reactivex.Maybe.blockingGet(Maybe.java:2320) at io.reactivex.Observable.blockingSingle(Observable.java:5381) at it.niedermann.owncloud.notes.persistence.NotesImportTask.lambda$importNotes$1$it-niedermann-owncloud-notes-persistence-NotesImportTask(NotesImportTask.java:57) at it.niedermann.owncloud.notes.persistence.NotesImportTask$$ExternalSyntheticLambda1.run(Unknown Source:6) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:764) Caused by: java.lang.IllegalStateException: <!DOCTYPE html> <html class="ng-csp" data-placeholder-focus="false" lang="pt-PT" data-locale="pt" translate="no" > <SNIPPED> </html> at com.nextcloud.android.sso.InputStreamBinder.processRequestV2(InputStreamBinder.java:454) at com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestAndBodyStreamV2(InputStreamBinder.java:127) at com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestV2(InputStreamBinder.java:110) at com.nextcloud.android.sso.aidl.IInputStreamService$Stub.onTransact(IInputStreamService.java:110) at android.os.Binder.execTransact(Binder.java:731)
Same error here.
I think it happened if the server use SingleSignOn (SSO).
The same error occurred here, but I was stupid and did not install and activate the Notes app on the server side (nextcloud, not the android app). But I would suggest to get an appropriate error message on my notes android app.
But I would suggest to get an appropriate error message on my notes android app.
Well, there are already various checks in place. Error messages differ with each configuration, server setup and other criterias. Please feel free to provide a Pull Request to cover your case. It's nearly impossible to handle each and every setup, proxy etc. without knowing them.
If someone wants to contribute: An additional check might be good here, similar to HTTP 302, there should already be existing strings that can be reuse
Describe the bug Cannot add account to app.
To Reproduce Steps to reproduce the behavior:
Expected behavior To be able to connect to my tasks via the app.
Screenshots![Screenshot_20230907-142211.png](https://github.com/nextcloud/notes-android/assets/8862291/75f331e4-60fd-466b-a968-4241a624f02f)
Smartphone (please complete the following information):
Server
Error code