Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    unable to connect

    Python SDK
    2
    2
    15
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pt4rh3 last edited by pt4rh3

      Re: Error while connecting

      I am getting this two errors when i try to connect

          raise JSONDecodeError("Expecting value", s, err.value) from None
      json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
      
      
       raise ex.DataException("Couldn't parse the JSON response received from the server: {content}".format(
      smartapi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b'<!doctype html><html lang="en"><head><title>HTTP Status 500 \xe2\x80\x93 Internal Server Error</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, 
      h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 \xe2\x80\x93 Internal Server Error</h1></body></html>'
      
      1. do i have to import both of these?
        smartApiWebsocket
        webSocket

      2. threaded option is not available in smartApiWebsocket ?

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @pt4rh3 last edited by

        Hi @pt4rh3 said in unable to connect:

        do i have to import both of these?
        smartApiWebsocket
        webSocket

        yes

        1 Reply Last reply Reply Quote 0
        • First post
          Last post