You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "tisonkun (via GitHub)" <gi...@apache.org> on 2023/04/05 07:48:48 UTC
[GitHub] [pulsar-client-node] tisonkun opened a new issue, #312: Send timeout produces an incomprehensible error
tisonkun opened a new issue, #312:
URL: https://github.com/apache/pulsar-client-node/issues/312
I change the timeout settings in `examples/produce.js` to 1 second, and run it without a running Pulsar server. The program failed due to timeout, but the error message is incomprehensible:
```
$ git --no-pager diff
diff --git a/examples/producer.js b/examples/producer.js
index b859a17..e1e3c46 100644
--- a/examples/producer.js
+++ b/examples/producer.js
@@ -23,13 +23,13 @@ const Pulsar = require('../');
// Create a client
const client = new Pulsar.Client({
serviceUrl: 'pulsar://localhost:6650',
- operationTimeoutSeconds: 30,
+ operationTimeoutSeconds: 1,
});
// Create a producer
const producer = await client.createProducer({
topic: 'persistent://public/default/my-topic',
- sendTimeoutMs: 30000,
+ sendTimeoutMs: 1000,
batchingEnabled: true,
});
$ node examples/producer
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: Failed to create producer: TimeOut]
Node.js v19.8.1
```
I'm wondering if we can throw a clear exception on this case.
cc @BewareMyPower @RobertIndie @shibd
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-client-node] BewareMyPower commented on issue #312: Send timeout produces an incomprehensible error
Posted by "BewareMyPower (via GitHub)" <gi...@apache.org>.
BewareMyPower commented on issue #312:
URL: https://github.com/apache/pulsar-client-node/issues/312#issuecomment-1497575065
> [Error: Failed to create producer: TimeOut]
Is it not clear?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-client-node] tisonkun closed issue #312: Send timeout produces an incomprehensible error
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun closed issue #312: Send timeout produces an incomprehensible error
URL: https://github.com/apache/pulsar-client-node/issues/312
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-client-node] tisonkun commented on issue #312: Send timeout produces an incomprehensible error
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on issue #312:
URL: https://github.com/apache/pulsar-client-node/issues/312#issuecomment-1497692167
@BewareMyPower 🤣 You're right.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org