question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"9999-12-31T23:59:00Z" not parsing as valid ISO 8601 DateTime

See original GitHub issue

I have a template with a setting ( which was exported from Azure Resource Manager btw.) I don’t believe this warning is valid as that is a valid iso datetime as far as I can tell. I’m not sure about the string type error.

{
	"resource": "/c:/Projects//powershell/ServicePlan-Template.json",
	"owner": "ARM Template Language Server diagnostics",
	"severity": 4,
	"message": "Value must conform to exactly one of the associated schemas\r\n|   Value must be a valid ISO 8601 datetime at #/resources/1/properties/siteConfig/requestTracingExpirationTime\r\n|   or\r\n|   Value must be one of the following types: string",
	"source": "arm-template (schema)",
	"startLineNumber": 138,
	"startColumn": 11,
	"endLineNumber": 138,
	"endColumn": 23
}

Section from Template

            ...
            "numberOfWorkers": 1,
            "defaultDocuments": [],
            "netFrameworkVersion": "v4.0",
            "requestTracingEnabled": true,
            "requestTracingExpirationTime": "9999-12-31T23:59:00Z",
            "remoteDebuggingEnabled": false,
            "httpLoggingEnabled": true,
            "logsDirectorySizeLimit": 35,
            ...

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
vllamacommented, May 25, 2020

Github_template.json.txt

Here is the template

0reactions
vscodebot[bot]commented, Jul 3, 2020

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic Please provide a valid ISO 8601 datetime format ...
That's not a good idea as the string isn't in a format supported by ECMA-262 so parsing is implementation dependent.
Read more >
ISO8601DateFormatter fails to parse a valid ISO-8601 date
Although, 2017-09-04T04:14:37.000Z is a valid ISO8601-formatted date, ISO8601DateFormatter cannot parse it. Seemingly, it happens when the ...
Read more >
Error when trying to parse an actually ISO8601 valid date string
Hi Nicolas,. You're right, that error message is misleading. fromIsoString is meant to parse only ISO 8601 dates, not dates with times.
Read more >
Working with Dates and Times by Using the ISO 8601 Basic ...
When you specify a datetime value, an uppercase T is the required delimiter between the date and time. Some of the ISO 8601...
Read more >
Datetime string must match ISO 8601 format. Can't figure it out.
... column '17747': 'In function 'formatDateTime', the value provided for date time string '' was not valid. The datetime string must match ISO...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found