Comments (10)
I did run into the same issue today and did a bit more in depth investigation.
I opened an issue here: sahlberg/libsmb2#63
from amsmb2.
What is your server?
Would you mind to set a breakpoint at Context.swift line 274
to see if this error is thrown by my library or this is thrown by libsmb2?
from amsmb2.
Nope the app executes as normal.
Just the basic file sharing toggle inside preferences for macOS high sierra
from amsmb2.
Dont know if it helps but in Context.swift
at line 306
let cbResult = cbPtr.bindMemory(to: CBData.self, capacity: 1).pointee.result
returns -22
and the error is then thrown at the next line 307
try POSIXError.throwIfError(cbResult, description: error, default: defaultError)
from amsmb2.
Ok that means libsmb2 throws error. Please check error
property which is error description.
from amsmb2.
If you mean the error property of SMB2Context
its empty
from amsmb2.
Thus error is thrown by either this line or this line
Please record packets by Wireshark app if possible and then open an issue in sahlberg/libsmb2
from amsmb2.
Thank you for your help, I will investigate further.
from amsmb2.
@emilhornlund @hholtmann Unfortunately Sahlberg's fix is not ready yet, and I think it would not be ready until next weekend or more. I restored my own implementation which predates libsmb2's one. It has no issue as it uses read/write instead of ioctl.
I will switch back to libsmb2's when it becomes ready and stable.
from amsmb2.
Seems like he has merged the fix a couple of months later: sahlberg/libsmb2#63 (comment)
from amsmb2.
Related Issues (20)
- SPM and xcframework HOT 1
- Unable to connect to windows 10 machine
- listShares error HOT 1
- Xcode compile for iOS target with swift package HOT 9
- iOS 15 fails with STATUS_LOGON_FAILURE HOT 4
- Multiple file upload HOT 3
- SPM Support HOT 5
- can someone know how to fix this HOT 1
- Upload the file keeping the original creation date HOT 1
- Cannot obtain data from Windows shares HOT 1
- Cannot extract data, move, download, copy; etc. from Linux or Windows shares with latin characters in file name HOT 8
- Which thread does amsmb2 run on HOT 1
- Connect to a Distributed File System-Namespaces HOT 1
- Uploading a folder HOT 1
- import AMSMB2 to xCode HOT 1
- macOS arm64 architecture missing HOT 2
- No such module 'SMB2' HOT 1
- Long delay when processing delete requests of recently uploaded items. HOT 1
- Struct smb2_context has removed member is_connected for the latest libsmb2? HOT 1
- Need support for M1 iphone simulator "arm64-apple-ios-simulator" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amsmb2.