grpc_google_default_credentials_create does assert

29 views
Skip to first unread message

bas.a...@booking.com

unread,
Jun 13, 2017, 5:02:59 AM6/13/17
to grpc.io
Hi!

Trying to create a simple perl (connected to c) program that talks to google, I'm trying this:

#include <grpc/grpc.h>                                 
                                                       
int main(void) {                                       
    grpc_init();                                       
    grpc_google_default_credentials_create();          
}      
                                                

gcc main.c -lgrpc
./a.out


Which does this:
E0613 11:00:43.217938698   19490 sync.c:118]                 assertion failed: prior > 0

Which according to the code means a reference issue.

What am I doing wrong? http://www.grpc.io/grpc/core/grpc__security_8h.html#a68183d792830190c3e14504557d57ad7 doesn't give a lot of hints...

Thanks!
Bas

bas.a...@booking.com

unread,
Jun 13, 2017, 7:12:58 AM6/13/17
to grpc.io
In the meanwhile, by reading other project I found out we need to create a context before we call this function, so my question would be, where can I find this, as mentioned the reference docs don't give a lot of hints.
Reply all
Reply to author
Forward
0 new messages