Navigation

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

    HTTP Status 500 – Internal Server Error

    Test
    4
    10
    50
    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.
    • S
      StocksDeveloper last edited by

      Please let us know what happened today, similar error had happened few days back as well.

      Error:

      <title>HTTP Status 500 – Internal Server Error</title>
      

      Many clients are affected.

      Please investigate and have a permanent fix, this is affecting your reputation as a Broker.

      Thanks,
      Stocks Developer

      C A 2 Replies Last reply Reply Quote 0
      • C
        c_harish @StocksDeveloper last edited by

        @StocksDeveloper @admin
        we are also facing this and is happening very often in past few weeks. we are frustrated.

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

          Hi @StocksDeveloper we were going through the network issues our team has fixed it. Please let us know if you are still facing issue.

          S 1 Reply Last reply Reply Quote 0
          • S
            StocksDeveloper @admin last edited by

            @admin said in HTTP Status 500 – Internal Server Error:

            network

            Thank you @admin ... appreciate you taking the responsibility and tackling the problem head on.

            Please keep us updated about the permanent fix and measures taken to avoid recurrence of this issue.

            1 Reply Last reply Reply Quote 0
            • L
              lakshmi_73 last edited by lakshmi_73

              Traceback (most recent call last):
              File "/root/AlgoTrading/common/Angel.py", line 125, in get_order_details
              response_data = self.angel_obj.orderBook()
              File "/usr/local/lib/python3.6/site-packages/smartapi/smartConnect.py", line 318, in orderBook
              orderBookResponse=self._getRequest("api.order.book")
              File "/usr/local/lib/python3.6/site-packages/smartapi/smartConnect.py", line 223, in _getRequest
              return self._request(route, "GET", params)
              File "/usr/local/lib/python3.6/site-packages/smartapi/smartConnect.py", line 192, in _request
              content=r.content))
              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>'

              @admin getting this error continuously(more than 5mins) when I tried to fetch order book! It got solved after I restart my program. What is the reason for this??
              P.S: This error affected all my algos! Please resolve this and provide the reason for this issue.. so that we can include such exceptions in our code!
              @StocksDeveloper @c_harish

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

                HI @lakshmi_73 we have fixed this now.

                L 1 Reply Last reply Reply Quote 0
                • L
                  lakshmi_73 @admin last edited by

                  @admin Thanks admin... But why this issue happened?
                  If we know reason we can improve our code to defend this error.

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

                    Hi @lakshmi_73 we will update you the reason for this after coordinating with the team.

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      lakshmi_73 @admin last edited by

                      @admin ok thanks 🙂

                      1 Reply Last reply Reply Quote 0
                      • L
                        lakshmi_73 last edited by lakshmi_73

                        @admin Again today got same error
                        2021-06-16 14:50:02 : ERROR : [Angel:160] :
                        Traceback (most recent call last):
                        File "/root/AlgoTrading/common/Angel.py", line 139, in get_order_details
                        response_data = self.angel_obj.orderBook()
                        File "/usr/local/lib/python3.6/site-packages/smartapi/smartConnect.py", line 318, in orderBook
                        orderBookResponse=self._getRequest("api.order.book")
                        File "/usr/local/lib/python3.6/site-packages/smartapi/smartConnect.py", line 223, in _getRequest
                        return self._request(route, "GET", params)
                        File "/usr/local/lib/python3.6/site-packages/smartapi/smartConnect.py", line 192, in _request
                        content=r.content))
                        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>'

                        Error happened for all kind of requests...got this while fetching order book and login also..
                        Later after 1 min it was fine.
                        This is really causing issues... why is this happening??

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