unable to connect


  • 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 ?


  • Hi @pt4rh3 said in unable to connect:

    do i have to import both of these?
    smartApiWebsocket
    webSocket

    yes

1 out of 2