Lol at the judgmental look you gave us at 46:08 when you said "its the body we are going to want to insert .. (pause)...." Hey, its not our fault! The internet made us all this way.
I am learning JavaScript, this project is of great help to understand the actual working. Thanks a ton dear for helping me in my journey ❤❤❤❤ love & peace to you 😇😇😇😇
if anyone is getting a Access-Control-Allow-Origin error in 1:07:45 you just need to add to your server.js file app.use(cors({ origin: '*' })); leave the * as is or change it to your 'localhost:8000/flights'
Hey guys, if you start getting a weird "status code 500" error and the API data just stops being retrieved, there's a chance there's nothing wrong with your code and the API itself is just down. Nothing really to do but wait for it to come back online.
those who facing issue of typeerror:cannot find properties undefined try this may it will work i just removed the .default from the axios and it's working try this out const axios = require('axios') instead of const axios= require('axios'). default
I'm getting this error in the second project at 1:04:22, instead of the flights. TypeError: Cannot read property 'request' of undefined at /Users/blabla/WebstormProjects/flightWidget1/server.js:18:11 The line in question is: axios.request(options).then(function (response) { But that's part of the code snippet from the API, what could it be?
@@prathamvyas8342 I moved const axios = require("axios") from the top of the file in server.js into the app.get above the const options = { Now I see the data in the WebStorm Terminal. However, localhost:8000/flights keeps loading forever.
For the pure JS project, the problem with the time display when adding a new randomly generated flight is due to displayHour being set equal to hour before hour is incremented. Updating the generateTime() function as shown below fixes this bug: function generateTime() { hour++ if (hour >= 24) { hour = 1 } const displayHour = (hour < 10) ? "0" + hour : hour return displayHour + ":" + generateRandomNumber(5) + generateRandomNumber() }
Hey guys, can someone explain why she uses server.js to call that airport api., and then from script uses fetch to get that data? Can u do it without server, just (in the script) fetch(airport.api). Thank you very much :)
Thanks so much for this video! I copied the code base exactly and I am getting an issue with: const word = Array.from(flightDetails[flightDetail]) It is saying: TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) Any ideas as to why?
Thanks so much for all your kind words and support! Hope you can check out my channel too for some cool projects 🎉
my mentor ♥️🙏🏻
Lol at the judgmental look you gave us at 46:08 when you said "its the body we are going to want to insert .. (pause)...."
Hey, its not our fault! The internet made us all this way.
You’re amazing this tutorial really helped me understand API’s thank you!
Targaryens now tracking planes hmm
😂
They’ve evolved
😂🤣
💀
That's to avoid collisions between dragons and aircrafts
I am learning JavaScript, this project is of great help to understand the actual working. Thanks a ton dear for helping me in my journey ❤❤❤❤ love & peace to you 😇😇😇😇
if anyone is getting a Access-Control-Allow-Origin error in 1:07:45 you just need to add to your server.js file
app.use(cors({
origin: '*'
}));
leave the * as is or change it to your 'localhost:8000/flights'
Thanks so much for your efforts ...
Hey guys, if you start getting a weird "status code 500" error and the API data just stops being retrieved, there's a chance there's nothing wrong with your code and the API itself is just down. Nothing really to do but wait for it to come back online.
Hey Steve, any tips on how I could check whether the issue is with the API rather my code ?I'd really appreciate it.
Just Fantastic 😍 Excellent video!🔥🔥🔥
That autocomplete is really nice. Aggressive but nice!
those who facing issue of typeerror:cannot find properties undefined try this may it will work
i just removed the .default from the axios and it's working try this out
const axios = require('axios')
instead of
const axios= require('axios'). default
It worked. Thank you bro!
Lanisters send their regards
Ania dziękujemy! Jesteś the best :)
FreeCodeCamp rocks 😎👍 So good quality !!! Thank you very much, Anna! We really appreciate it!❤
I'm getting this error in the second project at 1:04:22, instead of the flights.
TypeError: Cannot read property 'request' of undefined
at /Users/blabla/WebstormProjects/flightWidget1/server.js:18:11
The line in question is:
axios.request(options).then(function (response) {
But that's part of the code snippet from the API, what could it be?
same problem
@@prathamvyas8342 I moved const axios = require("axios") from the top of the file in server.js into the app.get above the const options = {
Now I see the data in the WebStorm Terminal.
However, localhost:8000/flights keeps loading forever.
@@MW-ze9jm have you solved the problem?
@@raihanr2985 not really, data showed up in my terminal but it kept loading on the localhost forever, so I gave up.
Ugh, having the same problem. Req is declared but it's value is never read
Great job!
I haven't seen the ?.map() notation before. What exactly does it do and what is it called? I can't seem to find much on Google.
For the pure JS project, the problem with the time display when adding a new randomly generated flight is due to displayHour being set equal to hour before hour is incremented. Updating the generateTime() function as shown below fixes this bug:
function generateTime() {
hour++
if (hour >= 24) {
hour = 1
}
const displayHour = (hour < 10) ? "0" + hour : hour
return displayHour + ":" + generateRandomNumber(5) + generateRandomNumber()
}
Great Course Thanks
Thanks!
Hey guys, can someone explain why she uses server.js to call that airport api., and then from script uses fetch to get that data? Can u do it without server, just (in the script) fetch(airport.api).
Thank you very much :)
Good one, but why you remove all semicolons?
We know in JS semicolon is not mandatory but if it would be there then what will be the issue?
Thanks.
Is there an similar API that doesn't take your card details?
I came here for her❤️❤️❤️
Could make a beef programming language video
Thanks so much for this video!
I copied the code base exactly and I am getting an issue with:
const word = Array.from(flightDetails[flightDetail])
It is saying: TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
Any ideas as to why?
did you fix the issue, if so could you help me with it?
regular expressions course plss
can working with rapido api
Kinda cool, but it's a long way off a split flap emulator.
Why did I read the thumbnail as "3 ways to fight midget"
Cool❤🖒
Fourth...great video by the way!
♥️🌷
Hello.
👌👌🙏🙏💯
Drakaryyysssss
10th
first double digit
first
no am the first one
Pov you cane her but your not interested in coding
ania kubOŁ lol
COBOL
ona wymiata w kodzie
second
8th 😁