You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting the below errors
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:784:15: assignment mismatch: 1 variable but srcSection.Int returns 2 values
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:785:17: undefined: ini.NewIntValue
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:956:22: multiple-value section.Int(roleDurationSecondsKey) (value of type (int64, bool)) in single-value context
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:1304:48: undefined: ini.IntegerType
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:1309:13: multiple-value section.Int(key) (value of type (int64, bool)) in single-value context
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:1319:9: assignment mismatch: 1 variable but section.Bool returns 2 values
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:1329:10: assignment mismatch: 1 variable but section.Bool returns 2 values
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:1361:5: multiple-value section.Bool(key) (value of type (bool, bool)) in single-value context
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:1377:5: multiple-value section.Bool(key) (value of type (bool, bool)) in single-value context
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/download.go:439:27: invalid operation: resp.ContentLength > 0 (mismatched types *int64 and untyped int)
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/download.go:440:19: cannot use resp.ContentLength (variable of type *int64) as int64 value in assignment
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:504:25: cannot use out.BucketKeyEnabled (variable of type *bool) as bool value in struct literal
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:573:54: invalid operation: a[i].PartNumber < a[j].PartNumber (operator < not defined on pointer)
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:642:25: cannot use completeOut.BucketKeyEnabled (variable of type *bool) as bool value in struct literal
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:725:15: cannot use c.num (variable of type int32) as *int32 value in struct literal
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:737:25: cannot use c.num (variable of type int32) as *int32 value in assignment
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/download.go:439:27: invalid operation: resp.ContentLength > 0 (mismatched types *int64 and untyped int)
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/download.go:440:19: cannot use resp.ContentLength (variable of type *int64) as int64 value in assignment
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:504:25: cannot use out.BucketKeyEnabled (variable of type *bool) as bool value in struct literal
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:573:54: invalid operation: a[i].PartNumber < a[j].PartNumber (operator < not defined on pointer)
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:642:25: cannot use completeOut.BucketKeyEnabled (variable of type *bool) as bool value in struct literal
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:725:15: cannot use c.num (variable of type int32) as *int32 value in struct literal
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:737:25: cannot use c.num (variable of type int32) as *int32 value in assignment
Expected Behavior
s3 upload and download works without throwing erros.
Current Behavior
s3 list objects code failing with above errors
Reproduction Steps
just any go code that uses thsi sdk to list objects
Possible Solution
fix or catch exceptions and report actionable errors please.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Getting the below errors
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:784:15: assignment mismatch: 1 variable but srcSection.Int returns 2 values
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:785:17: undefined: ini.NewIntValue
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:956:22: multiple-value section.Int(roleDurationSecondsKey) (value of type (int64, bool)) in single-value context
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:1304:48: undefined: ini.IntegerType
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:1309:13: multiple-value section.Int(key) (value of type (int64, bool)) in single-value context
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:1319:9: assignment mismatch: 1 variable but section.Bool returns 2 values
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:1329:10: assignment mismatch: 1 variable but section.Bool returns 2 values
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:1361:5: multiple-value section.Bool(key) (value of type (bool, bool)) in single-value context
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/[email protected]/shared_config.go:1377:5: multiple-value section.Bool(key) (value of type (bool, bool)) in single-value context
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/download.go:439:27: invalid operation: resp.ContentLength > 0 (mismatched types *int64 and untyped int)
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/download.go:440:19: cannot use resp.ContentLength (variable of type *int64) as int64 value in assignment
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:504:25: cannot use out.BucketKeyEnabled (variable of type *bool) as bool value in struct literal
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:573:54: invalid operation: a[i].PartNumber < a[j].PartNumber (operator < not defined on pointer)
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:642:25: cannot use completeOut.BucketKeyEnabled (variable of type *bool) as bool value in struct literal
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:725:15: cannot use c.num (variable of type int32) as *int32 value in struct literal
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:737:25: cannot use c.num (variable of type int32) as *int32 value in assignment
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/download.go:439:27: invalid operation: resp.ContentLength > 0 (mismatched types *int64 and untyped int)
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/download.go:440:19: cannot use resp.ContentLength (variable of type *int64) as int64 value in assignment
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:504:25: cannot use out.BucketKeyEnabled (variable of type *bool) as bool value in struct literal
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:573:54: invalid operation: a[i].PartNumber < a[j].PartNumber (operator < not defined on pointer)
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:642:25: cannot use completeOut.BucketKeyEnabled (variable of type *bool) as bool value in struct literal
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:725:15: cannot use c.num (variable of type int32) as *int32 value in struct literal
../../go/pkg/mod/github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/upload.go:737:25: cannot use c.num (variable of type int32) as *int32 value in assignment
Expected Behavior
s3 upload and download works without throwing erros.
Current Behavior
s3 list objects code failing with above errors
Reproduction Steps
just any go code that uses thsi sdk to list objects
Possible Solution
fix or catch exceptions and report actionable errors please.
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
module SudarDV
go 1.21
require (
github.com/aws/aws-sdk-go-v2 v1.24.0
github.com/aws/aws-sdk-go-v2/config v1.18.19
github.com/aws/aws-sdk-go-v2/credentials v1.13.18
github.com/aws/aws-sdk-go-v2/service/s3 v1.31.0
github.com/go-sql-driver/mysql v1.7.1
github.com/snowflakedb/gosnowflake v1.7.1
)
require (
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.2 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 // indirect
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.0.0 // indirect
github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c // indirect
github.com/andybalholm/brotli v1.0.4 // indirect
github.com/apache/arrow/go/v12 v12.0.1 // indirect
github.com/apache/thrift v0.16.0 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.4 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.10 // indirect
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.59 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.9 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.9 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.7.2 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.9 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.4 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.9 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.9 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.9 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.18.5 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.5 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.26.6 // indirect
github.com/aws/smithy-go v1.19.0 // indirect
github.com/danieljoos/wincred v1.1.2 // indirect
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
github.com/form3tech-oss/jwt-go v3.2.5+incompatible // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/goccy/go-json v0.10.0 // indirect
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/flatbuffers v23.1.21+incompatible // indirect
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/klauspost/asmfmt v1.3.2 // indirect
github.com/klauspost/compress v1.15.15 // indirect
github.com/klauspost/cpuid/v2 v2.2.3 // indirect
github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8 // indirect
github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3 // indirect
github.com/mtibben/percent v0.2.1 // indirect
github.com/pierrec/lz4/v4 v4.1.17 // indirect
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/zeebo/xxh3 v1.0.2 // indirect
golang.org/x/crypto v0.15.0 // indirect
golang.org/x/exp v0.0.0-20230206171751-46f607a40771 // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/net v0.18.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.14.0 // indirect
golang.org/x/term v0.14.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.6.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
)
Compiler and Version used
go version go1.21.5 linux/amd64
Operating System and version
Ubuntu Linux and Mac uptodate versions
The text was updated successfully, but these errors were encountered: