You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failed to create producer: ConnectError when upgrading to 1.8.0 #281
Hi there, I'm just attempting to upgrade to 1.8.0 (from 1.7.0) and I'm now getting a Failed to create producer: ConnectError error when creating a producer. If I downgrade back to 1.7.0 the same code works fine.
Hi, @ericallam Need to confirm, are you getting an auth AuthenticationError? In my environment I reproduce and I get an AuthenticationError
I get the error log:
Response failed for getting the well-known configuration https://dev-kt-aa9ne.us.auth0.com. Error Code 60: SSL certificate problem: unable to get local issuer certificate
You can add the following code to get the log information:
When I use pulsar+ssl:, I get the same result as you: Error: Failed to create producer: ConnectError
The essential reason should be this:
Response failed for getting the well-known configuration https://dev-kt-aa9ne.us.auth0.com. Error Code 60: SSL certificate problem: unable to get local issuer certificate
Activity
shibd commentedon Jan 7, 2023
Hi, @ericallam Need to confirm, are you getting an auth
AuthenticationError? In my environment I reproduce and I get anAuthenticationErrorI get the error log:
You can add the following code to get the log information:
shibd commentedon Jan 7, 2023
When I use
pulsar+ssl:, I get the same result as you:Error: Failed to create producer: ConnectErrorThe essential reason should be this:
I will check it.
ericallam commentedon Jan 9, 2023
Just added the logging a retested with 1.8.0 and here's the log got:
ericallam commentedon Jan 10, 2023
Are there any workarounds for this issue @shibd?
shibd commentedon Jan 10, 2023
This can be caused by static linking cross-compiled OpenSSL.
I push a #282 to fix this. Before that, you can refer to How to build of README to build from the source(I tested it, and it can work).
ericallam commentedon Jan 10, 2023
Thanks, will take a look at building from source 👍
shibd commentedon Feb 7, 2023
Summary
This is because cross-compilation results in the
CA cert bundlenot being set on the ARM64 Mac. Refer to this: apache/pulsar-client-cpp#184 (comment)We need to wait for this PR to be released and then upgrade the CPP dependencies.
It can then be solved on arm64 by configuring
tlsTrustCertsFilePathshibd commentedon Mar 10, 2023
v1.8.1 has already been released, and it can fix this issue.