Skip to content

IOS Fix - NSCocoaErrorDomain error 256#255

Closed
EduFrazao wants to merge 2 commits into
edeckers:developfrom
EduFrazao:develop
Closed

IOS Fix - NSCocoaErrorDomain error 256#255
EduFrazao wants to merge 2 commits into
edeckers:developfrom
EduFrazao:develop

Conversation

@EduFrazao

Copy link
Copy Markdown

Fixed a IOS Bug, throwing NSCocoaErrorDomain code 256 whein trying to read absolutePath's of files ready to be uploaded.

@edeckers

Copy link
Copy Markdown
Owner

Thank you @EduFrazao ! I'll try to take a look and merge this weekend

@EduFrazao

Copy link
Copy Markdown
Author

Thank you @EduFrazao ! I'll try to take a look and merge this weekend
Thank you @edeckers !!!

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Apr 3, 2024

Copy link
Copy Markdown
Contributor

TypeScript Test Report

  1 files  ±0    1 suites  ±0   1s ⏱️ ±0s
35 tests ±0  35 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 93778d7. ± Comparison against base commit 7be63df.

@github-actions

github-actions Bot commented Apr 3, 2024

Copy link
Copy Markdown
Contributor

Android Unit Test Report

  1 files  ±0    1 suites  ±0   9s ⏱️ ±0s
19 tests ±0  19 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 93778d7. ± Comparison against base commit 7be63df.

@github-actions

github-actions Bot commented Apr 3, 2024

Copy link
Copy Markdown
Contributor

Android Instrumented Test Report

1 files  ±0  1 suites  ±0   1h 21m 26s ⏱️ +41s
8 tests ±0  8 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 93778d7. ± Comparison against base commit 7be63df.

@github-actions

github-actions Bot commented Apr 3, 2024

Copy link
Copy Markdown
Contributor

iOS Test Report

  1 files  ±0    1 suites  ±0   4s ⏱️ -4s
15 tests ±0  12 ✔️  - 3  0 💤 ±0  3 ❌ +3 
16 runs  +1  12 ✔️  - 3  0 💤 ±0  4 ❌ +4 

For more details on these failures, see this check.

Results for commit 93778d7. ± Comparison against base commit 7be63df.

@edeckers

edeckers commented Apr 7, 2024

Copy link
Copy Markdown
Owner

This is taking longer than expected, as I've had some issues with the builder machine not being able to kill the test runs correctly. Also, some iOS-tests are failing and I didn't have time to investigate yet. I hope to find some time for this soon

@EduFrazao

Copy link
Copy Markdown
Author

This is taking longer than expected, as I've had some issues with the builder machine not being able to kill the test runs correctly. Also, some iOS-tests are failing and I didn't have time to investigate yet. I hope to find some time for this soon

Hi @edeckers ! Thanks for your answer!
No problem, I'm running a patched version on my application waiting for your review. Thank you very mutch.

@edeckers

Copy link
Copy Markdown
Owner

tl; dr: found the problem that causes the tests to fail, did not have time to fix yet

--

I had some time at my disposal, so I was able to track down the issue with regards to the broken tests.

The buildRequestDataForFileUpload receives a parts parameter, which contains - among other things - the textual representation of the path to the local file to be uploaded.

When this path is prefixed with file:// schema in the input, e.g. file:///path/to/your/file.ext this causes problems, because URL(fileURLWithPath: ... replaces the file:// schema with file:/, e.g. file:/path/to/your/file.ext which results in a 'file not found' exception.

There are some instant gratification hacks to circumvent this problem, like stripping file:// from the provided url, but that's just that: a hack, which will probably open a whole other can of worms and is not something that I'd like to introduce to the codebase.

So, I will need to find some time again to fix it properly, but the available time is sparse these days so it might be a while. If you're up to it, I'd happily accept a PR that addresses the situation!

@edeckers

edeckers commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Fixed in #265

@edeckers edeckers closed this Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants