osparamatrix / ks-orderapi-python

47 stars 60 forks source link

ip address resolution issue #61

Open gxnt-samir opened 2 years ago

gxnt-samir commented 2 years ago

The getting started code is showing issue in resolving the ip address in client initiation time.

Exception has occurred: ValueError (note: full exception trace is shown but execution is paused at: ip_address) u'sbx.kotaksecurities.com' does not appear to be an IPv4 or IPv6 address File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/ipaddress.py", line 168, in ip_address (Current frame) address) File "/Users/sam/Desktop/KS/test.py", line 9, in consumer_key = "14eIIxjvTbZ5FgnkeGFDnJlFA7oa", ip = "66.22.97.52", app_id = "DefaultApplication", host = "https://sbx.kotaksecurities.com/apim")

need help.

raviudal commented 2 years ago

use 127.0.0.1 in place of that IP