Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bfleming-ciena/b1a66fa94a6c6f962a3b9cd91570bf0b to your computer and use it in GitHub Desktop.
Save bfleming-ciena/b1a66fa94a6c6f962a3b9cd91570bf0b to your computer and use it in GitHub Desktop.
custodian auto tag in azure
2019-04-18T18:00:09.690 [Information] Executing 'Functions.azure-auto-tag-creator' (Reason='This function was programmatically called via the host APIs.', Id=b265df84-a1cf-4fb2-b8bb-611c0d54b721)
2019-04-18T18:00:09.806 [Error] Executed 'Functions.azure-auto-tag-creator' (Failed, Id=b265df84-a1cf-4fb2-b8bb-611c0d54b721)
Result: Failure
Exception: ValueError: time data '9999-12-31T23:59:59.9999999+00:00' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'
Stack: File "/root/.pyenv/versions/3.6.8/lib/python3.6/site-packages/azure/functions_worker/dispatcher.py", line 273, in _handle__invocation_request
pytype=pb_type_info.pytype)
File "/root/.pyenv/versions/3.6.8/lib/python3.6/site-packages/azure/functions_worker/bindings/meta.py", line 296, in from_incoming_proto
trigger_metadata=trigger_metadata)
File "/root/.pyenv/versions/3.6.8/lib/python3.6/site-packages/azure/functions_worker/bindings/queue.py", line 89, in from_proto
trigger_metadata, 'ExpirationTime'),
File "/root/.pyenv/versions/3.6.8/lib/python3.6/site-packages/azure/functions_worker/bindings/meta.py", line 149, in _parse_datetime_metadata
return cls._parse_datetime(datetime_str)
File "/root/.pyenv/versions/3.6.8/lib/python3.6/site-packages/azure/functions_worker/bindings/meta.py", line 192, in _parse_datetime
raise last_error
File "/root/.pyenv/versions/3.6.8/lib/python3.6/site-packages/azure/functions_worker/bindings/meta.py", line 187, in _parse_datetime
dt = datetime.datetime.strptime(datetime_str, fmt)
File "/root/.pyenv/versions/3.6.8/lib/python3.6/_strptime.py", line 565, in _strptime_datetime
tt, fraction = _strptime(data_string, format)
File "/root/.pyenv/versions/3.6.8/lib/python3.6/_strptime.py", line 362, in _strptime
(data_string, format))
@unstephenk
Copy link

I am having the same issue. Were you able to resolve it?

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