Comments (7)
Hello,
This could likely be because your target does not have the appropriate TLS certificates installed on your target. On your Ubuntu host, there is a install base of CA root certificates which is why things worked seamlessly.
Could you try installing the appropriate CA certificate(s) on your target and see if this unblocks you for the moment?
Here is how you can do this:
- From your Ubuntu host, open up a Chrome or Firefox browser and point it to your EventHub instance using https://
- Obtain all the certs in the chain and install them on your target.
- Retry your code.
Additionally, for your reference, enabling log tracing on your EventHub Sender and Receiver could make debugging easier.
from azure-event-hubs-c.
how to enable log tracing ?? i am also not getting the log when i am cross compiling it for nvidia. only info log is coming .....
from azure-event-hubs-c.
There is nothing like eventHub in certificate tab under firefox in ubuntu ??
from azure-event-hubs-c.
i have debugged this code and found
xio_open(connection->io, connection_on_io_open_complete, connection, connection_on_bytes_received, connection, connection_on_io_error, connection)
is returning success.
But none of the registered function is getting called on my nvidia board. but on my desktop machine "connection_on_io_open_complete" is getting called .....
from azure-event-hubs-c.
I am not sure if you have retrieved the certificate or not, all that needs to be done here is point your browser to https://<your_event_hub>.servicebus.windows.net/ (for example). Obtain any certificates here (there should be three) like you would from any other website.
To enable tracing please do this in your code for a EventHub Receiver:
- eventHubRxHandle = EventHubReceiver_Create(...)
- EventHubReceiver_SetConnectionTracing(eventHubRxHandle , true); // this enables connection tracing
- EventHubReceiver_ReceiveFromStartTimestampWithTimeoutAsync or EventHubReceiver_ReceiveFromStartTimestampAsync depending on what you want to do.
Similarly, to To enable tracing please do this in your code for a EventHub Sender:
- eventHubTxHandle = EventHubClient_CreateFromConnectionString(...)
- EventHubClient_SetLogTrace(eventHubTxHandle, true);
- Add your sender code after this.
Please try this out and send us any logs. Additionally as always please remember to NOT paste your connection string details.
Thank you.
from azure-event-hubs-c.
connection Tracing is enabled in my code. but nothing is coming to the terminal. I have captured Wireshark packet for this. And found my client is not able to verify the server certificate, then after some time, "FIN" packet is coming from Server side.
one more question is azure needed "LDAP" support to communicate ??
I am attaching my Wireshark log with this.
from azure-event-hubs-c.
finally, it works.... certificate issue is resolved. you can close this issue.... :)
from azure-event-hubs-c.
Related Issues (20)
- All events are sent to the same partition HOT 3
- The instruction link in README.md file is invalid HOT 2
- Building with MinGW on windows HOT 5
- send example when using SAS tokens HOT 3
- Question on the compatibility with ubuntu 12.04 and RT Linux HOT 1
- receiver not working HOT 1
- client crashes during internal server errors on event hub
- EVENTHUBCLIENT_DATA_SIZE_EXCEEDED is not used in the SDK
- The connection was inactive for more than the allowed 300000 milliseconds and is closed by container 'LinkTracker' HOT 4
- Accessing system properties HOT 5
- AzureEventHubs proxy support with amqp websockets HOT 5
- Send request failing when trying to sending Avro serialized string
- Update azure-c-shared-utility of tag v0.11 HOT 1
- SAS Token 401 unauthorized error HOT 1
- network availability check HOT 3
- Missing build dependency file /configs/azure_iot_build_rules.cmake
- Azure uamqp library: Eventhub crashes on sending data over 1MB HOT 5
- Crash: V0.12.0:Eventhub_sample:send crashes on using sastoken connection. HOT 1
- How to Pass the message received to the user
- This repo is missing important files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-event-hubs-c.