☰
Login
Signup
Home
›
API clients
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
14K
All Categories
0
Incidents
157
Node JS client
40
Go client
794
.Net API client
383
Kite Publisher
537
.Net / VBA / Excel (3rd party)
462
Algorithms and Strategies
1K
Java client
1.1K
API clients
406
PHP client
4K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
January 29
sujith
January 29
pannet1
January 29
Matti
January 29
AQD468
January 29
rakeshr
sometimes historical API is returning html garbage like below
AQD468
January 29
in
API clients
Unknown Content-Type (text/html; charset=UTF-8) with response: (b'<!DOCTYPE html>Just a moment...*{box-sizing:border-box;margin:0;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%;color:#313131;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}body{display:flex;flex-direction
246fce87-7687-4475-a714-5c264f0d11ec.jpg
440.4K
rakeshr
January 29
Can you paste the complete API request log/parameter here?
BTW, it doesn't look like you are using an
official Python client
.
AQD468
January 29
of course i am using the official client but with my wrapper code. i will try and get the log for you.
Matti
January 29
This looks like Cloudflare is blocking your request and rendering a challenge dialog.
pannet1
January 29
@Matti
How to make this go away.
sujith
January 29
@pannet1
@AQD468
,
Are you sure, you are using the Kite Connect endpoints? Can you enable debug logs and send the complete stacktrace?
pannet1
January 29
@sujith
,
yes, using the official python client and just certain convenient function wrapper around that. never coded any url on our own.
ps: noted that subsequent calls are passing incorrect (nested dictionary) as params. fixed it. will let you know with debug logs if the issue repeats.
thanks
@rakeshr
@Matti
Sign In
or
Register
to comment.
BTW, it doesn't look like you are using an official Python client.
Are you sure, you are using the Kite Connect endpoints? Can you enable debug logs and send the complete stacktrace?
yes, using the official python client and just certain convenient function wrapper around that. never coded any url on our own.
ps: noted that subsequent calls are passing incorrect (nested dictionary) as params. fixed it. will let you know with debug logs if the issue repeats.
thanks @rakeshr @Matti