2.3 HTTP Post Request with fetch() - Working with Data and APIs in JavaScript

2.3 HTTP Post Request with fetch() - Working with Data and APIs in JavaScript

The Coding Train

4 года назад

336,808 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Andrey Kravchenko
Andrey Kravchenko - 31.08.2023 23:51

Why I can have error with require?

Ответить
Benjamin Nguyen
Benjamin Nguyen - 29.05.2023 08:19

Thanks 🙂

Ответить
PCS Entertainment
PCS Entertainment - 08.05.2023 02:27

It's a beautiful day in the neighborhood, a beautiful day in the neighborhood, won't you be, my neighbor... sorry, love your tutorials but you reminded me of a childhood memory within the first 1 second of this video... LOL! had to comment (Mr Rogers if anyone remembers [Canadian TV show]). lol

Ответить
naji hashim
naji hashim - 23.04.2023 18:17

how to receive formdata in node js. without fetch or without express js

Ответить
Ruslan Rustemov
Ruslan Rustemov - 03.04.2023 19:36

Hocam gülüb eyleneceğinize şu geolocation nereden geldi, 18ci satıra kadar ne yazmışsınız onu söyleyin

Ответить
unstopology
unstopology - 16.02.2023 21:38

I hate arrow functions. My brain is too used to the old way. Anyway, These tutorials are beyond great. It's rare that concepts are broken down into easily understandable parts. Most of the time coding jargon is used to describe coding concepts, which is really counterintuitive.

Ответить
Kaka Kaka
Kaka Kaka - 06.12.2022 15:46

Copied and paste the same exact code however I keep getting this error method not allowed and it refers to fetch ( api, options) can anyone help with this plz

Ответить
YourNerdiness
YourNerdiness - 03.12.2022 12:18

I cannot thank you enough for this, it has helped me with my personal projects so much.

Ответить
Younes Raymond
Younes Raymond - 22.11.2022 23:50

guys when i make request.body i get on server side this :
listening at 3000
i got a request
{} i receive object but its a empthy object without lat and lon
can you help me please

Ответить
SAIKAT DAS
SAIKAT DAS - 18.11.2022 10:54

Realllly man... Tonsss of thanks❤️❤️❤️❤️❤️🙇🙇.. after browsing through the internet, after going through several post cannot figure out this simple feature, that u explain in this short video.. i am really glad 😊

Ответить
Nicolas Santome
Nicolas Santome - 14.11.2022 01:27

I have been researching for the last hour and as many of the people commenting I can't get passed ERR_ABORTED 405 (Method Not Allowed).
Not sure I can get a solution as I browsed the fisrt 2 pages of google search results and there is no clear solution.
It is frustrating.

Thanks for the course Daniel

Ответить
flebedev99
flebedev99 - 12.11.2022 09:26

You make everything so understandable!

Ответить
Lijoe Peter
Lijoe Peter - 31.10.2022 13:23

I didnt know that express has json method and i was struggling for 12 hrs as it passes "Converting circular structure to JSON" error.

Ответить
Dilan Barham
Dilan Barham - 13.10.2022 01:14

Thank you. you saved my life.

Ответить
Mike M
Mike M - 07.10.2022 06:09

great tutorial but lost me on the await and async

Ответить
Peter Parker
Peter Parker - 06.10.2022 14:35

This is guy is so damn energetic. Makes things fun

Ответить
Tayyab Shahzad
Tayyab Shahzad - 20.09.2022 09:19

How can we test this post api in PostMan

Ответить
Kristof Van Herzeele
Kristof Van Herzeele - 26.08.2022 14:24

Very nice video, I searched a long time for a video like this. Thanks!

Ответить
Lu
Lu - 11.08.2022 05:46

You’re amazing at teaching 👏👏👏

Ответить
Aarón Argotte López
Aarón Argotte López - 09.08.2022 17:47

Thanks!

Ответить
Erick Villanueva
Erick Villanueva - 29.07.2022 07:15

Thank You!!!!!!

Ответить
Siddharth Chabukswar
Siddharth Chabukswar - 22.07.2022 09:05

Great tutorial and explaination! Thanks! That space indentation makes me uncomfortable though.

Ответить
darkagent94
darkagent94 - 20.07.2022 17:39

That was insanely helpful...

Ответить
George Jacob
George Jacob - 13.07.2022 06:41

I was wondering if I could ask you a question about the fetch API. I am doing a post method using the fetch API on the client side. However, when I deploy the U app through Google sheets, I get the following error:
(Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.

This is my code:
fetch(url, {
method: 'POST', // *GET, POST, PUT, DELETE, etc.
mode: 'cors', // no-cors, *cors, same-origin
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
credentials: 'same-origin', // include, *same-origin, omit
headers: {
'Content-Type': 'application/json'
// 'Content-Type': 'application/x-www-form-urlencoded',
}

Ответить
Epic Trailer Music
Epic Trailer Music - 08.07.2022 16:46

The way you explain things makes me fall in love with coding. thank you so much.

Ответить
Komorebi Entertainment
Komorebi Entertainment - 25.06.2022 08:16

Hey, I am using webpack to run my public files. How do I work with Express js to run the data server? Can I do it?

Ответить
neeraj kanojiya
neeraj kanojiya - 19.06.2022 14:11

Excellent!!!

Ответить
Himanshu dewangan
Himanshu dewangan - 07.06.2022 02:04

Thankyou so much it is very helpful🎉

Ответить
Joel Mejia
Joel Mejia - 19.05.2022 10:16

JS: {ELI5 : mode}

Ответить
Rodney Rau
Rodney Rau - 17.05.2022 17:45

The video and series is the very best!! I have hit one error I cannot resolve. On the client, line 28 'fetch('/api', options)' I am getting an error => 'Failed to load resource: the server responded with a status of 405 (Method Not Allowed)'. I appreciate any help.

Ответить
Salaheddin AbuEin
Salaheddin AbuEin - 08.05.2022 03:20

Thank you so much, professor 🥰

Ответить
A
A - 01.05.2022 16:12

Wow I did not know how much I needed this! You actually make learning fun! Thank you so much :) My classes are very dry and boring in comparison.

Ответить
marshall bruce
marshall bruce - 01.05.2022 06:25

after days of post tutorials finally i understood .thanks bro

Ответить
TheJP100
TheJP100 - 25.04.2022 16:53

just what I was looking for, thank you for this video!

Ответить
Mateusz Szumilo
Mateusz Szumilo - 13.04.2022 09:22

amazing video man, its exactly what i was looking for 👍❤️

Ответить
McDuck 37
McDuck 37 - 11.03.2022 04:06

how can we send variable from server to html client side?

Ответить
Joshua Carpentier
Joshua Carpentier - 06.03.2022 03:38

Great video every time i re-watch I pick a little more

Ответить
BRP
BRP - 24.02.2022 17:02

I couldn´t make it work :/ im currently using express 4.16.1 and I can see the payload of my Post request in devtools, so I assume my data is getting to my server but it isn't populating the body :(

Ответить
Drakon Games
Drakon Games - 22.02.2022 13:57

so easy to understand. after so many hours of finding my mistake and failing you saved the day. thx sir

Ответить
Mridul Mittal
Mridul Mittal - 16.02.2022 14:36

thanks a lot sir

Ответить
v9turner
v9turner - 04.01.2022 10:10

Ah the Lat. and Long. of New York University.

Ответить
Daniel Rahmani
Daniel Rahmani - 30.11.2021 16:11

amazing tutorial . thanks

Ответить
Pildramania Programming
Pildramania Programming - 29.11.2021 17:50

Can you please send the font you work with

Ответить
Farzaneh Fallah pour
Farzaneh Fallah pour - 11.11.2021 00:38

i have some error
when i send request,it doesn't accept that and told:
app.listen is not a function
and express file have own app.listen
please help me :(

Ответить
freetobeyou
freetobeyou - 31.10.2021 23:43

Great clarity for a person who really struggles to comprehend concepts delivered by stackoverflow people, you put it visually, legibly and repeatedly so the audience can review, re-review at their own pace. Thank you for helping everyone.

Ответить
sayochi kun
sayochi kun - 30.10.2021 12:59

nice haircut.

Ответить
Carla Mannino
Carla Mannino - 26.10.2021 10:37

¡Gracias!

Ответить