☰
Login
Signup
Home
›
Node JS client
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
14.4K
All Categories
0
Incidents
169
Node JS client
47
Go client
817
.Net API client
393
Kite Publisher
541
.Net / VBA / Excel (3rd party)
473
Algorithms and Strategies
1K
Java client
1.1K
API clients
408
PHP client
4.2K
Python client
355
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.5K
General
In this Discussion
3:56AM
dhrutikpatel
getMFHoldings API call broken due to content-type error
dhrutikpatel
July 6
in
Node JS client
When calling the `getMFHoldings()` method from the Kite Connect SDK in the following endpoint:
```js
app.get("/api/v1/mutualfunds", ensureToken, async (req, res) => {
try {
const kc = getKiteClientWithToken();
const mfHoldings = await kc.getMFHoldings();
res.json(mfHoldings);
} catch (err) {
console.error("❌ Error fetching mutual funds:", JSON.stringify(err, null, 2));
res.status(500).send("Failed to fetch mutual funds");
}
});
```
the request results in the following error:
```
{"error_type":"DataException","message":"Unknown content type (application/json;charset=utf-8) with response: ([object Object])"}
```
dhrutikpatel
3:56AM
@sujith
Sign In
or
Register
to comment.