0:00:24
all right welcome back everyone welcome
0:00:28
episode of bill break and fix um
0:00:32
for all people who are new here we are
0:00:35
which means we are a team of two
0:00:37
developers from melbourne
0:00:39
uh working on a project to add
0:00:42
persistent storage to the current open
0:00:44
source strongest points from the labs
0:00:49
yesterday we worked on
0:00:52
um trying to resolve our course problem
0:00:54
by reaching out to stack overflow um
0:00:58
i think i know how it turned out um
0:01:04
go ahead and show us how it turned out
0:01:06
all right yeah i'm just trying to log in
0:01:09
just bear with me for a minute because i
0:01:15
yeah just bear with me from when i i'm
0:01:21
minutes because i'm
0:01:23
entering the password fit the option
0:01:30
yeah it's easy in that way
0:01:42
i think it's this one
0:01:45
let's see just that one
0:01:50
cool i got it right and now i'm to share
0:01:59
so press my share screen
0:02:01
share screen there we go and selecting
0:02:10
surprise surprise as we said that the
0:02:13
community is pretty strict
0:02:20
we got a minus one as well
0:02:23
on our first comment
0:02:24
which i'm not surprised at all
0:02:30
guy didn't have that didn't really have
0:02:32
a point there like
0:02:36
what was he trying to say as in
0:02:40
what i would really appreciate that if
0:02:43
this kind of a thing at least in the
0:02:55
someone just commented that have you
0:02:58
checked for arizona
0:03:00
cloud watch yes i did
0:03:07
but apart from that uh no other things
0:03:12
i'm thinking how about if i deploy from
0:03:16
yeah that's that's uh what i was gonna
0:03:19
um for this as well
0:03:21
right cool so i'll just and if you can
0:03:24
keep an eye on the comments as well okay
0:03:29
korean garden fantasy
0:04:05
figure out how to um
0:04:10
my cam because i'm pretty sure there has
0:04:17
i guess talking of that
0:04:22
i am able to use snap camera i guess let
0:04:42
have you got war by the way
0:05:02
let's try this part here
0:05:10
littlefield heidi mate yeah raw
0:05:19
um right so where will we
0:05:26
actually not even there i need to go
0:05:28
into my head of this console
0:05:32
also i'm trying to drive my
0:05:34
snap camera so let me know how that
0:05:36
looks if you can see
0:05:38
oh can you see oh that is wonderful
0:05:43
can you see it oh really
0:05:48
can you not see yourself
0:05:50
oh you're not listening things like
0:05:59
change that so how did you do that
0:06:02
this works i mean like
0:06:06
literally like it wasn't
0:06:09
hard i guess i just uploaded the
0:06:12
um image and started working
0:06:16
okay cool i'm gonna try that off to the
0:06:34
will go really good with this
0:06:36
i'm just kidding man i'm just kidding
0:06:46
would be pretty good if i can figure out
0:06:48
this zoom off the camera because
0:06:52
i think snap camera won't work with the
0:06:56
external camera with it
0:07:02
oh yeah i don't think so
0:07:14
go i'll try to put road quarters
0:07:26
oh okay never mind
0:07:30
so he did make it because um
0:07:35
did i mention that
0:07:39
team member for school
0:07:43
in the team are you talking about
0:07:48
i remember seeing him in slack but yeah
0:07:51
i guess go ahead and um
0:08:06
right okay because um
0:08:10
that team member was asking me for their
0:08:15
but apparently it's already
0:08:18
doing what they need to do so i have to
0:08:27
so it actually or not
0:08:42
because apparently their account was
0:08:45
saying that i mean their username
0:08:49
is an authorized but i can already see
0:08:54
so i'm gonna have to confirm that
0:09:02
are we just deleting the stack right now
0:09:10
i'm gonna try to figure out if i can get
0:09:13
the banner in the background
0:09:17
try that out and um
0:09:41
there are funny ones as well in it
0:09:51
what did coding garden fans say with the
0:09:57
um i tried going in but what's for
0:10:03
i love his emojista to be honest
0:10:08
don't oh wait what do you have for
0:10:22
nice that's a it's a burger dinner
0:10:25
yeah how about yourself
0:10:27
i had chicken korma and
0:10:35
sorry yeah it was pretty good
0:10:43
i miss him quick all right as in that
0:10:46
kind of with food though
0:10:48
yeah no we like we just make like on
0:10:51
mondays and then we the whole week
0:11:12
you forgot to see the interclass
0:11:16
i knew you were gonna pick up on that
0:11:26
isn't it just saying
0:11:36
actually i'm scared of
0:11:50
this is the front end
0:12:10
that's what's happening today
0:12:17
i'm hard green for the second time and
0:12:21
k is doing it for the first time
0:12:28
no i hated with you
0:12:55
okay cool there we go
0:13:12
all right okay so i'm gonna
0:13:19
actually everything is on point isn't it
0:14:02
how was your day then what did you do
0:14:20
went off for a bit of a walk
0:14:25
then few meetings after work
0:14:30
and a beautiful training session as well
0:14:34
and then had had dinner
0:14:36
had to call few people
0:14:42
how about yourself
0:14:46
yeah no that sounds like a good perfect
0:14:52
woke up pretty early and um
0:14:54
did a lot of assignments
0:14:56
um then i had some errands to run and um
0:15:01
i had some meetings as well
0:15:06
then i slept in the evening
0:15:11
yeah hey there then i just probably just
0:15:17
brilliant oh by the way if i remember
0:15:20
correctly you had an interview isn't it
0:15:25
yes yeah today i did
0:15:27
yeah how did that go
0:15:29
pretty good actually um yeah
0:15:31
um actually i do today um okay cool yeah
0:15:38
it was one first for a part-time
0:15:40
position one was for an intern position
0:15:44
so yeah they went pretty well
0:15:47
okay i'm pretty positive like i should
0:15:49
be moving to the next round
0:15:55
expectations are pretty high now
0:15:58
um i won't say they're pretty high i'm
0:16:01
just positive like it went
0:16:05
i was i was able to speak like so the
0:16:07
interview was like scheduled for 30
0:16:11
like you know your interview goes well
0:16:13
when it goes like 15 minutes over time
0:16:19
like that sure then
0:16:20
i'm i'll say i'm positive i'm not like
0:16:23
they are gonna contact me right but like
0:16:26
yeah yeah i mean all
0:16:29
we can do is help is that yeah and seems
0:16:32
like from what you've
0:16:37
they will be calling you back i'm pretty
0:16:43
but i i'm still like not keeping my
0:16:45
options close like
0:16:52
one of the things which you should do
0:16:54
while applying for job is that even if
0:16:56
you're like really close to getting a
0:16:57
job don't stop applying
0:16:59
until you have your offer
0:17:06
well it's funny um like
0:17:08
i have literally talked about
0:17:11
youtube on in every interview ever like
0:17:14
since we started doing this
0:17:17
and it comes up automatically like
0:17:19
they'll bring it up
0:17:26
um activities you do our
0:17:29
side of work which you uni
0:17:32
and then you can bring this
0:17:34
channel up as well yeah
0:17:39
um and my blog comes up as well
0:17:42
like these are the two things which
0:17:46
i guess like anyone doing it really
0:17:48
separates you apart from
0:17:52
as in they can see the hunger in you by
0:17:56
you just doing these these kind of extra
0:17:59
things not that you have to but you
0:18:01
choose to do it yeah exactly
0:18:05
all right um do you want to open up uh
0:18:13
new endpoint but after after you do that
0:18:18
actually that should be here already
0:18:24
i'll just private chat
0:18:30
cool curtain guarding fan no problem
0:18:32
mate take your time
0:18:40
all right there you go and i need to
0:18:45
okay yeah you need to do that and i need
0:18:52
right yep that makes sense
0:19:22
how do you prepare for interviews then
0:19:29
that's a really broad question
0:19:42
just read about the person that i'm
0:19:44
gonna be meeting with and then go to
0:19:50
what their credentials as in
0:19:53
what they've been done
0:19:55
and then basically read about the
0:19:57
company what they do
0:19:59
and how my experience and knowledge
0:20:05
contribute in the role that i'm applying
0:20:08
for yeah right and just
0:20:11
outline those parts and
0:20:18
leave the rest to the god simple
0:20:21
no that sounds pretty good yeah
0:20:24
yeah that sounds like an ideal strategy
0:20:30
what's your strategy
0:20:34
i feel like it's a bit different for
0:20:36
when you're applying for grad
0:20:40
because like like it'll be very
0:20:42
different for you right like yeah you
0:20:44
have a lot of experience in industry um
0:20:46
i wouldn't say a lot of experience no i
0:20:50
wouldn't say that as in there are
0:20:59
as in beyond a lot a lot of experience
0:21:02
so i wouldn't say i've got a lot of
0:21:06
well that's the thing right like um
0:21:08
that's a different league in yeah yeah
0:21:15
in your in your you feel like you have a
0:21:18
lot of experience um compared to um
0:21:22
like you've been in uh like you've been
0:21:24
working constantly right um
0:21:27
well i wouldn't say constantly
0:21:32
on and off due to my
0:21:34
migration over here
0:21:39
that's where they forget
0:21:43
i know exactly what you mean
0:21:50
yeah yes i've got a bit more experience
0:21:53
yeah i wouldn't even say knowledge but a
0:21:58
yeah there definitely other people that
0:22:01
are way higher than me as well
0:22:04
yes but like i guess that's being that
0:22:06
being said a lot of people don't want to
0:22:08
hire over experienced people as well
0:22:11
yeah because they know they'll just
0:22:19
yeah but it's pretty different when you
0:22:21
apply for like internal graduals
0:22:33
i guess that criteria
0:22:35
for the interviewer to observe
0:22:40
or a junior and as
0:22:43
mid or senior they're all different
0:22:49
for you you may be
0:22:55
learning because you're
0:22:59
shoot them won't even really care about
0:23:02
how much knowledge
0:23:03
you have but that would really work in
0:23:10
so i guess one trying to say that the
0:23:13
expectations would be different
0:23:15
yeah that's true yeah represent um i'd
0:23:22
they do want to see more on the
0:23:26
your drive side of things um
0:23:30
um have you quoted twitter clone or not
0:23:36
a lot of stuff um sure
0:23:40
i guess that being that goes to a lot to
0:23:43
your advantage as well
0:23:46
i definitely agree because the more of
0:23:52
you do in your own time
0:23:55
that shows how how passionate you are
0:24:02
create just saying this
0:24:04
saying there's lots of experience
0:24:14
and i do i love hard work as well how
0:24:18
many years have you been in the industry
0:24:20
like how many years of so i
0:24:29
one and a half years has been
0:24:35
but except that one
0:24:43
four plus years experience
0:24:46
that's pretty good um yeah
0:24:51
in four years i guess while working you
0:24:56
as in i've definitely
0:24:58
learned a lot from
0:25:00
a lot of people that i as in hawaii in
0:25:04
field and hang around
0:25:12
from you as well because
0:25:14
i i'm always as in a
0:25:19
growth-minded person
0:25:26
right um so that is done
0:25:28
uh you already have the end point
0:25:32
yeah have you configured chorus
0:25:34
uh we're just gonna do that now
0:25:39
let's just do that
0:26:11
i was just gonna say that
0:26:13
i really hope this works yeah
0:26:18
hope for the best but if it doesn't
0:26:24
we might have to as in step
0:26:27
go through that video step by step
0:26:30
as you really carefully yeah
0:26:35
yeah that's true um
0:26:40
don't know what the problem is right now
0:26:44
like if this doesn't work it'll be a bit
0:26:58
i need to add a method first
0:27:04
post but i guess that being said i
0:27:08
think we should try other controllers as
0:27:17
click on proxy then add the method i
0:27:20
know it's just gonna do that um
0:27:25
why would we create other controllers
0:27:29
no no because if one isn't working then
0:27:32
obviously the others won't work either
0:27:35
like we can try using the get controller
0:27:41
see if it's what to do with the response
0:27:45
um right right i say older version of um
0:27:51
uh the middleware enhancement
0:27:58
fingers crossed this works
0:28:22
yeah i can't wait here we go
0:28:28
a piece is two yeah that's the one
0:28:32
embedded model okay cool that's mine
0:28:35
i need to make a model first
0:29:08
this and then i've just added um
0:29:12
so now i'm going to do is go back to the
0:29:22
configure the post method of the api to
0:29:27
lambda function which is this one
0:29:47
all right um this is done so now
0:29:53
just have to make sure one thing that
0:30:02
when it loads up obviously
0:30:15
cold so this is that one method response
0:30:33
we don't want this one
0:30:36
and now let's try and
0:30:45
default for something and that one
0:30:48
there okay these over there now we can
0:30:54
replace the existing values
0:31:09
200 empty response model
0:31:13
of this method no that's not
0:31:16
it that didn't happen there
0:31:23
hey cutting cotton fan good to have you
0:31:30
delete no i don't want to delete the
0:31:33
i just want to delete that method
0:31:50
so what happens is that
0:31:58
we want to delete this
0:32:04
no i want to delete the method itself
0:32:30
and then complete this method as well
0:33:03
so now what we need to make sure
0:33:10
sorry i'm mad mother is there
0:33:19
no nothing happened
0:33:23
i just created the um
0:33:28
things that i needed to but then
0:33:36
what do we mean by that
0:33:42
take all the boxes
0:33:50
yum yes andre we did try um
0:33:53
we just tried deleting and recreating
0:33:55
the whole stack this is the second time
0:34:03
do you think we're doing something wrong
0:34:04
do you wanna watch the video
0:34:09
just let me try invalid
0:34:14
so you created the model right
0:34:17
by saying that the model is
0:34:22
um it shouldn't be named empty should be
0:34:25
named it should mean an empty model it
0:34:26
should be named empty
0:34:35
i think so like previously we've been
0:34:39
actually right there might have been
0:35:31
i don't know why my
0:35:33
eyes are painting as well
0:35:36
you should take some rest
0:35:41
i want to get this done
0:35:47
you've been working a lot
0:35:50
you know according
0:35:53
i'm gonna sleep really
0:36:03
which is why i don't really like to
0:36:13
i was just saying in that way to be
0:36:23
right so enable chord i just want to
0:36:25
check if i've got all the ticks
0:36:28
yeah that i need to
0:36:31
so i've done this empty empty mod
0:36:34
response model that went down option
0:36:44
okay i'm gonna try this
0:36:46
on actually no well that's all these um
0:36:54
that being said i guess we should she'll
0:36:58
if that doesn't work we'll just follow
0:36:59
the video thoroughly
0:37:03
it's really interesting that how this
0:37:04
problem ari arose like um when we added
0:37:12
that's true though i still don't want to
0:37:20
they and even that like it shouldn't
0:37:24
like pertain through all the other
0:37:30
but it doesn't want to listen to us
0:37:40
yeah we both are from eu
0:37:44
i think we means originally or
0:37:54
but then then you're from
0:37:57
uk wait were you yeah are you from uk
0:38:01
please don't do this
0:38:03
please don't do this
0:38:22
what's a group called
0:38:27
andres in there as well
0:38:30
hey geez what's happening
0:38:34
like the first thing you guys do in the
0:38:35
morning at like 6 30 is like hey
0:38:42
that'd be hilarious official make that
0:38:46
group andre it will be hilarious giza
0:38:52
you really shouldn't do that
0:38:55
i'm just i'm just joking we won't
0:38:59
um all right so the headers are there
0:39:03
uh is that the uk going yeah uh so
0:39:08
i'm i'm from the uk
0:39:11
coding fan and kartik is from india
0:39:16
so we both live in australia
0:39:27
let's give this a go
0:39:30
and if it doesn't happen we're going
0:39:43
okay now i'm gonna deploy the api
0:39:47
yeah um i'll share my screen after this
0:39:55
raise you from coding garden fan
0:40:00
i have a feeling they told us before
0:40:23
what's the time in marston
0:40:28
what was that right
0:40:31
i just asked quitting garden fan what's
0:40:33
the time in mars now
0:40:38
right um i'm gonna go yeah
0:40:41
hold each jack call it and
0:40:45
we'll see how we go
0:40:59
what do you think then what's gonna
0:41:02
oh for the best plan for the worse
0:41:07
ready to call uber
0:41:15
i i don't feel like pressing go i just
0:41:17
don't wanna know what
0:41:27
all right video time
0:41:29
video time video time
0:41:31
um before video time i guess we should
0:41:34
do a redeploy time
0:41:38
come to come to use
0:41:41
redeploy time which means
0:41:49
yeah we're going to do it from scratch
0:41:50
right like because we already like yeah
0:41:53
yeah yeah so let's do that then
0:41:57
all right give me a minute i'm gonna
0:42:00
call uber and save them for any
0:42:17
do this coding iron fan has the best
0:42:33
to be honest um um his was gonna happen
0:42:36
once we watched the video and we solve
0:42:39
it with the help of the video
0:42:41
i don't wanna move on until we actually
0:42:44
blog every single step-by-step guidance
0:42:48
of this yeah yeah i don't want to move
0:42:54
that being said like um
0:42:57
the whole thing is to know what step are
0:42:59
we missing actually because
0:43:03
according to the video
0:43:05
i'm 90 sure that we have been following
0:43:19
we must be missing
0:43:22
half a step and that's what causing the
0:43:26
entire thing not to work
0:43:34
right i'm gonna redeploy it
0:43:49
on there what's that i say hello broth
0:44:04
i can tell that i'm actually
0:44:07
turning the whole extreme
0:44:09
stream stream culture
0:44:12
into into a pony culture
0:44:16
everyone's hey jesus what's happening
0:44:22
fish and chips now
0:44:24
you promises mission chips remember
0:44:30
once this just fixed and um the
0:44:34
long time finishes then
0:44:38
we'll go to celebrate the cause issue
0:44:47
yeah um i'm just trying to get more
0:44:49
chorus one for once and see what happens
0:44:53
um so that would go to
0:45:01
show you any error because it's not even
0:45:09
oh yeah i can't do it in the last tv you
0:45:19
and now i'd like to give you the new
0:45:29
do you think it could be something
0:45:32
what changes we made to the code as in
0:45:36
how we are making it work with the board
0:45:42
it's not related to
0:45:47
i don't think it is because if if it was
0:45:55
i'm pretty sure it's not related to the
0:46:08
sure that is not the code itself
0:46:18
why would it work previously and then
0:46:21
once our db go hacked
0:46:26
just changed one url and then then
0:46:30
changed it back to the url that it was
0:46:37
like it's not working in any of our
0:46:40
deployments exactly
0:46:42
so it's not really the code i think is
0:46:45
we are not configuring the api gateway
0:46:55
deployed it if you wanna um open up the
0:46:58
video and and then
0:47:00
one what i really wanna do now is i want
0:47:06
keep pausing the video and
0:47:08
look make change look make change in
0:47:11
that way and step by step
0:47:17
like if this doesn't work as well maybe
0:47:20
i can give aws a go
0:47:22
um okay wps as in i can try opening a
0:47:26
boost console on my end
0:47:29
okay yeah yeah you can do that as well
0:47:33
see in like details as well yeah
0:47:38
and you should have the access to cloud
0:47:44
but if you don't let me know i'll i'll
0:47:52
all right i've just sent you the new end
0:47:58
and actually i'm gonna
0:48:01
send this endpoint to some other person
0:48:08
to that api as well
0:48:12
but i can do that afterwards
0:48:18
um also resource not found right now so
0:48:23
apex resource resource not found i guess
0:48:36
yes i'm just about to change the
0:48:41
dad what's that says leaky to the chat
0:48:52
nice try that was that i like you
0:48:59
i remember seeing a cloud guru videos um
0:49:04
but in one of their videos they exposed
0:49:08
one of the end points
0:49:14
people started commenting
0:49:17
and when i came back a week later
0:49:19
towards the same video the end point was
0:49:23
they mentioned at the end of the video
0:49:25
that oh yeah people are spamming it so
0:49:34
that was actually funny
0:49:36
when our one got spammed
0:49:40
i thought the hang on have we already
0:49:43
done some autumn automation
0:49:45
functionality that we don't even know
0:49:52
yeah yeah it's not that like at all
0:50:09
did you get your vaccines in
0:50:11
no i don't plan to
0:50:14
get it unless i really really have to
0:50:17
then are you an anti-hex nest i don't
0:50:22
i just don't see the need as in for me i
0:50:30
myself in that in that way but
0:50:34
i'm actually taking these really good
0:50:38
vitamins every day and
0:50:43
started to take them
0:50:48
i haven't fallen ill at all
0:50:52
yeah that's pretty good but i guess that
0:50:57
the new variant is pretty dangerous um
0:51:02
and like even if you're like
0:51:04
really really immune to other stuff it
0:51:07
really doesn't matter i guess like if
0:51:09
it's affecting young people as well
0:51:13
i mean each jab that's why i said that
0:51:17
if i really have to yes of course i will
0:51:24
i guess what i'm trying to say that if i
0:51:33
take it but i don't see the need of it
0:51:36
at that moment i'm not gonna
0:51:39
so what's the objective okay
0:51:42
what's the point when you consider
0:51:46
if i'm i need to go
0:51:49
into national as in
0:51:51
back home in the uk and the part of the
0:51:55
requirement is to okay
0:51:57
if you want to go you have to
0:52:00
do this then yes of course i will
0:52:05
um so these kind of cases
0:52:08
they would actually come in
0:52:11
okay yeah fine here we go
0:52:15
but other than that um
0:52:20
personally for myself
0:52:23
i don't think there's a need of it at
0:52:27
right right nowadays and yeah they're
0:52:34
yeah yeah for sure i mean um
0:52:36
it is just like yeah it is um
0:52:39
what do you call it like it's voluntary
0:52:57
to be honest i didn't even
0:53:02
one you were talking about as in
0:53:06
i don't even know what is
0:53:12
news i get a lot of news for everyone
0:53:17
that i talk to as in
0:53:20
as in you are one of my
0:53:23
news channels as well now
0:53:26
so i don't really have to see the news
0:53:30
see that yeah it's just
0:53:33
yeah i want to focus on
0:53:36
other more important things
0:53:41
it's good to be in front what's going on
0:53:43
though yeah of course
0:53:46
one day we'll do like a surprise trivia
0:53:50
i'll just ask you the number of cases
0:53:54
actually i don't even know
0:53:57
do you know very interesting
0:53:59
that was not range really
0:54:02
you must know like tens or 150
0:54:09
say i know that is it's in the hundreds
0:54:15
okay then i don't know
0:54:19
oh oh no i was talking about this
0:54:28
i was thinking more of victoria
0:54:30
right right uh victoria are below 100
0:54:34
i'm pretty sure but i don't i don't know
0:54:39
come on that's really open-ended
0:54:47
let's just focus on
0:54:50
there's because i really want to get
0:54:51
this done um e i'm just checking if i'm
0:54:56
go then playing right
0:55:02
let me play the video yeah
0:55:06
uh alvin z says uh okay cool see
0:55:12
why i say i talk to many people and they
0:55:16
all give me the less news so i don't
0:55:22
but is it is it a google search
0:55:28
i prefer to stay away from those kind of
0:55:32
things man as in they're really kind of
0:55:37
how is knowing that i'm wrong this is
0:55:41
because it really i can't believe i
0:55:44
talked to you got that off to the stream
0:55:47
because i already want to get this
0:55:54
right so the end point says it is valid
0:56:03
okay uh if you want to bring up the
0:56:06
video and then i'll bring up
0:56:18
maximize the screens somehow
0:56:23
yes i can but just i'm just maximizing
0:56:28
screen because i've got one
0:56:34
screen and one small screen just give me
0:57:02
don't embarrass me now
0:57:06
longer than five seconds
0:57:09
all right cool yeah
0:57:25
servers described it was required as for
0:57:28
no access control allow origin header
0:57:30
present or no access control allow
0:57:33
headers headers present
0:57:35
let's see how to identify the cause of
0:57:37
the error from your browser window here
0:57:40
i am trying to invoke my api from the
0:57:42
browser but i am receiving a course
0:57:44
to see more details of the error let's
0:57:46
use the browser developer tools open the
0:57:49
developer tools on your browser in
0:57:51
firefox or chrome right click on the
0:57:52
screen and then select the inspect
0:57:55
make the request to your api and then
0:57:57
check the console tab
0:57:59
here you can see the error message
0:58:00
returned in the response
0:58:02
to see more information about the
0:58:04
headers that are returned in the
0:58:05
response and their corresponding values
0:58:07
check the network tab
0:58:09
now to avoid the error no access control
0:58:11
allow origin header is present on the
0:58:13
requested resource for a public rest api
0:58:16
verify the following the rest api
0:58:18
resource is configured with an options
0:58:23
i think our error is different
0:58:28
our error it corresponds to we don't
0:58:31
have the http code status as in okay
0:58:37
yes um i guess he comes that comes to
0:58:40
that as well the pre-flight one as well
0:58:43
and it's not even about that i guess
0:58:45
it's just about configuring chords right
0:58:49
yeah yeah all right yeah
0:58:51
we can go back to that we you're right
0:58:55
i'm really curious what did i miss
0:59:00
that returns the required course headers
0:59:02
the http methods get
0:59:04
put post etc associated with the
0:59:07
resource are also returning the required
0:59:09
course headers in case of both proxy and
0:59:12
non-proxy integrations
0:59:14
let's see how we can configure course or
0:59:16
rest api from the api gateway console
0:59:19
for this setup i've already created an
0:59:21
api gateway with a resource called test
0:59:24
to enable course on this resource select
0:59:26
this resource and choose actions
0:59:28
select enable course
0:59:35
actually what i'm gonna do is
0:59:39
okay that's fine um
0:59:42
test so in our case
0:59:44
it would be proxy yeah
0:59:50
enabling course also select these check
0:59:52
boxes for adding course headers for
0:59:56
for example select default 4x6 and
0:59:58
default 5x so that the api gateway sends
1:00:01
the required headers even if the request
1:00:03
doesn't make it to the endpoint so that
1:00:05
a gateway response is sort
1:00:07
for example in case of missing
1:00:09
authentication token error when the
1:00:10
resource path entered is invalid we use
1:00:13
the gateway response
1:00:15
you can also select the http methods
1:00:17
configured with this resource where you
1:00:19
want to enable the course headers
1:00:21
after we enable course on an http method
1:00:24
in api gateway an options method
1:00:27
see we didn't have all of these
1:00:32
we had okay so we're not supposed to
1:00:35
have all of this because we don't have a
1:00:37
get method firstly
1:00:40
and she has it but accept the get method
1:00:44
once we i'm pretty sure
1:00:48
um just bear with me for a sec i'm gonna
1:00:57
we can always come back
1:01:00
right um we won't have just two of them
1:01:06
third is added to the resource if it is
1:01:10
also the 200 response of the options
1:01:13
method is automatically configured to
1:01:15
return the three access control
1:01:21
wanted to check how has she configured
1:01:26
i don't think so it's here do you want
1:01:32
do you want to see something else
1:01:36
uh actually just give me a moment i
1:01:41
want to see something else
1:01:43
just doing enabling course default that
1:01:52
one yeah options yeah
1:01:56
that's fine access control to options
1:02:01
get ready for gateway
1:02:05
two of them would be for post which is
1:02:08
fine ej if you can go to post now
1:02:15
to fulfill the pre-flight handshakes
1:02:18
we can see an options method is covered
1:02:19
for this resource with mock integration
1:02:26
right so this is the options one right
1:02:29
and her method response looks like this
1:02:33
but this is on options that's not on
1:02:37
yeah but like our our thing is being
1:02:39
called from options only not proposed
1:02:42
just bare with me for a minute
1:02:46
um i need to get the
1:02:51
okay ah northern understand what am i
1:02:56
cloud formation stack
1:02:58
and get the lambda from there
1:03:02
there we go so you didn't do that
1:03:12
configuring our post method now
1:03:36
okay we need to add a model
1:03:50
slash jason all right
1:03:53
there we go that one
1:04:01
um just bear with me for
1:04:05
i've just added the model so
1:04:08
now i'm gonna go to
1:04:14
post method can you check
1:04:17
she hasn't even tested you okay cool
1:04:20
so i'm gonna just do that one
1:04:26
okay i'm just saying i'm referencing
1:04:30
api to take in the
1:04:34
lambda function in the post method
1:04:44
ah come on api get right
1:04:47
then could we be something related to
1:04:53
do you know how we have a method
1:04:54
response with the model
1:05:02
yeah so model basically
1:05:05
defines what kind of data types or like
1:05:07
what kind are we going to use
1:05:11
that is in the method response
1:05:13
so that being said
1:05:15
you know how we change the whole api to
1:05:18
um actually respond with something like
1:05:20
respond with a string
1:05:23
and not with an empty um
1:05:27
does that make sense
1:05:37
trying to understand what you say so
1:05:40
basically you're saying that
1:05:43
because in the api it says
1:05:46
method response is empty
1:05:54
we actually return a string
1:05:59
i don't think that would be it
1:06:01
because the fact that the response is
1:06:04
taking the application slide
1:06:08
and empty is just the
1:06:11
name of it that's all how are you sure
1:06:14
that it's actually taking it
1:06:20
the content type should be application
1:06:26
yeah but like like we're not sure that
1:06:28
the request is going through or not
1:06:30
um is it is it a configuration problem
1:06:34
or is it not penetrating through as well
1:06:37
and it kind of like
1:06:40
like a thing right like if we are saying
1:06:43
model is empty and then we say we're
1:06:45
returning a string
1:06:51
right so what does um a model do
1:06:56
to my understanding it defines what kind
1:07:01
we're gonna use in that particular place
1:07:03
but but but let's try what she's doing
1:07:07
um then we can come to this thought
1:07:13
right i'll play the video for now and
1:07:19
so just watch yeah i want to check
1:07:23
i just want to check the post method as
1:07:26
you know what what content she has so if
1:07:29
you can fast forward and then we can
1:07:31
always come back to
1:07:33
this stage yeah but before jumping to
1:07:36
post method are you sure the options
1:07:38
method looks like this
1:07:43
i'm pretty sure yes yeah right
1:07:50
a screenshot on your end
1:07:54
just to uh command shift
1:08:00
oh you no i think i need to take
1:08:02
screenshots from your options method
1:08:03
then only we can compare or you need to
1:08:06
take screenshots okay so at the moment i
1:08:08
don't have the options method that comes
1:08:11
after our enable course
1:08:13
oh you haven't all right okay right now
1:08:16
because to do that i need to configure
1:08:21
okay i'll go to the poor with
1:08:25
if you select the integration response
1:08:27
section of this method you can see that
1:08:29
the course headers are already added
1:08:31
similarly the course headers are added
1:08:33
to the get and post methods configured
1:08:37
note that if you are using a proxy
1:08:39
integration with your http method you
1:08:41
must send the required course headers
1:08:43
from the backend itself
1:08:45
after you enable these settings and send
1:08:47
the required course headers you can
1:08:49
resolve the error while accessing your
1:08:51
api thanks for watching and happy class
1:08:54
she never did open tv
1:08:57
right okay cool no problem at all um
1:09:05
now mine um okay cool so i'm just
1:09:14
right and i'll bring i share my screen
1:09:19
you know hang on a minute
1:09:24
i showed your screen all right
1:09:30
let's just bring your hair
1:09:34
okay so i'm just gonna enable calls here
1:09:39
and if you see that will actually
1:09:42
give us all of those options
1:09:48
but the only difference is that
1:09:51
get method isn't there okay
1:09:53
you don't have it it won't be there
1:09:57
i'm just gonna go replace
1:10:04
oh boy i guess we should come back to it
1:10:08
yeah yeah it's just
1:10:12
try and work on it in my
1:10:26
another interesting episode
1:10:38
um dad was there is asking
1:10:41
where are you from queensland nope we
1:10:44
are not from queensland
1:10:46
that was there we are um in melbourne
1:10:53
yeah i mean it's been an interesting
1:10:57
session though as as in
1:11:00
i'm actually learning a lot from trying
1:11:03
to fix this kind of issue
1:11:08
i guess you're learning what not to do
1:11:10
yeah everything not to lose
1:11:14
you make a whole little playlist about
1:11:16
yeah yeah we'll try that
1:11:21
you can always come back to it tomorrow
1:11:22
and like of course we're gonna figure it
1:11:24
out at some point like yeah that's yeah
1:11:26
this is gonna happen um yeah it's just a
1:11:32
like the good part is we'll block it and
1:11:35
then it'll be embedded in our minds what
1:11:38
we actually did um yeah yeah
1:11:43
positive feeling that this will sort
1:11:45
itself out tomorrow
1:11:48
if we look at everything closely and
1:11:51
maybe try rolling back to the code as
1:11:55
we can have a look if that's the problem
1:12:00
yeah we can always compare the code
1:12:07
yeah do you have anything
1:12:12
from that just wanted to say thanks to
1:12:15
our viewers who tuned in
1:12:18
we really appreciate you guys and um
1:12:21
keeping along with the
1:12:30
tune in tomorrow ninth day
1:12:32
um and we will see you then and
1:12:37
working on this same thing and hopefully
1:12:40
we will get a face
1:12:44
fingers crossed uh do you want to add
1:12:46
anything to that okay
1:12:48
no yeah thanks guys for joining um i
1:12:51
guess tune in tomorrow to see what
1:12:56
perfectly guys same time
1:12:59
in place same task
1:13:02
we'll see you tomorrow and have a good