Skip to content
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

Bug: Warning about deprecated features when using latest RabbitMQ #1325

Closed
gaby opened this issue Mar 27, 2024 · 2 comments
Closed

Bug: Warning about deprecated features when using latest RabbitMQ #1325

gaby opened this issue Mar 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@gaby
Copy link

gaby commented Mar 27, 2024

Describe the bug
Deprecation warnings when connecting with basic consumer to RabbitMQ.

How to reproduce
Include source code:

from faststream import FastStream
from faststream.rabbit import RabbitBroker

broker = RabbitBroker("amqp://guest:guest@localhost:5672/")
app = FastStream(broker)

@broker.subscriber("foo")
async def handle_msg(user: str, user_id: int) -> str:
    return f"User: {user_id} - {user} registered"

Using the latest rabbitmq:3-management Docker Image the following warnings show up when the consumer connects:

2024-03-27 02:44:33.132486+00:00 [info] <0.9.0> Time to start RabbitMQ: 4506628 us
2024-03-27 02:44:39.012931+00:00 [info] <0.808.0> accepting AMQP connection <0.808.0> (172.17.0.1:46982 -> 172.17.0.2:5672)
2024-03-27 02:44:39.014898+00:00 [info] <0.808.0> connection <0.808.0> (172.17.0.1:46982 -> 172.17.0.2:5672): user 'guest' authenticated and granted access to vhost '/'
2024-03-27 02:44:39.017089+00:00 [warning] <0.818.0> Deprecated features: `transient_nonexcl_queues`: Feature `transient_nonexcl_queues` is deprecated.
2024-03-27 02:44:39.017089+00:00 [warning] <0.818.0> By default, this feature can still be used for now.
2024-03-27 02:44:39.017089+00:00 [warning] <0.818.0> Its use will not be permitted by default in a future minor RabbitMQ version and the feature will be removed from a future major RabbitMQ version; actual versions to be determined.
2024-03-27 02:44:39.017089+00:00 [warning] <0.818.0> To continue using this feature when it is not permitted by default, set the following parameter in your configuration:
2024-03-27 02:44:39.017089+00:00 [warning] <0.818.0>     "deprecated_features.permit.transient_nonexcl_queues = true"
2024-03-27 02:44:39.017089+00:00 [warning] <0.818.0> To test RabbitMQ as if the feature was removed, set this in your configuration:
2024-03-27 02:44:39.017089+00:00 [warning] <0.818.0>     "deprecated_features.permit.transient_nonexcl_queues = false"

Additional question, is it possible to run faststream without the CLI?

@gaby gaby added the bug Something isn't working label Mar 27, 2024
@Lancetnik
Copy link
Collaborator

@gaby, sure you can run application right manuall: https://faststream.airt.ai/latest/getting-started/#other-tools-integrations

Are u sure, that this deprecation notice related to FastStream? I'll try to dig into, but it can be aio-pika problem or even managemant plugin

@gaby
Copy link
Author

gaby commented Mar 27, 2024

@Lancetnik You are right, this a rabbit/mgmt thing, not faststream/aio-pika 😂

Thanks! 💪

@gaby gaby closed this as completed Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants