大疆社区

标题: 大疆机场2连接minIO临时凭证失败,无法上传图片 [打印本页]

作者: djiuser_GRqZfK    时间: 8-2 16:31
标题: 大疆机场2连接minIO临时凭证失败,无法上传图片
[{"type":1,"key":"first-text","desc":" @Override\n    public CredentialsDTO getCredentials() {\n        try {\n            AssumeRoleProvider provider = new AssumeRoleProvider(OssConfiguration.endpoint, OssConfiguration.accessKey,\n                    OssConfiguration.secretKey, Math.toIntExact(OssConfiguration.expire),\n                    null, OssConfiguration.region, null, null, null, null);\n            return new CredentialsDTO(provider.fetch(), OssConfiguration.expire);\n        } catch (NoSuchAlgorithmException e) {\n            log.debug(\"Failed to obtain sts.\");\n            e.printStackTrace();\n        }\n        return null;\n    }"},{"type":1,"key":"ixvlbqvg","desc":"yml 配置文件:oss:\n  enable: true\n  provider: minio\n  endpoint: http://*********:9000\n  access-key: ****\n  secret-key: ***\n  bucket: cloud-bucket\n  expire: 3600"},{"type":1,"key":"ss4l03io","desc":"之前使用阿里的OSS可以正常图传,后切换到minIO以后,第一次还正常,但是换了一台机场2以后就没办法图传了,在上述代码中就一直报错 failed to obtain sts."},{"type":1,"key":"4z70a077","desc":""},{"type":1,"key":"xijkrbmj","desc":""},{"type":1,"key":"3amjr3si","desc":""}]




欢迎光临 大疆社区 (https://bbs.dji.com/) Powered by Discuz! X3.2