You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nemesis API endpoint for posting file_data to /api/data using curl or python3 requests requires the timestamp/expiration to have 000Z milliseconds in order to succeed. I've attempted dozens of alternative timestamp formats and none seem to work.
What is the installation of Nemesis?
Debian 11, k3s
What is the issue?
Nemesis API endpoint for posting file_data to
/api/data
using curl or python3 requests requires the timestamp/expiration to have 000Z milliseconds in order to succeed. I've attempted dozens of alternative timestamp formats and none seem to work.Example Curl Statements:
BAD: Invalid expiration value in metadata field
BAD: Invalid file_data message
GOOD
Problem Line in Code
It looks like the strptime() is requiring .000Z:
Nemesis/cmd/enrichment/enrichment/tasks/webapi/nemesis_api.py
Line 370 in 84d5986
Proposed Solution
Consider using the format string
"%Y-%m-%dT%H:%M:%S.%fZ"
for flexible formatting.If I get a moment, I will make a PR to fix this. I tested it locally and it works at parsing all the variants.
The text was updated successfully, but these errors were encountered: