Open hspak opened 1 year ago
@google-cloud/pubsub
I suspect that we are running into this behavior, but the error message does not seem indicative of that: https://github.com/googleapis/nodejs-pubsub/blob/6c38e7bd29d1351830c80ade7162b6d5cf9cbe1e/src/topic.ts#L861-L887
I'm sorry I don't have a good, small reproduction case but here's effectively the code being run:
import { PubSub, Topic as PubSubTopic } from '@google-cloud/pubsub'; const pubsub = new PubSub(clientConfig); const topic = pubsub.topic('TopicName', { messageOrdering: true, batching: { maxMessages: 100, maxMilliseconds: 250, }, }; await topic.publishMessage({ data: somePayload, attributes: someAttrs, orderingKey: 'myOrderingKey' });
Here's a timestamp from Cloud Logging showing that the publish failed due to a timeout after 50 seconds only after less than a second of running:
I believe the error message is misleading and incorrect here.
@hspak Thanks for the issue. It does look like there's something odd going on there with the error message.
Environment details
@google-cloud/pubsub
version: 3.5.0Steps to reproduce
I suspect that we are running into this behavior, but the error message does not seem indicative of that: https://github.com/googleapis/nodejs-pubsub/blob/6c38e7bd29d1351830c80ade7162b6d5cf9cbe1e/src/topic.ts#L861-L887
I'm sorry I don't have a good, small reproduction case but here's effectively the code being run:
Here's a timestamp from Cloud Logging showing that the publish failed due to a timeout after 50 seconds only after less than a second of running:
I believe the error message is misleading and incorrect here.