I used to be able to run scripts without errors, but lately have an issue with setting the app key. In particular I get the following error logging message:
Your code is very simple. It seems that you're facing to a very specific case that I can't explain. It could be caused by a mismatch in your Python environment with eikon versions. I also noted that your Eikon version isn't recent : 4.0.49 (versus 4.0.51)
It goes without saying that I have tried (several) times to restart my eikon application. I am a bit surprise that you "encourage me to look for other solutions", when In particular, if I am not mistaken, the links you provided me with, do not describe a way of solving the problem but only refer to checking the alerts tab.
Unfortunately the server 500 error is nonsensical. The suggestion to look for Alerts may have explained some issues in the backend causing this unexpected behaviour you are seeing. I’m assuming you are completely shut out. Can you send me your appkey? If you haven’t already, can you generate a new appkey and try that? I will continue my investigation. Thanks for your patience.
Hi Nick,
Thank you for coming back to me and opening a ticket. I have also tried to use a new App key, which unfortunately did not work. Is there a secure way to send you my app key? What do you mean when saying "completely shut out"? Is that something I would need to discuss with the sales representative?
Also, I believe that I have Eikon 4.0.52.
Adrien
Following error messages arn't critical:
2020-04-29 18:10:05,511 P[76044] [MainThread 76048] Response : 500 - {"code":500,"message":"Cannot find module \".\"","statusMessage":"Internal Server Error"}
2020-04-29 18:10:05,512 P[76044] [MainThread 76048] Port 9000 was retrieved from .portInUse file
2020-04-29 18:10:05,513 P[76044] [MainThread 76048] Try to handshake on url http://localhost:9000/api/handshake...
2020-04-29 18:10:05,517 P[76044] [MainThread 76048] Response : 400 - Handshake payload is invalid.
It's related to different connection attempts to the Eikon proxy for backward compatibility with all proxy versions.
What is important is to have the message:
2020-04-29 18:10:05,518 P[76044] [MainThread 76048] Set Proxy port number to 9000
That means the connection is successful.
In a second step, you have this exception :
return super(DesktopSession, self).close()
TypeError: super(type, obj): obj must be an instance or subtype of type
I understand it's reproduced all times.
Could you activate logs before the call to set_app_key and share the log (without user info like app_key) ?
(add
ek.set_log_level(5)
to have all levels)
Thank you for coming back to me and the explanation of the backward compatibility procedure.
Indeed, the exception is reproduced at all times. I have now followed your advice and activated the log with the extra log_level command (before the app key step) and get exactly the same log (and exception as above):
2020-05-04 08:37:54,663 P[76044] [MainThread 76048] Set App Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX