Skip to content
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

HTTP 404: Cannot connect Nextcloud server to app #1893

Closed
oyvindremme opened this issue Sep 7, 2023 · 6 comments · Fixed by #2274
Closed

HTTP 404: Cannot connect Nextcloud server to app #1893

oyvindremme opened this issue Sep 7, 2023 · 6 comments · Fixed by #2274

Comments

@oyvindremme
Copy link

Describe the bug
Cannot add account to app.

To Reproduce
Steps to reproduce the behavior:

  1. Open the app
  2. Connect Nextcloud account
  3. Error occurs

Expected behavior
To be able to connect to my tasks via the app.

Screenshots
Screenshot_20230907-142211.png

Smartphone (please complete the following information):

  • Nextcloud Notes-Version (android app): 4.0.0
  • F-Droid or Play Store: play
  • Android-Version: 5.10.149-android12-9-00003-g230976ad916b-ab9958333(9d464-2425b)
  • Device: moto g73 5G

Server

  • Nextcloud version: 26.0.4
  • Nextcloud Notes version (server app): 3.7.2

Error code

App Version: 4.0.0
App Version Code: 40000090
App Flavor: play

Files App Version Code: 30250090

---

OS Version: 5.10.149-android12-9-00003-g230976ad916b-ab9958333(9d464-2425b)
OS API Level: 33
Device: devonf
Manufacturer: motorola
Model (and Product): moto g73 5G (devonf_g_syse)

---

com.nextcloud.android.sso.exceptions.NextcloudHttpRequestFailedException: HTTP forespørsel feilet med status kode: 404
	at com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:188)
	at com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:199)
	at com.nextcloud.android.sso.api.NextcloudAPI.lambda$performRequestObservableV2$1$com-nextcloud-android-sso-api-NextcloudAPI(NextcloudAPI.java:129)
	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:463)
	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.IllegalStateException: <!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="nb" data-locale="nn" translate="no" >
	<head
 data-requesttoken="">
		<meta charset="utf-8">
		<title>
			Munin		</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
				<meta name="apple-itunes-app" content="app-id=1125420102">
				<meta name="theme-color" content="#8855a8">
		<link rel="icon" href="/core/img/favicon.ico">
		<link rel="apple-touch-icon" href="/core/img/favicon-touch.png">
		<link rel="mask-icon" sizes="any" href="/core/img/favicon-mask.svg" color="#8855a8">
		<link rel="manifest" href="/index.php/apps/theming/manifest?v=7df4fde3">
		<link rel="stylesheet" href="/core/css/server.css?v=94256dd2-9">
<link rel="stylesheet" href="/apps/files_rightclick/css/app.css?v=35c36e89-9">
<link rel="stylesheet" href="/extra-apps/spreed/css/unified-search.css?v=e2114d19-9">
<link rel="stylesheet" href="/apps/theming/css/default.css?v=9db53190-9">
<link rel="stylesheet" href="/core/css/guest.css?v=94256dd2-9">
		<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/dist/core-common.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/dist/core-main.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/core/l10n/nb.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/dist/core-files_fileinfo.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/dist/core-files_client.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/index.php/js/core/merged-template-prepend.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/apps/files_sharing/l10n/nb.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/dist/files_sharing-main.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/apps/files_rightclick/l10n/nb.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/apps/files_rightclick/js/script.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/apps/files_rightclick/js/files.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/apps/firstrunwizard/l10n/nb.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/apps/firstrunwizard/js/about.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/apps/theming/l10n/nb.js?v=94256dd2-9"></script>
<script nonce="YzR0YVlRRS9UdHRGSU84cFVVR2kzeHU3VnNmMmYwMnBSdThmKzFhbzh4WT06Q3Y0eU5sQUpLNm9HVVo1ZEppenJ1R3JkRUltZENnYmdOSVJMZ2lmK3NuUT0=" defer src="/apps/theming/js/theming.js?v=94256dd2-9"></script>
		<link rel="stylesheet" media="" href="/index.php/apps/theming/theme/default.css?plain=1&amp;v=7df4fde3" class="theme"/><link rel="stylesheet" media="(prefers-color-scheme: light)" href="/index.php/apps/theming/theme/light.css?plain=1&amp;v=7df4fde3" class="theme"/><link rel="stylesheet" media="(prefers-color-scheme: dark)" href="/index.php/apps/theming/theme/dark.css?plain=1&amp;v=7df4fde3" class="theme"/><link rel="stylesheet" media="(prefers-contrast: more)" href="/index.php/apps/theming/theme/light-highcontrast.css?plain=1&amp;v=7df4fde3" class="theme"/><link rel="stylesheet" media="(prefers-color-scheme: dark) and (prefers-contrast: more)" href="/index.php/apps/theming/theme/dark-highcontrast.css?plain=1&amp;v=7df4fde3" class="theme"/><link rel="stylesheet" media="" href="/index.php/apps/theming/theme/light.css?plain=0&amp;v=7df4fde3" class="theme"/><link rel="stylesheet" media="" href="/index.php/apps/theming/theme/dark.css?plain=0&amp;v=7df4fde3" class="theme"/><link rel="stylesheet" media="" href="/index.php/apps/theming/theme/light-highcontrast.css?plain=0&amp;v=7df4fde3" class="theme"/><link rel="stylesheet" media="" href="/index.php/apps/theming/theme/dark-highcontrast.css?plain=0&amp;v=7df4fde3" class="theme"/><link rel="stylesheet" media="" href="/index.php/apps/theming/theme/opendyslexic.css?plain=0&amp;v=7df4fde3" class="theme"/><meta name="robots" content="noindex, nofollow"/>	</head>
	<body id="body-login">
		<noscript>
	<div id="nojavascript">
		<div>
			Denne appen krever JavaScript for å fungere korrekt. <a href="https://www.enable-javascript.com/" target="_blank" rel="noreferrer noopener">Aktiver JavaScript</a> og last siden på nytt.		</div>
	</div>
</noscript>
					<input type="hidden" id="initial-state-theming-backgroundImage" value="ImRlZmF1bHQi">
					<input type="hidden" id="initial-state-theming-backgroundColor" value="IiMwMDgyYzki">
					<input type="hidden" id="initial-state-theming-themingDefaultBackground" value="ImJhY2tncm91bmRDb2xvciI=">
					<input type="hidden" id="initial-state-theming-defaultShippedBackground" value="ImthbWlsLXBvcmVtYmluc2tpLWNsb3Vkcy5qcGci">
					<input type="hidden" id="initial-state-theming-shippedBackgrounds" value="eyJoYW5uYWgtbWFjbGVhbi1zb2Z0LWZsb3JhbC5qcGciOnsiYXR0cmlidXRpb24iOiJTb2Z0IGZsb3JhbCAoSGFubmFoIE1hY0xlYW4sIENDMCkiLCJhdHRyaWJ1dGlvbl91cmwiOiJodHRwczpcL1wvc3RvY2tzbmFwLmlvXC9waG90b1wvc29mdC1mbG9yYWwtWE9ZV0NDVzVQQSIsInRoZW1pbmciOiJkYXJrIiwicHJpbWFyeV9jb2xvciI6IiM5ZjY1MmYifSwidGVkLW1vcmF2ZWMtbW9ybmluZy1mb2cuanBnIjp7ImF0dHJpYnV0aW9uIjoiTW9ybmluZyBmb2cgKFRlZCBNb3JhdmVjLCBQdWJsaWMgRG9tYWluKSIsImF0dHJpYnV0aW9uX3VybCI6Imh0dHBzOlwvXC9mbGlja3IuY29tXC9waG90b3NcL3Rtb3JhdmVjXC81MjM5MjQxMDI2MSIsInRoZW1pbmciOiJkYXJrIiwicHJpbWFyeV9jb2xvciI6IiMxMTRjM2IifSwic3RlZmFudXMtbWFydGFudG8tc2V0eW8taHVzb2RvLXVuZGVyd2F0ZXItb2NlYW4uanBnIjp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21teS1jaGF1LWxpb24tcm9jay1oaWxsLmpwZyI6eyJhdHRyaWJ1dGlvbiI6Ikxpb24gcm9jayBoaWxsIChUb21teSBDaGF1LCBDQyBCWSkiLCJhdHRyaWJ1dGlvbl91cmwiOiJodHRwczpcL1wvd3d3LmZsaWNrci5jb21cL3Bob3Rvc1wvOTA5NzU2OTNATjA1XC8xNzEzNjQ0MDI0NiIsInRoZW1pbmciOiJkYXJrIiwicHJpbWFyeV9jb2xvciI6IiM3ZjRmNzAifSwibGFsaS1tYXNyaWVyYS15ZWxsb3ctYnJpY2tzLmpwZyI6eyJhdHRyaWJ1dGlvbiI6IlllbGxvdyBicmlja3MgKExhbGkgTWFzcmllcmEsIENDIEJZKSIsImF0dHJpYnV0aW9uX3VybCI6Imh0dHBzOlwvXC93d3cuZmxpY2tyLmNvbVwvcGhvdG9zXC92aXN1YWxwYW5pY1wvMzk4MjQ2NDQ0NyIsInRoZW1pbmciOiJkYXJrIiwicHJpbWFyeV9jb2xvciI6IiM3ZjU3MDAifX0=">
					<input type="hidden" id="initial-state-theming-data" value="eyJuYW1lIjoiTXVuaW4iLCJ1cmwiOiJodHRwczpcL1wvbmV4dGNsb3VkLm9yZW1tZS5ub1wvIiwic2xvZ2FuIjoiIiwiY29sb3IiOiIjODg1NWE4IiwiZGVmYXVsdENvbG9yIjoiIzg4NTVhOCIsImltcHJpbnRVcmwiOiIiLCJwcml2YWN5VXJsIjoiIiwiaW52ZXJ0ZWQiOmZhbHNlLCJjYWNoZUJ1c3RlciI6IjdkZjRmZGUzIiwiZW5hYmxlZFRoZW1lcyI6W119">
					<input type="hidden" id="initial-state-core-versionHash" value="Ijk0MjU2ZGQyIg==">
					<input type="hidden" id="initial-state-comments-maxAutoCompleteResults" value="MTA=">
				<div class="wrapper">
			<div class="v-align">
									<header role="banner">
						<div id="header">
							<div class="logo"></div>
						</div>
					</header>
								<main>
					<h1 class="hidden-visually">
						Munin					</h1>
						<div class="body-login-container update">
		<div class="icon-big icon-search"></div>
		<h2>Siden ble ikke funnet</h2>
		<p class="infogroup">Siden ble ikke funnet på serveren.</p>
		<p><a class="button primary" href="/index.php">
			Tilbake til Munin		</a></p>
	</div>
				</main>
			</div>
		</div>
		<footer role="contentinfo">
			<p class="info">
				<a href="https://nextcloud.oremme.no/" target="_blank" rel="noreferrer noopener" class="entity-name">Munin</a>			</p>
		</footer>
	</body>
</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:158)
	at android.os.Binder.execTransactInternal(Binder.java:1294)
	at android.os.Binder.execTransact(Binder.java:1253)

@stefan-niedermann
Copy link
Member

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 (!).

  • Did you enable the Notes server app? (not just install)
  • Is the Notes server app limited to a specific group which you are not part of?

@Pedro-MC
Copy link

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)

@stefan-niedermann stefan-niedermann changed the title Cannot connect Nextcloud server to app HTTP 404: Cannot connect Nextcloud server to app Sep 21, 2023
@Dtrieb
Copy link

Dtrieb commented Oct 1, 2023

Same error here.

I think it happened if the server use SingleSignOn (SSO).

@Grayknife
Copy link

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.

@stefan-niedermann
Copy link
Member

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.

@stefan-niedermann
Copy link
Member

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

joshtrichards added a commit that referenced this issue Jul 11, 2024
Closes #1893 (and other recurring ones)

Signed-off-by: Josh <josh.t.richards@gmail.com>
backportbot bot pushed a commit that referenced this issue Jul 15, 2024
Closes #1893 (and other recurring ones)

Signed-off-by: Josh <josh.t.richards@gmail.com>
@AndyScherzinger AndyScherzinger added this to the 4.3.1 milestone Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants