Rblp / Rblpapi

R package interfacing the Bloomberg API from https://www.bloomberglabs.com/api/
Other
167 stars 75 forks source link

Server Api connection string #389

Open vikramgopinath95 opened 4 months ago

vikramgopinath95 commented 4 months ago

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

johnlaing commented 4 months ago

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.

vikramgopinath95 commented 4 months ago

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

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

johnlaing commented 4 months ago

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