Navigation

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

    Unable to fetch candleData

    NodeJS SDK
    3
    3
    31
    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.
    • K
      knbreddy last edited by knbreddy

      java.lang.NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(java.lang.String, okhttp3.MediaType)'
      	at com.angelbroking.smartapi.http.SmartAPIRequestHandler.createPostRequest(SmartAPIRequestHandler.java:305) ~[smartapi-java-1.0.0.jar:na]
      	at com.angelbroking.smartapi.http.SmartAPIRequestHandler.postRequest(SmartAPIRequestHandler.java:132) ~[smartapi-java-1.0.0.jar:na]
      	at com.angelbroking.smartapi.SmartConnect.generateSession(SmartConnect.java:171) ~[smartapi-java-1.0.0.jar:na]
      

      @admin I am getting above error while try to generate session using smartConnect.generateSession(<clientId>, <password>);

      Please check and fix this.

      Also I am getting json exception while getting candleData

      I had made temporary fix for candle data method, and now data is not coming from candleData method, getting below response

      {"data":[],"message":"SUCCESS","errorcode":"","status":true}
      

      if try to get same thing via postman its working fine, I am getting data as below.

      {
          "status": true,
          "message": "SUCCESS",
          "errorcode": "",
          "data": [
              [
                  "2021-04-01T09:15:00+05:30",
                  20.4,
                  20.4,
                  20.05,
                  20.05,
                  161
              ]
          ]
      }
      

      please check and fix above 3 issues.

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

        HI @knbreddy we have reported this we will update once fixed.

        P 1 Reply Last reply Reply Quote 0
        • P
          pulkit @admin last edited by

          @admin Hello, is the above issue with fetching candle data fixed?
          Still getting the error when calling candledata

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