nextcloud / nextcloud/ios

Intermittent upload error: 412: The server does not meet one of the preconditions of the requester

Open
#4,120 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce
  1. Intermittent problem that occurs when manually or auto-uploading files to nextcloud from ios app
Expected behaviour

The error should either not occur or should be more specific as to what the problem is and how to resolve it

Actual behaviour

When uploading files, either through automatic photos upload, or manually uploading files, there sometimes occurs errors that show "412: The server does not meet one of the preconditions of the requester".
These seem to be retried at least some of the time, and eventually seem to either be uploaded successfully or just disappear from the list of files to be uploaded.

Logs
If applicable, you can post the iOS app or server logs (removing any sensitive information).
Reasoning or why should it be changed/implemented?
Environment data

iOS version: iOS 26.4.2

Nextcloud iOS app version: 33.0.8.1

Server operating system: Debian trixie amd64

Web server: Apache

Database: MariaDB 11.8.6

PHP version: 8.4.21

Nextcloud version: 31.0.12

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the iOS app's automatic photo-upload and manual file-upload entry points, then reproduce the intermittent 412 response while collecting the app and server logs requested in the issue. Compare cases that eventually upload with cases that disappear, and document a reliable cause or a more specific user-facing error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.