postman: You need to enable JavaScript to run this app

47,701

Solution 1

I spent some times pondering on this trepidation.. and then suddenly i realized what was going on..

  1. the endpoint does not exist, it could be a misspelling
  2. not in the same directory as you expect it to be, try adding or removing "/" at the beginning of the url, particularly if you don't specify the hostname, i.e. fetch('getusername') is different from fetch('/getusername') . . This acceptable in development but NOT when already deployed, it points to different path.
  3. the endpoint may be working fine in the Development, but somewhere within in the Production/Staging, it generated some exception.

Solution 2

I don't think that POSTMAN is capable of executing JavaScript in its console. Try doing the same in the web browser it will work (You won't see this error message).

Share:
47,701
Hamid Shoja
Author by

Hamid Shoja

If you want to go fast, go alone. If you want to go far, go together JS Developer: (React JS, React Native , Node JS,...) Linkedin: https://www.linkedin.com/in/hash86/ Articles: https://dev.to/hshoja

Updated on December 05, 2020

Comments

  • Hamid Shoja
    Hamid Shoja over 3 years

    I've got a new API from the backend team in a new project, when I call the api it returns "you need to enable java...", whereas I had used Postman for another project before... is it related to api, server or something else?

    enter image description here