Maran1947/Stockify

Error while refreshing the gainer and loser data also the search function is not working

Opened this issue · 4 comments

SyntaxError: Unexpected token '<', ")
at parseJSONFromBytes (node:internal/deps/undici/undici:4747:19)
at successSteps (node:internal/deps/undici/undici:4718:27)
at fullyReadBody (node:internal/deps/undici/undici:1433:9)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async specConsumeBody (node:internal/deps/undici/undici:4727:7)
at async module.exports.get_and_save_gainers_loosers (C:\Users\DELL\Desktop\Stockify-main\backend\controllers\analysis\AnalysisController.js:14:30)

Have you managed to resolve the issue? Is your search function now operational?

No not yet

Does your Gainer&Looser function work? Mine is functioning correctly.

Sometimes, the NSE API sends HTML, which is causing this error to occur.