How to get localhost server to return JSON instead of HTML in node.js

后端 未结 0 1487
天涯浪人
天涯浪人 2021-01-21 08:01

I receive the following error: SyntaxError: Unexpected token < in JSON at position 6 at JSON.parse ()

I understand that the server is returning HTML, when the

相关标签:
回答
  • 消灭零回复
提交回复
热议问题