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
I trying to implement Etebase on my application but I'm getting stuck on etebase_client_new function which throws ETEBASE_ERROR_CODE_MSG_PACK.
I would know in which case this exception is thrown ?
Also, I would know what is the purpose of the first argument const char *client_name of the function ?
client_name: should be for error messages, but also user agent for the http request.
msgpack error: means that serializing (or more likely deserializing) the request failed. Most likely because it's not actually an etebase server you are connecting to.
Also, the code is wrong. You should only check the error code if client is NULL. If the previous function did not return null, the value of err is undefined.
Thank you for your answer !
I'm currently working on an API reference, only for C/C++ for now. I will modify the doc according to your comment.
So, it would be nice if we could work together to develop this API reference, because for example it's almost impossible for me to know what exceptions could throw a function because I have to guess it. I've opened a pull request etebase-docs#27
I trying to implement Etebase on my application but I'm getting stuck on
etebase_client_new
function which throwsETEBASE_ERROR_CODE_MSG_PACK
.I would know in which case this exception is thrown ?
Also, I would know what is the purpose of the first argument
const char *client_name
of the function ?Here is my code :
Thank you
The text was updated successfully, but these errors were encountered: