-
I'm having a hard time understanding the error output of this library, and I haven't been able to find it online. Here is a snippet of my code:
And here is the output:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
You might want to print errors with |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what the trucation issue is either, but that failure is almost certainly happening because you are passing apiEndpoint (which is set to "127.0.0.1:5679/api/endpoint" ) as your hostname. BIO_set_conn_hostname expects a hostname (and optional port), not a full url endpoint. |
Beta Was this translation helpful? Give feedback.
-
Try changing: const char *apiEndpoint = "127.0.0.1:5679/api/endpoint"; To: const char *apiEndpoint = "127.0.0.1:5679"; When you call: BIO_set_conn_hostname(bio, apiEndpoint); . Try to append the |
Beta Was this translation helpful? Give feedback.
I'm not sure what the trucation issue is either, but that failure is almost certainly happening because you are passing apiEndpoint (which is set to "127.0.0.1:5679/api/endpoint" ) as your hostname. BIO_set_conn_hostname expects a hostname (and optional port), not a full url endpoint.