Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Api connection string #389

Open
vikramgopinath95 opened this issue Mar 20, 2024 · 3 comments
Open

Server Api connection string #389

vikramgopinath95 opened this issue Mar 20, 2024 · 3 comments

Comments

@vikramgopinath95
Copy link

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
Copy link
Contributor

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
Copy link
Author

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

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

@johnlaing
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants