a specific (and maybe dumb) question. Am looking at S3 API used in a Unity project that looks like this:
await TransferUtility.UploadDirectoryAsync (string);
It works fine when things are okay, but it does *not* raise an exception if there's no network for example. It just waits until network is available again. We don't want this behaviour. We want it to eagerly fail if it cannot upload.
This is the API doc in question.
Could this be related to something with the S3 SDK, or something else I'm overlooking?
Any other pointers welcome.
Why don't you check the network connectivity before call it?
We could; but isn't it generally better to try and fail than check and try? You do introduce a race when you check and try.
are you sure exception is not being eaten?
Обсуждают сегодня