hypothesis / hypothesis/h

ValueError: time data '2019-07-18T06:43:39Z' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'

Open
#5,663 0 comments 0 reactions 0 assignees View on GitHub
bug S4 Sentry 💥
Dominant language
Python
Stars
3.2k
Forks
459
Avg merge
27d 1h
Merged PRs (30d)
1

Description

We had a brief burst of these a couple of hours ago. It looks like the fractional seconds part of the timestamp is missing from the `"timestamp"` field in the message, which the parser is expecting:

Sentry Issue: [H-1QJ](https://sentry.io/organizations/hypothesis/issues/1116402353/?referrer=github_integration)

```
ValueError: time data '2019-07-18T06:43:39Z' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'
(19 additional frame(s) were not displayed)
...
File "kombu/messaging.py", line 590, in
[callback(body, message) for callback in callbacks]
File "h/realtime.py", line 53, in handle_message
self._record_time_in_queue(message)
File "h/realtime.py", line 71, in _record_time_in_queue
message.headers["timestamp"], "%Y-%m-%dT%H:%M:%S.%fZ"
File "_strptime.py", line 565, in _strptime_datetime
tt, fraction = _strptime(data_string, format)
File "_strptime.py", line 362, in _strptime
(data_string, format))

Unexpected exception in streamer greenlet:
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.