Skip to content

have a dedicated error for rabbitmq rpc timeouts #1083

@Loki-Afro

Description

@Loki-Afro

Could we please have a dedicated Exception/Error for when an RPC timeout occurs?

relevant code:

const timeout$ = interval(timeout).pipe(
first(),
map(() => {
throw new Error(
`Failed to receive response within timeout of ${timeout}ms for exchange "${requestOptions.exchange}" and routing key "${requestOptions.routingKey}"`,
);
}),
);

Otherwise, you are forced to check for the message :/

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions