ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

Fetch api in node


  • Please log in to reply
Fetch api in node

#1

singhsaab
singhsaab
    Offline
    0
    Rep
    2
    Likes

    Lurker

Posts: 7
Threads: 2
Joined: Oct 23, 2019
Credits: 0
Four years registered
#1

Hello guys, I am trying to fetch an api from other server in node js and its success on localhost. when i fetch that api from localhost (from my computer) it fetch right and working file link. but when I deploy that code in heroku, AWS, google cloud or any other server, it fetch but when i open it it give 404 error.

can any one help me with that


  • 0

#2

OverseerOne
OverseerOne
    Offline
    1
    Rep
    7
    Likes

    Member

  • PipPipPip
Posts: 62
Threads: 4
Joined: Jun 09, 2021
Credits: 0

Two years registered
#2

You are probably better off asking these types of questions on a website like StackOverflow, it could be possible that AWS is blocking outgoing requests for some reason.


  • 0


 Users browsing this thread: