iOS AWS v2 S3 Transfer Manager must use specified endpoint

后端 未结 3 1055
被撕碎了的回忆
被撕碎了的回忆 2021-01-16 15:12

I am developing an iOS app using AWS as its backend. Since I expect users to be world wide, I need to switch where the app should download photos in order to increase latenc

3条回答
  •  感情败类
    2021-01-16 15:54

    Whenever the Amazon AWS Mobile SDK displays an unclear warning in the console, turn on verbose logging to debug:

    (Swift 3) AWSLogger.default().logLevel = .verbose
    (Swift 2) AWSLogger.defaultLogger().logLevel = .Verbose

    …to reveal more information about what S3 buckets, regions, endpoints etc. are being used.


    I found this particularly useful to find out what was happening when trying to switch between buckets, because the error message

    … Endpoint=bucket-ap-northeast-1.s3-ap-northeast-1.amazonaws.com, Message=The bucket you are attempting to access must be addressed using the specified endpoint. …

    …doesn't provide much information about the actual/current transfer manager configuration.

提交回复
热议问题