boarzVideosClipsStatistics

🎬Two points of contact

🎦
Featured in#️⃣EP 028 - Today's Broadcast
AllClipsEpisodesHas Blog PostZainThaneshKartikTorey
🎬
Krunchmaster Kartik
Build, Break & Fix
ZainboarKartikboar
🎬
Killing it
Special Edition: We don't stop until we get our code working
ZainboarKartikboar
🎬
Schooling in brown countries
Build,Break & Fix // Weekend two hour special
ZainboarKartikboar
🎬
Unprofessional Kartik
Build,Break & Fix // Weekend two hour special
ZainboarKartikboar
🎬
Brain Refresh
Build, Break & Fix // Setting a blog using Hugo and AWS Amplify
ZainboarKartikboar
🎬
Finger driven architecture
Build, Break & Fix // Working out Software design
ZainboarKartikboar
🎬
Fast food driven architecture
Build, Break & Fix // Working out Software design
ZainboarKartikboar
🎬
Can't be ashamed if there's never a first version
Build, Break & Fix
ZainboarKartikboar
🎬
Not a uni student
Build, Break & Fix
ZainboarKartikboar
🎬
Can't work, deploying
30 mins of deployment 😠 || 30 mins of coding 🥲
ZainboarKartikboar
▶️
Two points of contact
Today's Broadcast
ZainboarKartikboar
🎬
CORS exclusive lovin'
Today's Broadcast
ZainboarKartikboar
🎬
Sensible policy
Today's Stream
ZainboarKartikboar
🎬
Shoes in mouth
Today's Stream
ZainboarKartikboar
🎬
The code always wins
Buidl Break Fix
ZainboarKartikboar
🎬
Chicken curry in the brown way
Buidl Break Fix
ZainboarKartikboar
🎬
Finger memory practice
Build Break Fix
ZainboarKartikboar
🎬
See you later Kartik
Build Break Fix
ZainboarKartikboar
🎬
Keep your code looking sexy
Today's Broadcast
ZainboarKartikboar
🎬
Echo chamber Zain
Today's Broadcast
ZainboarKartikboar
🎬
And Kartik never got a job again...
Today's Broadcast
ZainboarKartikboar
🎬
Pilot? What even iz dat kind of fing
Today's Broascast
ZainboarKartikboar
🎬
Fish and Chips
Build - Break - Fix
ZainboarKartikboar
🎬
Backup career
Build - Break - Fix
ZainboarKartikboar
🎬
Professional background? Wat even iz dat?
Today's Broadcast
ZainboarKartikboar
🎬
Private mentorship group
Today's Broadcast
ZainboarKartikboar
🎬
Actually good job advice from Zain
Today's Stream
ZainboarKartikboar
🎬
What a classic!
Today's Stream
ZainboarKartikboar
🎬
Uber driver in training
Today's Stream
ZainboarKartikboar
🎬
Viewer burn
Today's Broadcast
ZainboarKartikboar
🎬
Time for a nap
Today's Broadcast
ZainboarKartikboar
🎬
A sniffer of a line
Today's Broadcast
ZainboarKartikboar
🎬
Slow Zain
Today's Broadcast
ZainboarKartikboar
🎬
No single point of failure
Today's Broadcast
ZainboarKartikboar
🎬
Gambling on bad logic
Today's Broadcast
ZainboarKartikboar
🎬
Estimated Time of New-Careers
Today's Broadcast
ZainboarKartikboar
🎬
Fake Nod
Today's Broadcast
ZainboarKartikboar
🎬
Investing in 'the brand'
NEW SETUP!!
ZainboarKartikboar
🎬
Hitting a brick
NEW SETUP!!
ZainboarKartikboar
🎬
Master of the green screen
NEW SETUP!!
ZainboarKartikboar
🎬
Logiclesstech
NEW SETUP!!
ZainboarKartikboar
🎬
Get him to the greenscreen
Today's Stream
ZainboarKartikboar
🎬
Change the digit to a number
Today's Stream
ZainboarKartikboar
🎬
The benefits of pair programming
Today's Broadcast
ZainboarKartikboar
🎬
Xs, the healthy choice
Today's Stream
ZainboarKartikboar
🎬
Xs vs mother
Today's Stream
ZainboarKartikboar
🎬
The beginning of the end of productivity
Today's Stream
ZainboarKartikboar
🎬
Unprofessional Zain
Today's Stream
ZainboarKartikboar
🎬
Blazing fast
Today's Stream
ZainboarKartikboar
🎬
Premature celebratory dance
Today's Stream
ZainboarKartikboar
🎬
Timeline slippage
Today's Stream
ZainboarKartikboar
🎬
Speed coding
Today's Stream
ZainboarKartikboar
🎬
Sorry I dont know that voice
Today's Broadcast
ZainboarKartikboar
🎬
Definition of done
Today's Broadcast
ZainboarKartikboar
🎬
Amway bites
Today's Broadcast
ZainboarKartikboar
🎬
A cool stream
Today's Broadcast
ZainboarKartikboar
🎬
Spooky Kartik
Today's Broadcast
ZainboarKartikboar
🎬
Water physics 101
Today's Stream
ZainboarKartikboar
🎬
Scrum master Zain
Today's Stream
ZainboarKartikboar
🎬
Zain applying his scrum master skills
Today's Stream
ZainboarKartikboar
🎬
Zain the blunderer
Today's Stream
ZainboarKartikboar
🎬
Healthier than other traditional drinks
Today's Stream
ZainboarKartikboar
🎬
Real headscratcha
Today's Stream
ZainboarKartikboar
🎬
Bracket blues
Today's Stream
ZainboarKartikboar
🎬
If statements are not good practice
Today's Stream
ZainboarKartikboar
🎬
Kappa Quality Code
Today's Stream
ZainboarKartikboar
🎬
Exciting switch statements
Today's Stream
ZainboarKartikboar
🎬
Switched-on hat
Today's Broadcast
ZainboarKartikboar
🎬
Functions, one of the big coding challenges
Today's Broadcast
ZainboarKartikboar
🎬
Break fast
Today's Broadcast
ZainboarKartikboar
🎬
Blood and breath pumping up
Today's Broadcast
ZainboarKartikboar
🎬
Wrong since day 1
Today's Broadcast
ZainboarKartikboar
🎬
Electronic waves
test
ZainboarKartikboar
🎬
RAWR coders
test
ZainboarKartikboar
🎬
Transit in Japawn
test
ZainboarKartikboar
🎬
Xs sponsorship
test
ZainboarKartikboar
🎬
Lame roars
test
ZainboarKartikboar
🎬
Setting up a suppository in Diagon Alley
test
ZainboarKartikboar
🎬
Background Diagon Alley
test
ZainboarKartikboar
🎬
Half speed zain
test
ZainboarKartikboar
🎬
One second penetration
test
ZainboarKartikboar
🎬
Top loading switches
test
ZainboarKartikboar
🎬
Making it rain with CodeBuild
test
ZainboarKartikboar
🎬
What is a sea cable?
Today's Stream
ZainboarKartikboarToreyboar
🎬
If statements are bad practice
Today's Broadcast
ZainboarKartikboar
🎬
Tomato fan
Today's Broadcast
ZainboarKartikboar
🎬
Strong intro
Today's Stream
ZainboarKartikboar
🎬
Impossible URL
Today's Stream
ZainboarKartikboar
🎬
Clever devs
Today's Stream
ZainboarKartikboar
🎬
Always CORS related problems
Today's Stream
ZainboarKartikboar
🎬
CORS headscratcha
Today's Stream
ZainboarKartikboar
🎬
Torres Strait Icelander people
Today's Stream
ZainboarKartikboarThaneshboar
🎬
Icelander or Islander?
Today's Stream
ZainboarKartikboarThaneshboar
🎬
Best Practices
101/200 Episodes
ZainboarThaneshboar
🎬
ROAR coders
105/200
ZainboarThaneshboar
🎬
Diagon Alley? What is that kind of fing?
112/200
ZainboarKartikboar
🎬
C.O.D.I.N.G
113/200
Zainboar
🎬
What's testing
115/200
ZainboarThaneshboar
🎬
CORS coders
115/200
ZainboarThaneshboar
🎬
Complimenting the wrong person
Today's Stream
ZainboarThaneshboar
🎬
Alt+F4 Zain
Today's Stream
ZainboarThaneshboar
🎬
Fixing and failing
Today's Stream
ZainboarThaneshboar
🎬
Brown is always better than white
AWS Websocket + DyanmoDb + Lambda
ZainboarThaneshboar
🎬
Wild street dogs
Today's Stream
ZainboarToreyboar
🎬
The more you know
How to Host Web App Using AWS S3, CloudFront and Route53
ZainboarThaneshboar
🎬
Inactive brain
How To Host Web App In AWS S3 with Custom Domain Using Route 53
ZainboarThaneshboar
🎬
No electricity in Bali
Today's Stream
ZainboarToreyboar
🎬
Francesco
Today's Stream
ZainboarToreyboar
🎬
Indian givers
Compare Hashed Passwords Using Bcryptjs
ZainboarToreyboar
🎬
Cold coffee, cold tea
Today's Stream
ZainboarToreyboar
🎬
Tough questions
Verify Passcode Saving Information to DynamoDB with NodeJs
ZainboarThaneshboar
🎬
Tandoor? Wat even iz dat kind of fing
Today's Stream
ZainboarThaneshboar
🎬
This is why you don't click ops
Today's Stream
ZainboarToreyboar
🎬
Bish Bash Bosh
Get Board Columns from Frontend to Backend NodeJS
ZainboarThaneshboarToreyboar
🎬
Zip first developer
Today's Stream
ZainboarThaneshboar
🎬
Busted again
Today's Stream
Zainboar
🎬
Torey the stinker
Beta Testing Fixes Part 2
ZainboarToreyboar
🎬
Torcoders which are roarers
Beta Testing Fixes Part 3
ZainboarThaneshboar
🎬
Delusional Zain
Beta Testing Fixes Part 3
ZainboarThaneshboar
🎬
Hey guys, torey here
Beta Testing Fixes Part 3
ZainboarThaneshboar
🎬
Zain's going platinum
Today's Stream
ZainboarThaneshboar
🎬
Doggy dog
Today's Stream
ZainboarThaneshboar
🎬
Fartik
How To Test Prevention XSS Attack
ZainboarKartikboar
🎬
Second Favourite
Today's Stream
Zainboar
🎬
Disco Zain
Today's Stream
Zainboar
🎬
Keyboard allergies
Hook Up AWS Websocket
Zainboar
🎬
As you been poopin?
Hook Up Board Columns to Websockets Nodejs + AWS Websockets
Zainboar

Subtitles

0:00:01
[Music]
0:00:23
all right
0:00:24
welcome back guys welcome back to
0:00:27
not deployment day
0:00:30
for
0:00:31
those of you who watched our yesterday
0:00:33
stream they know the reference
0:00:35
but moving on today's new day and there
0:00:38
is a new episode for pill break and fix
0:00:41
if you're new here we are rollercodes we
0:00:43
stream every night from 9 30 aest which
0:00:46
is
0:00:47
melbourne time as we both live in
0:00:49
melbourne um
0:00:51
so if you're new we are working on a
0:00:53
project called scrambler.ca which is an
0:00:56
open source project um but we are trying
0:00:58
to add our own enhancements to that
0:01:00
current project and see how we come
0:01:02
along
0:01:03
so there's zen michael host so what do
0:01:06
we have zen today
0:01:08
what's going on guys um thanks for the
0:01:10
good introduction k um
0:01:12
so i'm
0:01:14
so
0:01:15
so just basically continuing on from yes
0:01:18
today we'll be left off though
0:01:20
all right yeah i'd say
0:01:22
which was the board posting the board
0:01:25
name to the back end
0:01:27
all right
0:01:28
so
0:01:29
um do you want to open up the
0:01:31
middleware or do you want me to do it
0:01:34
yeah look now
0:01:35
all right brilliant
0:01:37
and i'll keep i'll open up um
0:01:41
aws
0:01:43
and make sure everything is up on set
0:01:46
and running up
0:01:47
already
0:01:51
nope
0:01:55
right coal
0:01:57
so this is there i need this
0:02:02
to be there and this one there
0:02:07
core billion
0:02:09
so
0:02:10
um
0:02:12
where did we end off
0:02:15
yesterday
0:02:17
um
0:02:18
same stuff
0:02:19
okay cool
0:02:21
yeah so today's talking
0:02:23
would be to kind of
0:02:25
get rid of that error
0:02:28
yes
0:02:30
and uh
0:02:32
more on that that i want to know really
0:02:33
why it came true
0:02:41
all right
0:02:45
i'm pretty sure we're not setting up the
0:02:47
http status
0:02:51
where's that
0:02:54
hd
0:02:55
it says
0:02:56
right uh on the fourth line it does not
0:02:59
have http okay says
0:03:03
yesterday right like that's just like
0:03:06
a way of it to say that
0:03:08
um yeah that it's not 200.
0:03:11
it's not authorized yeah
0:03:14
yeah
0:03:15
um
0:03:20
i feel like this is the main error that
0:03:23
access to
0:03:24
the api from origin
0:03:27
has been blocked by course policy
0:03:30
so
0:03:31
this api has basically been blocked
0:03:34
just um uh copying uh
0:03:37
just to um
0:03:39
access to fetch and no no no point
0:03:42
copying it i would say because it will
0:03:46
be too long
0:03:47
uh just to access a
0:03:50
fetch has been blocked from origin
0:03:54
that's all and then course policy
0:03:58
that should give us a bit of pen
0:04:00
there you go
0:04:03
uh hang on access to pressure has been
0:04:06
blocked
0:04:12
okay
0:04:15
that's basically the same thing let's
0:04:17
see
0:04:20
backhand
0:04:22
go um
0:04:25
you know how it's got all the headers
0:04:26
there
0:04:28
yeah yeah we don't have that many
0:04:30
headers do we
0:04:32
but we didn't have that earlier as well
0:04:38
so closer for main request yeah
0:04:47
uh go down
0:04:51
okay install course package in the
0:04:54
we back
0:04:55
have calls back in the back end then
0:04:58
open your server.js
0:05:00
or wherever you then import that one
0:05:02
then use
0:05:03
freedom the browser should be done
0:05:06
we're already doing that
0:05:09
the server is returning a 4 which
0:05:11
wouldn't contain my header then if
0:05:13
because the code was i was
0:05:16
only able to identify the bug after i
0:05:18
used devtools to track requests sent
0:05:21
file browser replicated all headers in
0:05:24
my call request
0:05:25
after fixing this functionality the
0:05:27
problem was fixed
0:05:31
if we do the track
0:05:33
ourselves as well
0:05:35
yeah do you know how to how to like have
0:05:37
you done it before i know but we can
0:05:40
learn by doing it so
0:05:43
let's do that
0:05:44
yeah i'm just going through a bit more
0:05:46
of the okay
0:05:48
cool you continue to do that
0:05:51
and then what i'll do is spin up the
0:05:54
[Music]
0:05:55
middleware on my side too
0:05:58
already
0:05:59
yeah
0:06:00
they can be as in
0:06:02
two points of contact instead of one
0:06:07
two points of contact instead of one
0:06:12
all right
0:06:13
[Music]
0:06:14
yeah you know what that means
0:06:18
that does that mean something
0:06:22
means two heads are better than one
0:06:26
i mean
0:06:27
like we just need to put i think it's
0:06:29
main or more on the side of
0:06:32
like this is going to be resolved in the
0:06:33
aws console somewhere
0:06:38
aws console
0:06:41
yeah like um i'm pretty sure like this
0:06:44
error what we are getting is gonna be
0:06:46
resolved somewhere in the
0:06:48
aws console like with the apis and stuff
0:06:54
like that right
0:06:55
on the api so
0:06:57
um yeah middleware is kind of just like
0:06:59
to push like to file a package right now
0:07:08
then i'll just go to api gateway
0:07:14
and check what other things are there
0:07:30
have you got water
0:07:33
yes
0:07:40
good boy
0:07:42
yeah let's was just something
0:07:56
uh
0:08:03
options
0:08:07
post
0:08:11
access allow rigid so
0:08:14
the http is not showing the right
0:08:19
thing
0:08:28
integration request
0:08:31
you know what's the weird thing
0:08:35
the weird thing is that it's posting the
0:08:38
board and it's giving the error
0:08:43
well it's posting the board but it's not
0:08:46
being contacted by the api
0:08:50
so
0:08:51
it's saying that the course is blocking
0:08:53
it but yeah then the middleware goes
0:08:56
ahead and posts
0:08:58
yes
0:08:59
of course
0:09:00
that's just like like
0:09:02
make up your mind like either words
0:09:08
to programming and technical world mate
0:09:13
yeah
0:09:14
i don't know exactly what you mean here
0:09:18
as in come on do
0:09:20
you're working but you know working as
0:09:23
well
0:09:24
what's your problem
0:09:27
i just want to throw some tantrums first
0:09:50
i'm just gonna make sure that the lambda
0:09:52
we're using is the right one
0:09:59
h q l h
0:10:02
w
0:10:04
q
0:10:04
um
0:10:05
[Music]
0:10:06
z05
0:10:11
yeah cool
0:10:13
h q l h w yeah that's fine
0:10:17
and there's that one
0:10:25
method request
0:10:27
http requests headers
0:10:33
did we put anything in here as well i'm
0:10:36
not entirely sure
0:10:38
my head's name
0:10:43
do you want me to see your screen
0:10:52
how's it going
0:10:58
what's going on matt
0:11:00
good to see you again welcome
0:11:04
we miss you
0:11:06
yes where have you been there
0:11:12
proxy
0:11:15
request headers that shouldn't be the
0:11:17
case
0:11:20
we just have to somehow do that
0:11:23
http status because this is sent
0:11:28
this is
0:11:30
you know what
0:11:31
this of course wrong feeling that this
0:11:33
might be the reason because we have only
0:11:36
got one header here but then total free
0:11:39
headers something yeah gonna
0:11:43
try and see if this works
0:11:46
full
0:11:47
methods
0:11:49
yep
0:11:50
and
0:11:52
what was the other one
0:11:54
can you remember headers is it
0:11:58
now headers
0:12:01
maybe
0:12:03
can you see
0:12:05
[Music]
0:12:09
so if one is our origin um
0:12:11
[Music]
0:12:13
oh boy
0:12:18
i'm just
0:12:19
um
0:12:24
[Music]
0:12:31
yeah yeah i know
0:12:34
i think it's headers only
0:12:38
all
0:12:40
now there are only three right
0:12:50
because i remember
0:12:52
last time in this 200
0:12:54
response headers we insert it free
0:12:58
we have three
0:13:01
yeah but uh
0:13:03
i just want to confirm my
0:13:07
as in assumptions that the
0:13:10
is the first one headers and then the
0:13:12
second methods and then the third one
0:13:14
origin
0:13:18
that's right okay so we want the
0:13:19
pre-flight ones
0:13:21
so one is origin one is methods with os
0:13:24
yeah and headers with this
0:13:26
okay
0:13:27
perfect
0:13:28
yeah
0:13:31
yeah yeah it doesn't matter all right so
0:13:34
i'm going to try this
0:13:37
and let's see
0:13:38
if this works
0:13:40
options before
0:13:46
oh yeah that's cool man um matt says
0:13:50
he's been tied up now we get it
0:13:53
um that's right right yeah interesting
0:13:57
okay deploy the api
0:14:07
oh by the way
0:14:10
today i'll go on promotion at work
0:14:13
oh
0:14:14
nice which was fantastic
0:14:17
what's your position now
0:14:20
from a junior dev to a dev
0:14:23
nice congratulations
0:14:26
thank you
0:14:28
are we getting a new interview
0:14:33
maybe maybe
0:14:36
nice are we getting a treat
0:14:40
for sure
0:14:44
sorry huh
0:14:45
when the log down ends yeah
0:14:48
yeah sure that's good
0:14:50
nice
0:14:52
uh so this is that one
0:14:56
okay do you want to have a go now
0:14:59
yeah sure
0:15:01
hang on i'll just enable the logs as
0:15:03
well
0:15:04
so we can
0:15:06
keep track all right yeah go for it
0:15:09
did you give cloud watch permission
0:15:11
though yes i just did it
0:15:14
alrighty
0:15:22
come on my baby go show me some loving
0:15:24
now
0:15:31
still the same
0:15:33
once i want it i know oh oh it's chords
0:15:36
only
0:15:37
let me try another one
0:15:52
okay please look
0:15:54
now it's not even inserting the board
0:15:58
now it's just insane try again
0:16:01
okay yeah
0:16:05
open it incognito
0:16:14
come and show me some
0:16:16
um it doesn't have the hp okay stairs
0:16:21
um go to dev uh
0:16:24
hi
0:16:26
what was the other guy
0:16:28
talking about
0:16:32
what was the
0:16:33
dev tool and that
0:16:37
oh yeah can you open up that link
0:16:39
yeah yeah i can
0:16:44
okay
0:17:00
triggered by some additional headers
0:17:03
by the browser
0:17:05
in the in that particular case the
0:17:07
server was written in four for error
0:17:09
which was contained i had a definition
0:17:12
which would cause
0:17:13
um right
0:17:15
i use devtools to track the request
0:17:19
um go to dev tools
0:17:23
which ones
0:17:24
uh i think you would be somewhere when
0:17:26
you expect the
0:17:28
element
0:17:31
and that in this code like there uh
0:17:34
in
0:17:35
in chrome where
0:17:36
you had the app
0:17:43
there should be something here um
0:17:46
go to this uh
0:17:50
have you got anything called network
0:17:53
yeah
0:17:55
no
0:17:56
cool
0:17:57
um there should be something
0:18:00
here that could block cookie block
0:18:03
requests
0:18:04
because um go to
0:18:07
the
0:18:08
board feature highlighted in red
0:18:12
yeah
0:18:15
can you expand that
0:18:21
um the entire uh here we go
0:18:25
go to the one that's highlighted in red
0:18:30
here
0:18:31
um
0:18:34
request url is that one
0:18:37
prefer policy strict origin friend cause
0:18:40
origin okay
0:18:42
provisional headers are shown
0:18:46
oh okay
0:18:48
that's now original application dot
0:18:51
application i've been jason
0:18:54
and go down
0:18:56
slowly oh is okay at all is it
0:19:00
yeah
0:19:02
go to response uh
0:19:04
[Music]
0:19:06
go to response
0:19:09
is empty
0:19:11
and timing
0:19:15
nothing really i guess
0:19:17
no
0:19:18
um
0:19:19
we need
0:19:22
go back to
0:19:23
41.
0:19:26
it's coming from 41.
0:19:28
yeah i mean of course
0:19:30
okay cool yeah that's fine don't worry
0:19:32
about that one
0:19:33
yeah uh go back to your own network
0:19:44
[Music]
0:19:46
it says stays called 500
0:19:50
yeah so this one is the one which is
0:19:52
actually uh the request method is
0:19:54
options
0:19:58
sorry
0:19:59
go up
0:20:03
the request method is options so
0:20:05
basically options
0:20:07
um in the api
0:20:09
gateway is
0:20:11
returning something weird apparently
0:20:19
no um i don't want to do that at the
0:20:21
moment i just want to go through
0:20:24
feeling that we should have followed the
0:20:27
tutorial um while enabling course last
0:20:29
night
0:20:31
[Music]
0:20:34
probably you shall let me just give this
0:20:38
one more
0:20:39
yeah yeah
0:20:40
do do audio what you think would make it
0:20:43
work
0:20:44
lambda proxy
0:20:46
integration
0:20:49
requests will be procedured lambda will
0:20:51
request details available
0:20:53
in the event of your handler
0:20:57
okay then go to
0:21:00
the
0:21:02
lambda get the code push it there
0:21:06
see what this says
0:21:10
mapping templates
0:21:12
yeah that's fine
0:21:20
let's see what this are you sure you
0:21:22
want to switch to lambda proxy
0:21:24
integration
0:21:26
you will not be able to reduce the
0:21:27
previous execution probe
0:21:29
ah no i'm not sure
0:21:32
already
0:21:34
mock
0:21:36
method is that one
0:21:39
response
0:21:43
ah right
0:21:46
oh might be a problem
0:21:49
but i remember we did it for only one of
0:21:51
them not all of them because you did it
0:21:53
for post already
0:21:57
but if you see then
0:21:59
header in the network as in
0:22:02
the response apparently that's using
0:22:04
options
0:22:06
option method
0:22:08
yeah yeah that's true
0:22:10
so it's gonna be in post then if we
0:22:13
didn't post
0:22:15
probably not but i don't
0:22:18
know so all we can do is keep
0:22:21
trying i'll until it works
0:22:24
yeah okay enable cause
0:22:29
do that again
0:22:31
i'll go ahead and watch the video after
0:22:33
this and see what's the right video
0:22:36
yeah
0:22:38
let's do that probably
0:22:40
because i'm i'm pretty sure i might have
0:22:42
missed something
0:22:45
right is it no if you want to deploy it
0:22:48
uh if you want to test this sorry
0:22:51
yeah should have sit
0:22:56
all right
0:22:57
oh you did that
0:22:59
thank you
0:23:02
come on baby girl show me some loving
0:23:04
now some cause exclusive loving
0:23:12
uh go to headers
0:23:15
yeah go to head and network
0:23:19
yes yes
0:23:20
if
0:23:24
so what's that difference between the
0:23:26
first one and the second one as in the
0:23:29
board
0:23:30
they're two red boards what's the
0:23:32
difference between them
0:23:36
both using
0:23:38
oh hang on
0:23:40
yeah
0:23:41
so get
0:23:42
is oh one is from the middleware side
0:23:45
this is the middleware side one
0:23:58
yeah this is a request one and this is
0:24:00
the response
0:24:05
this relates to the response and the
0:24:07
stream lets you request
0:24:10
ah right okay
0:24:12
cool
0:24:12
but
0:24:13
why is he choosing options he should be
0:24:16
using post now so we are using
0:24:19
the right request
0:24:22
which is access control allow region um
0:24:25
application type is fine
0:24:27
and all of this stuff is fine but the
0:24:28
response from the api
0:24:31
that's coming from the
0:24:33
um options method
0:24:35
should it be from the post method
0:24:39
yes and it's referring to the strict
0:24:41
origin
0:24:43
when cross origin
0:24:45
so the policy is still in uh
0:24:48
i don't know like i don't know what
0:24:50
straight region means um so but
0:24:53
it sounds like it's not cool
0:25:07
yeah
0:25:10
post
0:25:12
uh lambda proxy
0:25:17
right
0:25:19
it offers more privacy which we don't
0:25:22
want right now
0:25:28
so we want full url like no referrer
0:25:31
when downgrade
0:25:35
i think i might know what's what the
0:25:37
problem is here
0:25:39
oh exciting
0:25:43
see how this post is using lambda proxy
0:25:48
we didn't add it
0:25:50
yes
0:25:51
okay and
0:25:52
this hang on what i'm gonna do is delete
0:25:56
this method
0:25:57
right
0:26:03
because i've got feeling that options
0:26:06
should have
0:26:07
the lambda proxy
0:26:10
okay
0:26:11
yeah
0:26:19
southeast too
0:26:22
there we go
0:26:25
yeah whatever
0:26:27
that's fine i'm going to just play it
0:26:31
really cash parameter specified ah
0:26:35
aha let's what's the cash parameter
0:26:40
inverted cash key parameters specified
0:26:43
to be honest i don't know what that
0:26:44
means
0:26:47
wait exit
0:27:02
okay cool
0:27:03
so this is done
0:27:08
huh
0:27:10
oh i thought you made like you made the
0:27:12
poster right
0:27:13
so we we want to make the post method
0:27:15
now
0:27:16
uh
0:27:17
no no hang on a minute i need to do
0:27:20
something else
0:27:22
options
0:27:31
because the fact that it's not even
0:27:34
using the post method
0:27:36
makes me question
0:27:39
janet there why is it not even using it
0:27:42
if you have got it there
0:27:46
uh-huh we don't even have this
0:27:57
uh
0:27:58
what was that access
0:28:02
region
0:28:03
access
0:28:08
control
0:28:12
origin
0:28:29
and then
0:28:32
allow
0:28:34
headers
0:28:36
yeah
0:28:38
right application
0:28:42
json
0:28:43
model is empty cool
0:28:48
okay cool let's do this
0:28:58
i don't think so not doing anything
0:29:00
[Music]
0:29:04
what's not
0:29:05
doing anything
0:29:06
i think the issue relates to it not
0:29:09
using post
0:29:12
it's not choosing the post
0:29:15
yeah
0:29:17
so we probably need to actually make
0:29:19
sense
0:29:20
yeah
0:29:21
all right
0:29:23
now like in the tutorial we didn't add
0:29:26
uh response errors to all the methods
0:29:34
okay how we figured
0:29:36
you do not
0:29:37
have to create loader
0:29:39
you know i'm gonna just
0:29:43
actually
0:29:44
let's go back to the tutorial because i
0:29:46
don't really know
0:29:47
face time yeah i feel like
0:29:51
aws is just gonna um
0:29:54
let's just let's just watch the real
0:29:56
thing if we have it yeah yeah
0:29:58
exactly
0:30:07
just wanna remember which video was it
0:30:13
so it was posted by aws
0:30:17
it's how to solve
0:30:19
asp
0:30:25
can you see my screen yes you can
0:30:29
all right
0:30:36
[Music]
0:30:42
here at aws office in bangalore
0:30:46
today i'm going to show you how to
0:30:49
resolve a course error such as the error
0:30:52
no access control allow origin header is
0:30:55
present on the requested resource for
0:30:57
your api gateway api
0:31:00
i will also discuss some common reasons
0:31:02
for this error let's get started
0:31:06
pros origin resource sharing or course
0:31:09
is a browser security feature that
0:31:11
restricts cross-origin http requests
0:31:13
that are initiated from scripts running
0:31:15
in the browser
0:31:16
this works by adding new http headers
0:31:19
that let the servers describe which
0:31:21
origins are permitted to read that
0:31:23
information from a web browser what http
0:31:26
methods can be used in the request what
0:31:28
headers can be used and so on
0:31:31
if your server doesn't return the
0:31:32
headers required as per the course
0:31:34
standards or the value for these headers
0:31:37
are not accurate
0:31:38
then your http request doesn't succeed
0:31:42
here are some of the course errors that
0:31:44
you might see
0:31:45
no access control allow methods header
0:31:47
present
0:31:48
no access control allow origin header
0:31:51
present or no access control allow
0:31:54
headers headers present
0:31:56
let's see how to identify the cause of
0:31:58
the error from your browser window
0:32:00
here i am trying to invoke my api from
0:32:02
the browser but i am receiving a course
0:32:05
error
0:32:06
to see more details of the error let's
0:32:08
use the browser developer tools
0:32:10
open the developer tools on your browser
0:32:12
in firefox or chrome right click on the
0:32:14
screen and then select the inspect
0:32:16
option
0:32:17
make the request to your api and then
0:32:20
check the console tab
0:32:21
here you can see the error message
0:32:23
returned in the response
0:32:25
to see more information about the
0:32:26
headers that are returned in the
0:32:28
response and their corresponding values
0:32:30
check the network tab
0:32:32
now to avoid the error no access control
0:32:35
allow origin header is present on the
0:32:37
requested resource for a public rest api
0:32:39
verify the following that rest api
0:32:42
resource is configured with an options
0:32:44
method that returns the required course
0:32:46
headers the http methods get
0:32:49
put post etc associated with the
0:32:52
resource are also returning the required
0:32:54
course headers in case of both proxy and
0:32:58
non-proxy integrations
0:33:00
let's see how we can configure cores for
0:33:02
a rest api from the api gateway console
0:33:05
for this setup i have already created an
0:33:07
api gateway with a resource called test
0:33:10
to enable course on this resource select
0:33:12
this resource and choose actions
0:33:15
select enable course
0:33:17
now while enabling course also select
0:33:19
these check boxes for adding course
0:33:21
headers for gateway responses for
0:33:24
example select default 4xx and default
0:33:27
5xxx so that the api gateway sends the
0:33:30
required headers even if the request
0:33:32
doesn't make it to the endpoint so that
0:33:34
a gateway response is solved
0:33:36
for example in case of missing
0:33:38
authentication token error when the
0:33:40
resource path entered is invalid we use
0:33:42
the gateway response
0:33:44
you can also select the http methods
0:33:47
configured with this resource where you
0:33:49
want to enable the course headers
0:33:51
after we enable course on an http method
0:33:54
in api gateway an options method is
0:33:57
added to the resource if it is not
0:33:59
already there
0:34:01
also the 200 response of the options
0:34:04
method is automatically configured to
0:34:06
return the three except yeah this is
0:34:09
automatically configured we don't have
0:34:11
to go and edit
0:34:12
true true
0:34:14
minute um don't uh
0:34:18
just pause it i want to go back and fix
0:34:21
my
0:34:22
my things
0:34:25
do you want to watch the video once full
0:34:26
then we can come back and see if we
0:34:28
don't miss anything
0:34:30
okay
0:34:31
yeah this is
0:34:32
that our headers to fulfill the
0:34:35
pre-flight handshakes
0:34:37
we can see an options method is covered
0:34:39
for this resource with mock integration
0:34:43
options with mock ah yeah
0:34:45
right
0:34:46
if you select the integration response
0:34:48
section of this method see it's already
0:34:50
there we don't have to put 200
0:34:52
yeah you can see that the course headers
0:34:54
are already added
0:34:56
similarly the course headers are added
0:34:58
to the get and post methods configured
0:35:00
for this resource
0:35:02
note that if you are using a proxy
0:35:04
integration with your http method you
0:35:07
must send the required course headers
0:35:09
from the backend itself
0:35:11
after you enable these settings and send
0:35:13
the required course headers you can
0:35:15
resolve the error while accessing your
0:35:17
api
0:35:18
thanks for watching and happy class
0:35:21
all right
0:35:29
do we have all this um in place
0:35:32
the rest api is configured with an
0:35:34
options method that returns
0:35:37
okay that's as we will the http method
0:35:41
get both posts etc associated with the
0:35:43
resource are also returning
0:35:46
required course headers what does this
0:35:48
mean
0:35:50
i'm gonna second
0:35:53
yeah
0:35:55
okay um
0:35:56
preview now uh which
0:35:59
was it they you were talking about
0:36:02
the std methods get put post etc
0:36:06
associated with the resource
0:36:08
are also returning the required
0:36:11
course headers
0:36:12
um
0:36:13
do you have any idea what this means
0:36:16
okay so it's
0:36:17
saying that other methods if we
0:36:21
use as in which is get put and post
0:36:25
whatever
0:36:27
cause headers
0:36:29
we specify
0:36:31
in the options method
0:36:34
yeah
0:36:35
they
0:36:36
should also be present
0:36:38
in this method
0:36:39
in these methods
0:36:41
in in both in both the cases of proxy
0:36:45
and non-proxy integrations
0:36:48
right so there are two methods that um
0:36:52
then
0:36:53
we can use
0:36:54
lambda is proxy and by non-proxy into
0:36:58
integration i think we should using
0:37:01
proxy integration at the moment
0:37:04
good
0:37:05
so are we taking all the boxes here
0:37:13
so
0:37:13
let's go back because
0:37:16
i've just deleted um
0:37:18
the options and post because i want to
0:37:21
start from scratch
0:37:24
all right yeah
0:37:25
okay so what i'm going to do is actually
0:37:29
add
0:37:30
a
0:37:32
cream method called post
0:37:36
wait post is already there when he
0:37:38
deployed doesn't it
0:37:40
it wasn't in our case
0:37:43
no it doesn't oh
0:37:46
okay yeah
0:37:48
so you don't have any
0:37:51
lambda core so get the lambda from here
0:37:59
and then put it there
0:38:07
yeah
0:38:08
that's fine
0:38:15
and then it did this part as well
0:38:25
so enable course
0:38:27
which one yeah this one and this one
0:38:31
head option post allow method here
0:38:36
and then this should be fine
0:38:39
see
0:38:40
this part
0:38:42
so what happened last time was that this
0:38:44
did not return
0:38:45
like the second one was yeah
0:38:48
it was across yeah
0:38:50
yeah
0:38:51
absolutely
0:38:52
so
0:38:53
let's do
0:38:55
replace existing value there we go
0:38:58
nice so this is coming up fine and it
0:39:01
would already
0:39:03
it would
0:39:04
create the option method by s
0:39:06
by itself
0:39:09
oh boy oh boy here let's refresh
0:39:12
come on options method come on buddy
0:39:19
do you think he'll be there
0:39:21
yeah it will be
0:39:22
oh boy nice
0:39:25
and
0:39:33
and everything is there can you open uh
0:39:36
integration response yeah
0:39:38
is there
0:39:39
is there as well
0:39:41
it'll work this time
0:39:43
and hopefully
0:39:46
deploy
0:39:47
that one
0:39:48
it'll work
0:39:53
probably
0:39:59
always hope
0:40:01
for the best but also at the back of
0:40:03
your mind plan for the worst
0:40:05
yeah that's true
0:40:09
yes should be the same if you want to go
0:40:12
ahead and test it
0:40:33
haha
0:40:41
go to the network
0:40:43
yeah once again i just want to see what
0:40:45
god posted
0:40:48
i don't think anything got possible
0:40:50
nothing
0:40:54
is still showing that
0:40:56
still using options
0:41:00
yeah
0:41:02
go to the
0:41:03
uh
0:41:04
no no no don't worry about that
0:41:10
uh i have a feeling like this is what i
0:41:12
suggest
0:41:14
that we should redeploy and do it
0:41:16
because we have already played around
0:41:17
with the api
0:41:19
okay
0:41:21
let's do that yeah cool uh we'll just i
0:41:24
mean that's not ideal but
0:41:26
i feel like that should probably do
0:41:28
something
0:41:30
yeah let's do that
0:41:35
that's such a classic id thing to do if
0:41:37
it's not working turn it off and turn it
0:41:39
on
0:41:41
true
0:41:49
oh my god
0:41:51
it is def cook tomorrow
0:41:53
to be honest i lost track of time
0:41:56
i lost track
0:41:57
wait i'll let you know
0:41:59
yeah
0:42:01
let's see
0:42:15
oh no it's not tomorrow
0:42:19
it's next week
0:42:21
what is that
0:42:23
um
0:42:26
no that should no no no i'm just
0:42:31
no no no that's not
0:42:33
that saying don't overthink it
0:42:37
so i'm going to check one thing create
0:42:41
delete
0:42:42
create new board
0:42:45
that one is there
0:42:48
what name board name yeah that's fine
0:42:56
application.js
0:42:59
res
0:43:00
response set content type that one
0:43:08
i still want to get my solutions
0:43:09
architect but it's just like don't get
0:43:12
the time to do it
0:43:16
okay i'm gonna
0:43:18
deploy this
0:43:21
are you deploying the right code just
0:43:22
sort of
0:43:23
are you in the right branch
0:43:26
just want to make it so i did the
0:43:28
this is the
0:43:30
branch and how many
0:43:32
things are there because
0:43:35
the
0:43:36
api is working
0:43:39
hmm because when i tested by posts men
0:43:43
it gives me the board name easily you're
0:43:46
right
0:43:48
right
0:44:01
yeah that's fine it's fine then it'll
0:44:03
work it worked last time it will be this
0:44:06
time as
0:44:07
will
0:44:08
it has to
0:44:10
yeah it doesn't have a choice
0:44:16
that sounds like a threat
0:44:19
yes because i am frightening it now
0:44:26
wonder how you go to your promotion
0:44:30
you know how they say
0:44:33
yeah
0:44:34
if they don't
0:44:35
if something doesn't
0:44:38
want to come go and take it
0:44:40
yeah
0:44:41
if something doesn't work for you make
0:44:43
it work for it no what was it
0:44:46
i don't remember
0:44:48
some cheesy line i forgot
0:44:58
come on come on come on give me some
0:45:00
loving give me some love i know you can
0:45:03
do this
0:45:04
i believe in you
0:45:07
okay i believe in you
0:45:10
but does the api believe in you that's
0:45:12
the question make you believe in myself
0:45:17
that's good hard lover right there
0:45:25
you know how hard to say
0:45:28
what doesn't kill you it makes you
0:45:30
stronger
0:45:33
there you go that's true
0:45:39
have you
0:45:40
read the book called
0:45:42
can't hurt me
0:45:44
no what is it oh trust me man
0:45:47
it's it will give if you read it um it
0:45:50
will give you the nerves of steel
0:45:54
really right yeah what is it about
0:45:58
um
0:46:01
okay i'm i'm not gonna
0:46:03
i'm not gonna spoil it
0:46:07
read it and um then we can discuss it
0:46:11
because it's just as in
0:46:14
i was already a bit stubborn but it's
0:46:16
it's made me even more stubborn
0:46:21
okay let's go uh that's done
0:46:25
do you want to test it
0:46:27
new url time and
0:46:29
applying course time i guess
0:46:35
ah yeah yeah i need to give you the url
0:46:38
come my fault
0:46:41
and you need to do the course and logs
0:46:45
wait it's the same yeah
0:46:47
that's the same url
0:46:53
yes it says you know why because i've
0:46:56
got to delete the api now
0:46:59
what is leah
0:47:05
vic observed
0:47:10
i'm just too ex excited that i'm
0:47:13
forgetting the steps
0:47:16
yeah
0:47:37
well let's not get too excited
0:47:39
because the wise man said that
0:47:42
hope for the best was prepared for the
0:47:44
worst
0:47:50
exactly
0:47:51
so
0:47:52
not too excited but just on the
0:47:54
borderline
0:47:55
but
0:47:56
at the back of your behind you have to
0:47:58
didn't know that
0:48:01
okay
0:48:02
if this
0:48:04
doesn't work i will have to figure it
0:48:07
out so
0:48:09
just that kind of a mindset it will take
0:48:12
you a long way
0:48:14
that's true
0:48:16
come on come on okay cool this is done
0:48:20
i'm gonna
0:48:21
build it again and
0:48:23
actually i don't i don't even have to
0:48:26
no no i need to build it again
0:48:29
yes
0:48:32
you kind of don't need to though
0:48:34
you can use the same build file
0:48:37
but it's fine to be honest not that
0:48:39
think of it because you said it
0:48:42
swell i'm asking myself
0:48:46
why did i
0:48:48
for ocd purposes
0:48:50
yeah true
0:48:53
come on give me some loving now
0:48:56
you have to
0:48:57
force the
0:48:59
loving help
0:49:03
i'm that kind of a lover if you don't
0:49:06
give it to me i'll take it
0:49:14
that did not come out right
0:49:18
and now that you say i'm thinking
0:49:20
goodbye again
0:49:22
i need to stop talking too much to be
0:49:24
honest
0:49:30
oh boy
0:49:32
you might need to take some workshops
0:49:34
and go to the hr after this
0:49:39
i'll tell you the joke afterwards okay
0:49:41
cool
0:49:56
30 minutes of aws in 30 minutes of
0:49:58
deployment
0:50:03
and then
0:50:04
five minutes of blog
0:50:06
yes
0:50:08
um by the way we need to do two blocks
0:50:10
so it's ten minutes
0:50:13
i do i did the uh
0:50:16
oh have you
0:50:17
that's fantastic man
0:50:19
i didn't really have a chance to
0:50:22
you should look at the title it's so
0:50:24
funny yeah i'm
0:50:27
just having a look in now but i'll give
0:50:30
you the new url first
0:50:33
because i don't want us to waste time on
0:50:36
that one
0:50:38
uh where's my stream yard
0:50:41
there we go
0:50:44
private chat
0:50:46
there we go
0:50:48
i got it
0:50:51
and i'm just gonna go and do
0:50:54
the cause and everything now
0:50:56
yep
0:51:17
okay
0:51:20
for me until i do this yeah i can go
0:51:23
ahead
0:51:24
oh no no no not on that
0:51:26
not on that on proxy you need to enable
0:51:28
course
0:51:31
ah yeah
0:51:35
thanks no no no no no no wait you're
0:51:37
going to create post or is it going to
0:51:39
come inside itself yeah pause but it
0:51:41
doesn't come his
0:51:43
self i can
0:51:44
do it you can have a
0:51:46
little oh no no
0:51:48
itself oh yeah
0:51:50
do do what you feel is the right way
0:52:04
what's that
0:52:07
we need to give it a lambda function
0:52:13
alrighty
0:52:17
yeah cool
0:52:20
functional phone yeah that's fine don't
0:52:22
don't need you anyway
0:52:30
okay
0:52:32
proxy
0:52:34
that one's there
0:52:37
enable calls
0:52:39
default that one
0:52:41
and 200
0:52:43
ah
0:52:45
200 is not co ah okay because uh
0:52:49
in the all we need to add more first
0:52:52
remember huh the model schema thingy
0:52:56
are true
0:52:58
i need to do this i yeah
0:53:00
a feeling we need to redeploy now
0:53:02
because
0:53:03
this thing doesn't come up again
0:53:06
but go on model let's try everything
0:53:08
right
0:53:09
yeah we should try it
0:53:12
if it will work or not
0:53:19
no no just name it empty
0:53:39
cool let's go back
0:53:42
and try this you're not on proxy ah come
0:53:45
on what am i doing
0:53:47
see the options method is already
0:53:49
created so you probably want to delete
0:53:50
that first
0:53:52
no no no firstly now yeah
0:53:57
delete method
0:54:01
call
0:54:02
and now we go in and enable cause
0:54:11
aha you were right
0:54:15
oopsies
0:54:17
so we need to do access
0:54:19
allow origin
0:54:22
allow region in the method
0:54:25
response header and in the integration
0:54:28
response
0:54:30
all right let's do that
0:54:34
right um tuples yeah
0:54:42
method response and instant
0:54:44
question
0:54:46
response
0:54:48
yeah
0:54:56
pretty sure when you deploy it'll put
0:54:58
them automatically
0:55:02
let's take that chance and i will go
0:55:05
ahead and
0:55:07
delete this options
0:55:09
no no no wait wait
0:55:10
what are you doing
0:55:12
yeah yeah
0:55:13
the options
0:55:17
interesting
0:55:21
deletes here
0:55:25
why can't i delete this
0:55:29
that's funny
0:55:35
why can't i delete this
0:55:37
it's fine maybe let's try
0:55:40
redeploying
0:55:41
on proxy on proxy
0:55:44
this comes
0:55:55
no
0:55:56
it won't come now
0:55:58
right should redeploy it
0:56:03
do you need a choice do you think
0:56:04
something else could work
0:56:09
to be honest in the
0:56:12
in the time
0:56:14
if
0:56:15
we figure out if something else would
0:56:18
work we already would finish deploying
0:56:21
it
0:56:22
um not true
0:56:26
all right
0:56:28
let's do that i don't want to waste
0:56:31
time
0:56:33
finding you
0:56:34
yep let's delete that first we'll let's
0:56:36
delete
0:56:37
the api for one
0:56:42
api
0:56:44
wow
0:56:50
you know what i'm gonna do
0:56:52
yep
0:56:54
uh we
0:56:56
should probably write a proper blog
0:56:59
once
0:57:00
this gets
0:57:01
solved because
0:57:03
throughout
0:57:04
my korean tools now i've had this many
0:57:08
times as a same issue
0:57:10
[Music]
0:57:23
oh
0:57:45
[Music]
0:58:34
yo
0:58:36
all right so now i'm gonna
0:58:38
deploy it
0:58:41
um i'll just do that
0:58:45
so i'm not i'm not gonna build it
0:58:52
i'll look at you taking risks
0:58:56
how close it risks
0:59:00
because uh i think what you put but you
0:59:03
pointed out last time that the build is
0:59:05
already there
0:59:07
we haven't really
0:59:09
made any changes
0:59:10
yeah
0:59:12
and it's so it doesn't really make sense
0:59:15
to build it
0:59:16
again yeah that's true
0:59:24
all right this is
0:59:25
last time and then if this doesn't work
0:59:28
we will probably have to um
0:59:32
do it next day
0:59:34
yeah
0:59:38
come on come on come on
0:59:46
it'll work it'll work it's taking its
0:59:48
time
0:59:51
you have to be patient for the loving
0:59:56
yeah
0:59:57
good things take time
1:00:08
there we go now what i need to do is
1:00:11
give you the
1:00:12
url yes
1:00:22
there you go
1:00:23
and i'm gonna sort out
1:00:26
the api
1:00:31
okay
1:00:34
first let's add the model i guess
1:00:37
yeah
1:00:45
models
1:00:47
create
1:00:48
mt
1:00:53
okay okay soon
1:00:56
and tomorrow
1:00:58
application
1:00:59
hyphen jason um
1:01:02
slash
1:01:03
jason cool
1:01:06
that's right and
1:01:08
we need the post method now as well
1:01:15
create method
1:01:18
post
1:01:22
202 post as well
1:01:25
but first we need the
1:01:29
lender
1:01:34
ah
1:01:40
oh mom's calling
1:01:43
mommy do equals
1:01:48
she's missing you
1:01:53
to be honest she's just bored she's not
1:01:55
missing me
1:01:58
julie what was he saying yeah
1:02:01
because i know her
1:02:03
she's free and she wants to
1:02:06
talk to someone and
1:02:10
i'm there for her so
1:02:13
that's like a good son
1:02:16
i try sometimes
1:02:31
yeah
1:02:32
yeah that's fine i guess
1:02:38
yeah
1:02:39
and it will cause come on show me
1:02:41
something
1:02:43
show me exactly what i want to see
1:02:48
yay
1:02:49
cool that looks good
1:02:52
that looks good now do you want to go
1:02:54
and check
1:02:56
do you wanna first check if everything's
1:02:57
right like we have the options method
1:02:59
and
1:03:00
the post method
1:03:03
yeah
1:03:05
everything got ticked off isn't it so
1:03:07
yeah
1:03:09
so the url which starts from 54 is the
1:03:12
other one or the l3 one
1:03:16
uh
1:03:18
l3m
1:03:22
but that's the old one or the new one
1:03:25
that's the new one
1:03:27
you sure you sent that to me before uh
1:03:30
high force sorry my bad i didn't refresh
1:03:34
the stack
1:03:35
all right or it was the wrong stack that
1:03:38
was
1:03:39
looking at i probably have to get rid of
1:03:42
this one
1:03:44
which is resource not found
1:03:47
ah because i didn't
1:03:49
add the
1:03:50
table name
1:03:53
to
1:03:54
the
1:03:58
to the
1:04:00
little api
1:04:01
code yeah
1:04:17
okay this is our
1:04:20
last try
1:04:22
for the day
1:04:24
hmm sure
1:04:25
and
1:04:26
if this works phenomenal if it doesn't
1:04:29
we'll have to come back
1:04:33
api
1:04:37
there we go
1:04:44
okay
1:04:46
so um
1:04:47
i need to delete this one
1:04:51
sam build
1:05:12
and deploy
1:05:35
all right
1:05:37
i'm becoming a bit hungry so now
1:05:43
if you're if you're not in the mood we
1:05:45
can do it tomorrow it's fine
1:05:47
no no
1:05:49
want to change
1:05:51
this one for sure
1:05:53
and then if it doesn't work
1:05:55
obviously we can we can call it a
1:05:58
[Music]
1:06:02
night has a
1:06:06
log done
1:06:07
ended by the way
1:06:08
or it's just
1:06:10
eased off
1:06:12
it's it's nothing it's going to get
1:06:13
worse
1:06:14
okay because
1:06:17
i don't watch the news yeah all right
1:06:21
no i think it's
1:06:22
extended
1:06:24
we had 20 cases today
1:06:28
wow
1:06:29
that's a
1:06:30
lot like they logged it down in one case
1:06:34
in january so wow
1:06:38
covet is really showing us some
1:06:41
extremely extremely loving there
1:06:49
yeah
1:06:50
um hang on i just want to check if the
1:06:54
changes are still there in the api
1:06:58
hmm yep yeah
1:07:00
yeah maybe we have to enable course
1:07:01
every time for each change i'm not sure
1:07:06
no
1:07:07
is that
1:07:09
post and that
1:07:10
ready
1:07:12
or just
1:07:14
make sure
1:07:15
yeah
1:07:17
they're there cool
1:07:18
yeah if you want to test that one
1:07:24
on it
1:07:27
do you want me to run the code with
1:07:29
course or with no course the move i do
1:07:32
it
1:07:33
with course and then
1:07:35
we can also try with no calls as well
1:07:39
all right is her name cause
1:07:42
the girl
1:07:46
cool thing is her name
1:07:50
that'll be interesting i don't know why
1:07:52
she's there maybe she's the one who
1:07:53
wrote the vlog
1:07:55
ah okay probably
1:07:58
okay
1:07:59
let's give this a shot okay
1:08:02
nice
1:08:03
that's brilliant
1:08:05
comments
1:08:06
name invalid
1:08:09
uh
1:08:10
net arrows sir
1:08:12
oh i've seen this i've got this error
1:08:14
google this
1:08:15
cool this google school of this
1:08:18
nine methods to fix
1:08:21
common name invalid
1:08:36
the certificate
1:08:37
[Music]
1:08:50
yes
1:08:51
pretty sure of course
1:08:53
like we have made some progress there
1:08:57
um
1:08:57
[Music]
1:08:59
yeah good to the db
1:09:03
yeah as in
1:09:04
yeah
1:09:06
just a second yeah
1:09:11
this is awesome
1:09:16
i just want to see if i can um
1:09:18
turn off the certificates
1:09:23
um site settings
1:09:39
standard protection no protection
1:09:48
oh wait no oh
1:09:50
yeah
1:09:52
same stuff it's probably hard hard
1:09:54
refreshing then try
1:10:05
okay cool
1:10:07
but that's pretty good
1:10:10
there was some progress i guess
1:10:13
so it's the error error is on get bored
1:10:17
which we don't need to really
1:10:20
wait yeah i'll just just comment
1:10:24
but there's an error on post as well
1:10:27
the same one made over 48
1:10:32
commander get one
1:10:34
yeah one second
1:10:42
um i just want to try no chorus as well
1:10:46
[Music]
1:10:52
this stuff is so addictive we always say
1:10:54
we'll stop attentively
1:10:57
trust me
1:10:59
i've never seen a perfect one hour
1:11:01
stream
1:11:03
[Music]
1:11:06
why is get throwing an error
1:11:08
because there's cash in there
1:11:11
yeah
1:11:14
there you go
1:11:21
net to work
1:11:24
all right
1:11:26
so the problem is in the request
1:11:28
somewhere
1:11:32
so it's not bringing
1:11:34
any response is it
1:11:37
let's see
1:11:39
now
1:11:40
so head and go
1:11:44
zed five what
1:11:47
hang on a minute
1:11:48
that doesn't seem the right api that
1:11:52
you're using there oh i know why
1:11:57
oh boy sorry that's my bad
1:12:02
that is my bad ah okay here we go cool
1:12:14
do i put the https with them or not
1:12:17
i think you should have to because this
1:12:20
url endpoint
1:12:37
come on okay we got this
1:12:41
[Music]
1:12:45
come on course give us some loving uh
1:12:49
get bored
1:12:50
oh yeah oh yeah oh that's good that's
1:12:53
good looking promising now
1:12:55
yeah really
1:12:58
yeah
1:12:59
i i'm i'm like yeah okay i want to
1:13:02
hopefully
1:13:07
you're learning you're learning and
1:13:09
you've learned
1:13:11
yeah
1:13:12
mama mia
1:13:14
nice
1:13:15
girl
1:13:17
hustling it's teamwork mate teamwork
1:13:20
all right um
1:13:21
commit the code
1:13:23
and um
1:13:31
we'll we need to block this oh yeah we
1:13:33
need to as in i'm not gonna get this as
1:13:37
in i'm not gonna
1:13:40
let it go just like that
1:13:56
[Music]
1:13:59
by redeploying and
1:14:01
adding headers
1:14:03
in the api manually
1:14:05
as in you can use the description part
1:14:08
as well
1:14:10
oh yeah
1:14:15
yeah that's it and put this description
1:14:18
in there
1:14:23
where did we add headers
1:14:26
just to in um in in
1:14:31
api
1:14:32
gateway and then we can block the fix
1:14:37
but i i don't did we add headers
1:14:39
anywhere manually
1:14:44
oh so
1:14:46
one minute is that um
1:14:50
just
1:14:50
do by
1:14:53
enabling
1:14:54
course and api
1:14:57
gateway in that way making sure it's
1:14:59
simple
1:15:01
all right
1:15:05
um
1:15:06
how come
1:15:08
did you commit that
1:15:10
yeah it's already up
1:15:13
but we thought that
1:15:16
we didn't
1:15:19
add the headers manually
1:15:22
oh but you it's coming to that
1:15:26
it will make a difference
1:15:29
yes because if we go back
1:15:32
after a few
1:15:34
weeks these descriptions really count to
1:15:38
as in
1:15:39
have an effect on the map go ahead and
1:15:41
change the description right what do you
1:15:43
want me to put the description as
1:15:45
i put the description as
1:15:48
by enabling course
1:15:50
in api in a pair gateway
1:15:54
so you don't want the headers manually
1:15:56
wait i don't get it now
1:15:58
which one are you okay so
1:16:01
you were right there we didn't really
1:16:03
add that
1:16:05
manually so i was just correcting my
1:16:07
self date instead of that it should be
1:16:10
um
1:16:11
enabling that
1:16:14
enabling course
1:16:15
which branch was this one and
1:16:33
okay
1:16:34
are you sure isn't that one just
1:16:37
uh
1:16:38
yeah see this one
1:16:40
deployment
1:16:42
i like how you
1:16:44
use the emojis as well now um see this
1:16:48
one
1:16:49
oh see my screen
1:16:51
yeah
1:16:52
you can see your screen
1:16:55
oh um
1:16:56
i'm
1:16:58
okay okay cool
1:17:00
you must be right hang on i need to put
1:17:02
my mac on charge the battery is done
1:17:10
all right um
1:17:14
just check the when was a comment made
1:17:18
and you should be there all right
1:17:24
let me edit this boy
1:17:27
it's fine um
1:17:36
[Music]
1:17:42
um no no no no no
1:17:45
okay
1:17:46
don't do it that way
1:17:48
i can't
1:17:50
i can't edit this
1:17:52
then it's fine don't worry about it um
1:17:54
because i don't really
1:17:56
wanna commit i think
1:17:59
just yeah
1:18:00
i mean it's fine once we block it then
1:18:03
we probably won't even need to
1:18:06
exactly yeah that's fine
1:18:08
all right cool that was phenomenal
1:18:11
yeah
1:18:13
all right so but now we know you do it
1:18:14
blowing works and
1:18:17
today was productive um yeah i think we
1:18:20
are already 18 minutes over time so
1:18:23
won't take your guys time too much and
1:18:25
i'll see you guys tomorrow and yeah
1:18:27
do you want to get out then
1:18:30
fantastic now you're pretty much covered
1:18:32
it all see you guys tomorrow and
1:18:35
yes
1:18:36
same place same top 10 and different
1:18:40
tasks did you say
1:18:44
same place same time and different tasks
1:18:47
yeah my bad
1:18:48
all right guys i'll
1:18:50
see you guys tomorrow have a good day
1:18:53
afternoon evening or night
1:18:56
cheers bye
Other clips featured in this episode