-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cause: ValueError('year 55675 is out of range') #186
Comments
Please attach the code example, this should be very helpful |
Sure, heres the code import os
import asyncio
import aiormq
import ssl
import logging
logging.basicConfig(level=logging.DEBUG)
ably_queue_name = os.environ['ABLY_QUEUE_NAME']
ably_host_endpoint = os.environ['ABLY_HOST_ENDPOINT']
ably_host_port = 5671
ably_api_key = os.environ["ABLY_API_KEY"]
ably_queue_endpoint = f"amqps://{ably_api_key}@{ably_host_endpoint}/shared"
print(ably_api_key)
async def on_message(message):
print(message.body.timestamp)
async def consumer_messages2():
connection = await aiormq.connect(ably_queue_endpoint)
channel = await connection.channel()
await channel.basic_consume(ably_queue_name,on_message,no_ack=False)
loop = asyncio.get_event_loop()
loop.run_until_complete(consumer_messages2())
loop.run_forever() And the debug output
|
Could you please add dumped message or another way how can I reproduce it? |
A basic message would look like this
|
Getting this error when consuming from a queue when the message has an epoch timestamp. Is this a bug or is there a workaround?
The text was updated successfully, but these errors were encountered: