You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "trevordowdle (via GitHub)" <gi...@apache.org> on 2023/03/08 05:12:09 UTC

[GitHub] [pulsar-client-node] trevordowdle opened a new issue, #303: libc++abi: terminating with uncaught exception of type std::invalid_argument: The scheme part is missing:

trevordowdle opened a new issue, #303:
URL: https://github.com/apache/pulsar-client-node/issues/303

   In the latest version of Pulsar Client (8.1).
   
   When I initiate a new PulsarClient, if the service url is an empty string or not a valid url I get the following error and my node application/process stops.
   
   **libc++abi: terminating with uncaught exception of type std::invalid_argument: The scheme part is missing:**


-- 
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 #303: libc++abi: terminating with uncaught exception of type std::invalid_argument: The scheme part is missing:

Posted by "BewareMyPower (via GitHub)" <gi...@apache.org>.
BewareMyPower commented on issue #303:
URL: https://github.com/apache/pulsar-client-node/issues/303#issuecomment-1465405088

   This design is to fail fast because an empty string or another invalid service URL should be exposed earlier. It's also consistent with the Java client.
   
   I think when we wrapped this exception for Node.js client, we can catch the `std::invalid_argument` and wrap the exception as the exception in Node.js. But we should not swallow the exception. An invalid URL could fail the following steps.


-- 
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] shibd closed issue #303: libc++abi: terminating with uncaught exception of type std::invalid_argument: The scheme part is missing:

Posted by "shibd (via GitHub)" <gi...@apache.org>.
shibd closed issue #303: libc++abi: terminating with uncaught exception of type std::invalid_argument: The scheme part is missing:
URL: https://github.com/apache/pulsar-client-node/issues/303


-- 
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] shibd commented on issue #303: libc++abi: terminating with uncaught exception of type std::invalid_argument: The scheme part is missing:

Posted by "shibd (via GitHub)" <gi...@apache.org>.
shibd commented on issue #303:
URL: https://github.com/apache/pulsar-client-node/issues/303#issuecomment-1463460985

   In the CPP client impl, this is expected behavior.
   
   https://github.com/apache/pulsar-client-cpp/blob/40d45aa181847f77c6c8d1f316e5698fffaf2a7a/include/pulsar/Client.h#L55-L56
   
   In the `node.js` client side, what should we do better? Packaging this exception?


-- 
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] trevordowdle commented on issue #303: libc++abi: terminating with uncaught exception of type std::invalid_argument: The scheme part is missing:

Posted by "trevordowdle (via GitHub)" <gi...@apache.org>.
trevordowdle commented on issue #303:
URL: https://github.com/apache/pulsar-client-node/issues/303#issuecomment-1464119531

   For some additional context, I recently upgraded an existing project to 1.8.1 from 1.7.0 and we had some configurations that would loop over different pulsar environments to create client connections.  A number of these configurations were had blank url's.  
   
   Where previously this would fail gracefully, all of a sudden the application just died with the above error message.  There was no additional traceable information in order to locate the source of the error.  
   
   So I had to take the application apart little by little and finally found the source/cause of the error, but it took a good amount of time and almost dissuading me from upgrading despite having all the dependencies wrapped up in 1.8.
   
   If anything can be done here, I think it would be beneficial, especially for those looking to upgrade from previous versions as the error is not easy to diagnose.  
   
   Thanks


-- 
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