-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s3: Failed to deserialize ListObjectVersions LastModfied timestamp value deserialization failed #1387
Comments
Hi @jasdel , any solution to this issue? |
time.Parse(time.RFC3339Nano, val) |
Thanks for reporting this issue @kisscelia. Looks like the service is responding with a timestamp format that the SDK is not expecting. We'll need to investigate this and correct the deserialization. It looks like the format coming back from the service doesn't match the pattern the SDK is using. We should be able to add another pattern to match this value. |
Adds support for parsing DateTime timestamp formatted time similar to RFC 3339, but without the `Z` character, nor UTC offset. Fixes aws/aws-sdk-go-v2#1387
I've added a fix to aws/smithy-go#324 that will address this issue. once this change is reviewed, and merged in it will be included in the SDK's next release. |
…trailing Z Adds support for parsing RFC 3339 timestamp but without the `Z` character, nor UTC offset. Related to aws/aws-sdk-go-v2#1387
OK, Thank you. I will try it in the next version. |
…trailing Z (#4072) Adds support for parsing RFC 3339 timestamp but without the `Z` character, nor UTC offset. Related to aws/aws-sdk-go-v2#1387
=== ### Service Client Updates * `service/datasync`: Updates service API and documentation * `service/ec2`: Updates service API and documentation * Support added for IMDS IPv6 endpoint * `service/eventbridge`: Updates service API and documentation * `service/events`: Updates service API and documentation * AWS CWEvents adds an enum of EXTERNAL for EcsParameters LaunchType for PutTargets API * `service/fms`: Updates service API and documentation ### SDK Bugs * `private/protocol`: Add support for parsing RFC 3339 timestamp without trailing Z * Adds support for parsing RFC 3339 timestamp but without the `Z` character, nor UTC offset. * Related to [aws/aws-sdk-go-v2#1387](aws/aws-sdk-go-v2#1387)
Release v1.40.30 (2021-08-25) === ### Service Client Updates * `service/datasync`: Updates service API and documentation * `service/ec2`: Updates service API and documentation * Support added for IMDS IPv6 endpoint * `service/eventbridge`: Updates service API and documentation * `service/events`: Updates service API and documentation * AWS CWEvents adds an enum of EXTERNAL for EcsParameters LaunchType for PutTargets API * `service/fms`: Updates service API and documentation ### SDK Bugs * `private/protocol`: Add support for parsing RFC 3339 timestamp without trailing Z * Adds support for parsing RFC 3339 timestamp but without the `Z` character, nor UTC offset. * Related to [aws/aws-sdk-go-v2#1387](aws/aws-sdk-go-v2#1387)
|
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
Failed to deserialize ListObjectVersions response
LastModified
timestamp value.Version of AWS SDK for Go?
github.com/aws/aws-sdk-go-v2 v1.8.0 // indirect
github.com/aws/aws-sdk-go-v2/config v1.6.0 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.3.2 // indirect
github.com/aws/aws-sdk-go-v2/service/s3 v1.12.0 // indirect
Version of Go (
go version
)?1.16
To Reproduce (observed behavior)
I got an error, when i sent the ListObjectVersions request with aws-sdk-go-v2.
Error as follows:
but, no error via postman or awscli:
The text was updated successfully, but these errors were encountered: