curl: (35) Encountered end of file --ERROR

unawatuna
Getting this all day. What could be the issue ?
  • unawatuna
    unawatuna edited November 2017
    @sujith @Kailash
    Please help
  • unawatuna
    unawatuna edited November 2017
    Its coming on passing the following curl in shell:

    curl --compressed "https://api.kite.trade/orders?api_key=${API_KEY}&access_token=${ACCTOK}"
  • tonystark
    Hi @unawatuna,

    Can you try curl --compressed "https://api.kite.trade/orders?api_key=${API_KEY}&access_token=${ACCTOK}" --verbose and post the response here?
  • unawatuna
    sure. let me try
  • unawatuna
    @ajinasokan

    Trying 103.28.140.94...
    * Connected to api.kite.trade (103.28.140.94) port 443 (#0)
    * Initializing NSS with certpath: sql:/etc/pki/nssdb
    * CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
    * NSS error -5938 (PR_END_OF_FILE_ERROR)
    * Encountered end of file
    * Closing connection 0
    curl: (35) Encountered end of file
  • tonystark
    Hi @unawatuna,

    It seems there is some issue with SSL on your machine. Can you give us more information like:

    Your Operating System
    OS Version
    OS Architecture
    Are you able to open https://kite.trade in your browser?
  • unawatuna
    unawatuna edited November 2017
    @ajinasokan
    Its running from AWS - Amazon Linux AMI
    Local Machine is Mac OS Sierra,
    Kite.trade is opening here on my browser.
  • tonystark
    Hi @unawatuna,

    If you are using AWS it is better to check with Amazon because we couldn't find any issue with our SSL connections. Also, I would suggest you try with an Ubuntu image instead of Linux AMI to check if that makes any difference.
  • unawatuna
    Hi @ajinasokan , I figured this problem. It is happening due to expiry of tokens, it seems.
    Can I have multiple login sessions for my account activated at the earliest please ?
    user ID: DM4385

    Kindly close this thread as the problem is resolved due to tokens.

    Thanks
  • tonystark
    Hi @unawatuna,

    You can have multiple login sessions. But you should be using Kite for monitoring purposes. If you log in to Pi or Nest your tokens will expire.
  • sujith
    @unawatuna,
    If you log out of any platform then you are logged out everywhere.
  • unawatuna
    HI @sujith and @ajinasokan , I have been on this platform since inception and have never had this issue, until now. On logging in through kite web session (kite.zerodha.com) , there is a token issue and the algo stops.
    Please look in to this and if possible, arrange for multiple log ins. I have been observing it since the last week.
  • sujith
    @unawatuna,
    Can you give us exact steps to reproduce from logging in from your app to logging in to Kite?
    I will try to reproduce.
Sign In or Register to comment.