not receiving updates on postback URL

rediffpankaj_libra
Hi,
I added https URL in postback URL field of app but I am not getting any messages in my app. I tested locally and I received but not getting order update notifications. Can you please help.
  • rediffpankaj_libra
    Hi Rakesh,
    I have set "https://3.109.197.236/kite_feed" in my zerodha kite app and expecting data in python flask app. I tested manually sending data from above URL and its working, however, I didn't receive anything when I placed any order from API and those were completed. What am I missing here?
  • sujith
    It seems like the endpoint is not reachable.
  • rediffpankaj_libra
    This is what I am using sujith. 3.109.197.236 is my public IP. what could be the issue here. I am using self signed cert and pem files. while I am getting request on other flask app on the same server, not getting anything from kite.

    @app.route('/kite_feed', methods=['POST'])
    def kite_live_feed():
    print ("Invoked by kite feed")
    logging.info ( "------- Data from Kite starts -------" )
    logging.info (request.json)
    logging.info ( "------- Data from Kite ends -------" )
    postback_raw = request.get_data()
    logging.info ("postback_raw : " % postback_raw)
    logging.info ( "------- Data from Kite ends again -------" )
    if request.method == 'POST':
    return 'success', 200
    else:
    abort (400)
  • rediffpankaj_libra
    Nevermind. It worked with a local tunnel. But, in case you can help why its not working with a public IP and self signed certificate would be good to know.
  • sujith
    You can check out this article.
Sign In or Register to comment.