Rblpapi icon indicating copy to clipboard operation
Rblpapi copied to clipboard

Server Api connection string

Open vikramgopinath95 opened this issue 1 year ago • 3 comments

Hi ,

I'm trying to connect to a SAPI server that my firm has. I have the server details but unable to connect through with this connection string.i have anywhere licence.

Blpconnect(getoption("blpHost","localhost"),port =8194L) Blpauthenticte(uuid="myuuid", IP.address="mySAPIserverdns")

I get error emptyauthOption string and error with blptokengenerator.cpp:120.

Tried out many things, reaching out as last resort. Appreciate any help on this.

Thanks Vikram

vikramgopinath95 avatar Mar 20 '24 13:03 vikramgopinath95

Are you sure you're connecting to the SAPI server? The specification you're using for the host parameter seems likely to end up on your local machine, which would be a desktop API instance.

Could you possibly paste the exact console input/output? That might be helpful.

johnlaing avatar Mar 21 '24 14:03 johnlaing

Thanks for your response, Attached input and output. IMG20240321195408~2 IMG20240321195422~3

I usually don't have an issue with using the DAPI .

vikramgopinath95 avatar Mar 21 '24 14:03 vikramgopinath95

It's hard to know for sure, but you may be getting tripped up by setting isAuthId = TRUE. From the docs:

isAuthId A logical indicating whether to interpret the uuid as an authId for authenticating a user with a B-PIPE application. appName If isAuthId is TRUE, this is a character string associated with the B-PIPE application name. This will be the same appName used by blpConnect(). If isAuthId is FALSE, this will be ignored.

It doesn't sound like you're using B-PIPE, so isAuthId should be FALSE. The error about empty authOptions would be consistent with the wrong value here along with appName = NULL

johnlaing avatar Mar 21 '24 14:03 johnlaing