Unable to connect #91
Unanswered
shawn-dev12
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
xbbg/xbbg/core/conn.py
Line 27 in 2d4b503
Pretty new to developing with blp api and trying to get SAPI to work. I am running connect with the following:
session=blp.connect(server_host="XX",
auth_method='manual',
user_id=my_uuid,
ip_address=ip where bbg is logged in
app_name='app' #?)
Unfortunately getting the following:
18060 ERROR blpapi_sessionimpl.cpp:2424 blpapi.session.{1} Failed to start session: Failed to generate token
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2022.2.4\plugins\python-ce\helpers\pydev\pydevd.py", line 1496, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm Community Edition 2022.2.4\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:\Users\ShawnYin\PycharmProjects\PyGhisallo\tests\bbg_tests.py", line 7, in
session=blp.connect(server_host="20.106.202.82",auth_method='manual',user_id='31502277',ip_address='192.168.0.193',app_name='lapp')
File "C:\Users\ShawnYin\anaconda3\envs\GhisalloResearch\lib\site-packages\xbbg\core\conn.py", line 77, in connect
return bbg_session(sess=blpapi.Session(sess_opts))
File "C:\Users\ShawnYin\anaconda3\envs\GhisalloResearch\lib\site-packages\xbbg\core\conn.py", line 120, in bbg_session
globals()[con_sym] = connect_bbg(**kwargs)
File "C:\Users\ShawnYin\anaconda3\envs\GhisalloResearch\lib\site-packages\xbbg\core\conn.py", line 97, in connect_bbg
else: raise ConnectionError('Cannot connect to Bloomberg')
ConnectionError: Cannot connect to Bloomberg
Appreciate any help possible, or if I am not using this function as intended. I assume after calling the above I can use blp functions as usual.
Beta Was this translation helpful? Give feedback.
All reactions