Status code 400: Bad request on handshake url http://localhost:9000/api/handshake : {"code":400,"...

...message":"Application key is not valid."

Im trying to run CODEBOOK code in Refinitiv Workspace.And I am having trouble using both options:

i) ek.set_app_key('a5n...................4tu')

ii) ek.set_app_key('DEFAULT_CODE_BOOK_APP_KEY')





The error message is:

Status code 400: Bad request on handshake url http://localhost:9000/api/handshake : {"code":400,"message":"Application key is not valid.","stack":"Error: Application key is not valid.\n    at /opt/data-platform-proxy/node_modules/src/scripting-proxy-core/server/middlewares/handshake/handshake-application-key-check-middleware.ts:56:40\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","statusMessage":"Bad Request"}
Error on handshake url http://localhost:9000/api/handshake : DesktopSessionError(1, 'Status code 400: App key is incorrect')

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • juan.santanera
    Answer ✓
    It's working for me now. Looks like there was an update on PORT from 9000 to 9010

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @augusto_krappa

    Thanks for reaching out to us.

    Are you able to run the example code (__Examples__/01. Data Retrieval and Discovery/01 04. Eikon Data API/Eikon_Data_API__Get_Data.ipynb) in Codebook?

    1684290360046.png

  • I'm having the same issue, is there any update?

  • I am trying to run on the WEB now. It is working, but the connection is cut very soon. I load data for 300 companies and the code is stopping on the 8th.

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    @augusto_krappa

    Please share the code that you are using.

  • Juliane
    Juliane Newcomer

    I've been having the same issue as well (it worked after reinstalling at first, but now it has happened again). Is there any fix?

  • the code loops the income statement data for each company:

    "

    df, err = ek.get_data(

    instruments = [ticker],

    fields = ['TR.F.ASRIncomeStatement.fieldname','TR.F.ASRIncomeStatement','TR.F.ASRIncomeStatement.date','TR.F.ASRIncomeStatement.FCC'],

    parameters = {'Scale': 6, 'SDate': 0, 'EDate': edate,'Period':'FQ0', 'FRQ': 'FQ','AlignType':'PrelimOrPeriodEndDate','ConsolBasis':'Consolidated'}

    #fields = ['TR.F.ASRIncomeStatement(SDate=0,Period=FY0,Frq=FY,EDate=-9,Scale=6,AlignType=PrelimOrPeriodEndDate,ConsolBasis=Consolidated)']

    )"



  • The 400 error issue appeared back to me in the WEB version now.... Anyone knows what is happening? I think many people is having this problem.

  • s2439857
    s2439857 Newcomer

    Hi, this issue also persists on my side. Can anyone help? Do I need to use the desktop version?

  • Hi @augusto_krappa , @juan.santanera, @Juliane, @s2439857 ,

    Could you please let me know if the issue still persists? as I cannot replicate the issue. If so, I'm going to raise the technical support ticket for you so the technical support team can check on this.


  • Thank you so much for this information
  • Hi, it seems that the problem has been solved.

  • I could fetch news data via rdp desktop workspace using python but from 2 days back this error prevails. Is there again any update ? I even tried creating a new api key in app key generator but nothing gets fixed, unfortunately.

  • Hi @shreesharma ,

    Could you please provide the error message you got for further investigation?

    Moreover, the question with an accepted answer won't be monitored by the expert in the forum, so it's recommended to post the new question instead of commenting in the question with accepted answer.

    Thanks

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.