A
A
Alikhan2021-11-19 10:34:02
JavaScript
Alikhan, 2021-11-19 10:34:02

What to do if fetch does not work when sending a get request to NodeJS?

What to do if an error is thrown when using the global fetch function to send a get request to the site.
(NodeJS)
619753635d13b850378842.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex_mos, 2021-11-19
@Alex_mos

fetch runs on the client. To work in nodejs, you need to use packages or libraries
, for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question