Skip to content

Fix DateTime parsing for AccessToken expiration#227

Open
joshw97 wants to merge 2 commits into
MSEndpointMgr:masterfrom
joshw97:patch-1
Open

Fix DateTime parsing for AccessToken expiration#227
joshw97 wants to merge 2 commits into
MSEndpointMgr:masterfrom
joshw97:patch-1

Conversation

@joshw97

@joshw97 joshw97 commented May 15, 2026

Copy link
Copy Markdown

Remove .ToString() Causes the following exception when validating against validity token - MethodInvocationException: Exception calling "Parse" with "3" argument(s): "String '' was not recognized as a valid DateTime.

Updated the parsing of ExpiresOn to avoid exceptions when validating the access token.
@zimbo86

zimbo86 commented May 20, 2026

Copy link
Copy Markdown

Hi @joshw97
Same in Invoke-AzureStorageBlobUploadRenew.ps1
Line 65
Can you fix and commit?
image

Fix parsing of ExpiresOn to avoid exceptions.
@joshw97

joshw97 commented May 20, 2026

Copy link
Copy Markdown
Author

Invoke-AzureStorageBlobUploadRenew.ps1

Hi @zimbo86

I can't see that in the Master repository.

image

@zimbo86

zimbo86 commented May 21, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants