-
Notifications
You must be signed in to change notification settings - Fork 863
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
The API NewEmergingIssuesClient.NewListPager()
throws unmarshalling error
#22272
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @stephbaron. |
It appears that the service is returning the date-time in the wrong format. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure @stephbaron. |
Hey @jhendrixMSFT, is there any update on this one? |
Somebody from the service team will have to comment on why the service returns the time in an invalid format. @stephbaron are you the correct person? |
@jhendrixMSFT, is it possible for our SDK to be more robust for different format of the datetime? https://ijmacd.github.io/rfc3339-iso8601/ |
We can, but the question is, should we? This is the first time I've ever seen a service send time in this format. Do the other languages handle it? @JeffreyRichter the time is coming back as |
Ugh. Azure should be using RFC3339 dates/times which requires a T or t. https://datatracker.ietf.org/doc/html/rfc3339. But there is a note at the bottom of page 8 that says this about the more lenient iso 8601:
So, I think our SDK should support parsing space for older azure services where forcing them to add the t now may break customers. |
The fix will be in |
Bug Report
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth v1.3.0
go version
go version go1.21.4 darwin/arm64
2024/01/18 19:54:06 failed to advance page: unmarshalling type *armresourcehealth.EmergingIssueListResult: unmarshalling type *armresourcehealth.EmergingIssueListResult: struct field Value: unmarshalling type *armresourcehealth.EmergingIssuesGetResult: struct field Properties: unmarshalling type *armresourcehealth.EmergingIssue: struct field RefreshTimestamp: parsing time "\"2024-01-18 14:18:54Z\"" as "\"2006-01-02T15:04:05.999999999Z07:00\"": cannot parse " 14:18:54Z\"" as "T"
2024/01/18 19:54:06
to time stamp.EmergingIssuesClient.NewListPager
as followsThe text was updated successfully, but these errors were encountered: