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
Yeah, I've hit my head on this when trying to use the qutil
"dump_archives" command on the fetcher-fast queue, or on any -delay
queue.
Maybe the right place to make datetimes JSON-safe (by calling
.isoformat()) might be between these two lines in the `dump_archives`
method in qutil.py:
```
extras = {"rabbitmq_headers": properties.headers}
aw.write_story(story, extra_metadata=extras, raise_errors=False)
```
Another possibility is to implement what the comment
just above those two lines suggests?
```
# XXX just save headers that start with "x-mc-"?
```
Since the data in "rabbitmq_headers" data isn't used for anything
(but it _COULD_ be useful in autopsy/forensic examination)
philbudne
added a commit
to philbudne/story-indexer
that referenced
this issue
Dec 22, 2024
An error occurs when attempting to serialize a datetime object to JSON when passing in rabbitmq_headers as extra_metadata to the
StoryArchiveWriter
Sample rabbitmq_headers
The text was updated successfully, but these errors were encountered: