mock-json-server icon indicating copy to clipboard operation
mock-json-server copied to clipboard

Server returned HTML instead of JSON

Open MCakrt opened this issue 4 years ago • 0 comments

Describe the bug I installed and rand mock-json-server as described in the documentation. However, when I access http://127.0.0.1:8000/, I got some HTML instead of JSON: https://gist.github.com/MCakrt/726803cb6e86f535456a437f32710a68 Furthermore http://127.0.0.1:8000/home does not work, I get "Cannot GET /home"

Expected behavior I expected mock-json-server to return the JSON file I provided.

Desktop:

  • OS: Windows 10 OS Version 2009 (Build 19042.746)
  • Google Chrome | 88.0.4324.146 (Official Build) (64-bit) (cohort: Stable)
  • node.js version 14.15.4
  • npm version 6.14.10

MCakrt avatar Feb 08 '21 09:02 MCakrt