The problem with http only is if you want to send it in the header as a bearer token for backend API access you can't with JavaScript, and if you use the same site thing you'll have the same issue as the backend will be running on a different port , so how can you perform API calls from the front end without using local storage or a non http only cookies ?? I still can't find a good answer 😭
@webdevlog2 ай бұрын
Different port means it's a different origin, so that's part of the CORS limitations and it won't work. Setup a reverse proxy on the same port that extracts the token from the cookie and forward the requests
@Hakkene3 ай бұрын
thanks
@suresranathunga6 ай бұрын
💙💙
@boopfer3877 ай бұрын
Vs sqllite?
@cusematt237 ай бұрын
Very helpful video. Thanks for this.
@kaloyangeorgiev68247 ай бұрын
Amazing video, really helpful! I just want to ask, isn't the idea of Central Error Handling to remove a big amount of "try-catch"s in the code? In the way in the video, it looks like we are just transforming the errors for better usage and handling?
@webdevlog7 ай бұрын
Hey, thanks a lot for the comment Yes the idea is both to reduce the amount of try and catch, and also give an opportunity for consistent error handling When it comes to things like validation errors you will still need to throw yourself because you want to tell the user something, but the part that handles it is centralized. In the video we are adding try and catch to places where it the program should fail and is not mandatory to do so, but we're doing that just to add some extra information to what happened, because we are sending these errors as logs. So to answer your question while it reduces the amount of try and catch in the code there will still be places where you'll want to add some context yourself and it depends on your specific situation
@Hamzaelbouti9 ай бұрын
Correction : it can store up to 60% of available storage
@aryanrahman32129 ай бұрын
Well made succinct video
@nazihboudaakkar8117 Жыл бұрын
I did love the explanation, you went into the right amount of depth and explained it well, you gave enough information for the developer to decide on the solution whether it is for them or not Thank you for this gem and best of luck
@webdevlog Жыл бұрын
Thanks a lot for the comment appreciate it
@transcribersworld7116 Жыл бұрын
can I delete it? It takes 400mb on my brave browser.
@roniyerushalmi2765 Жыл бұрын
I never encountered such a detailed overview of observability’s definition in a while. Thank you for taking the time & effort in creating such a great explanation video
@webdevlog Жыл бұрын
Thank you so much
@bytebrilliance_ Жыл бұрын
Very nicely explained. Thank you!
@webdevlog Жыл бұрын
No problem. Thanks for your comment
@stuti4076 Жыл бұрын
Can we use firebase instead of it ?
@Talel_kraiem Жыл бұрын
Amazing explanation ❤
@webdevlog Жыл бұрын
Thank you <3
@philliam111 Жыл бұрын
you need to speak more clearly.. the editing was on point but at around 2:45 you mumble terms which are important to know. Please take this as constructive not trying to hate other than that great video
@webdevlog Жыл бұрын
Appreciate the honest feedback, thank you.
@dawidniegrebecki2205 Жыл бұрын
I’ve been in web dev for 3 years and I didn’t know that existed.
@mize_yir_bizz Жыл бұрын
I watched a program where a Hacker was describing how he set up api's to sneak in the back door to vulnerable pc's .. beware!
@rashidbik8039 Жыл бұрын
but i steel dont know should i use it or not 😂🤣😅
@gramajocristianismael282 Жыл бұрын
I've need this, thanks
@webdevlog Жыл бұрын
You're welcome,. thanks for the comment
@rodblues6832 Жыл бұрын
Nice clip of Sai Baba!
@dtvind Жыл бұрын
Need flow diagram for this ?
@dr.ddavid3496 Жыл бұрын
4k views and only 9 comments come on people , lol
@webdevlog Жыл бұрын
💚
@cidhighwind859012 күн бұрын
Comment
@brianevans4 Жыл бұрын
at 8:00, if you send a big object to a webworker to insert into indexedDB, does it block the main thread to structured clone the big object to postMessage to the worker, or is that asyncronous?
@webdevlog Жыл бұрын
The insertion itself to indexedDB from the webworker will be async but the postMessage will run structured clone if it's an object.
@adrianooo3658 Жыл бұрын
You've just got a subscribed <3
@webdevlog Жыл бұрын
Thank you!
@noymorgenshtein91912 жыл бұрын
thanks mate
@janaelmourad96812 жыл бұрын
thanks for the great video , does it make sense to have the 'isOperational' property ? isn't going to be always true? (since we are not going to throw programmers errors)
@webdevlog2 жыл бұрын
It make sense because sometimes you want to throw operational errors so the middleware catches and logs it but will not restart the server (Because we know it’s not an error that could cause problems if we don’t restart)
@janaelmourad96812 жыл бұрын
@@webdevlog Thank you for your reply , i thought that programmer errors are unexpected so we are not going to know when to throw them (uncaught exceptions ), could you please give an example where we will need to throw programmer errors ,thanks in advance !
@webdevlog Жыл бұрын
@@janaelmourad9681 Sorry I meant to write operational errors :)
@tukurhamid2 жыл бұрын
Hello, can I save results from an SQL query to indexedDB?
@hurontermico86772 жыл бұрын
Thanks for the info! ❤
@art4thesoul2 жыл бұрын
אחלה תודה
@hakouguelfen91872 жыл бұрын
impressive, thanks
@sankalp_choudhary2 жыл бұрын
Very good video for handling error
@rockon74782 жыл бұрын
very very helpful and highly insightful video, thank you very much for sharing!
@sabuein2 жыл бұрын
Thank you so much, very helpful.
@eitanmizrachi45302 жыл бұрын
Gracias por la info
@analuiza26772 жыл бұрын
Thanks SOOOOOO MUCH FOR THIS VIDEO.
@webdevlog2 жыл бұрын
You're welcome :) Thanks for the comment!
@galactusclb57332 жыл бұрын
Very helpful video😍😍 Hey, Could you do a video about NodeJs with MySQL DB transactions and their error handling?
Пікірлер
6:26 bruhhh
😂
Excellent video. Thank you!
Thanks my friend!
I'll just subscribe.
Thanks for that!
1.25x
The problem with http only is if you want to send it in the header as a bearer token for backend API access you can't with JavaScript, and if you use the same site thing you'll have the same issue as the backend will be running on a different port , so how can you perform API calls from the front end without using local storage or a non http only cookies ?? I still can't find a good answer 😭
Different port means it's a different origin, so that's part of the CORS limitations and it won't work. Setup a reverse proxy on the same port that extracts the token from the cookie and forward the requests
thanks
💙💙
Vs sqllite?
Very helpful video. Thanks for this.
Amazing video, really helpful! I just want to ask, isn't the idea of Central Error Handling to remove a big amount of "try-catch"s in the code? In the way in the video, it looks like we are just transforming the errors for better usage and handling?
Hey, thanks a lot for the comment Yes the idea is both to reduce the amount of try and catch, and also give an opportunity for consistent error handling When it comes to things like validation errors you will still need to throw yourself because you want to tell the user something, but the part that handles it is centralized. In the video we are adding try and catch to places where it the program should fail and is not mandatory to do so, but we're doing that just to add some extra information to what happened, because we are sending these errors as logs. So to answer your question while it reduces the amount of try and catch in the code there will still be places where you'll want to add some context yourself and it depends on your specific situation
Correction : it can store up to 60% of available storage
Well made succinct video
I did love the explanation, you went into the right amount of depth and explained it well, you gave enough information for the developer to decide on the solution whether it is for them or not Thank you for this gem and best of luck
Thanks a lot for the comment appreciate it
can I delete it? It takes 400mb on my brave browser.
I never encountered such a detailed overview of observability’s definition in a while. Thank you for taking the time & effort in creating such a great explanation video
Thank you so much
Very nicely explained. Thank you!
No problem. Thanks for your comment
Can we use firebase instead of it ?
Amazing explanation ❤
Thank you <3
you need to speak more clearly.. the editing was on point but at around 2:45 you mumble terms which are important to know. Please take this as constructive not trying to hate other than that great video
Appreciate the honest feedback, thank you.
I’ve been in web dev for 3 years and I didn’t know that existed.
I watched a program where a Hacker was describing how he set up api's to sneak in the back door to vulnerable pc's .. beware!
but i steel dont know should i use it or not 😂🤣😅
I've need this, thanks
You're welcome,. thanks for the comment
Nice clip of Sai Baba!
Need flow diagram for this ?
4k views and only 9 comments come on people , lol
💚
Comment
at 8:00, if you send a big object to a webworker to insert into indexedDB, does it block the main thread to structured clone the big object to postMessage to the worker, or is that asyncronous?
The insertion itself to indexedDB from the webworker will be async but the postMessage will run structured clone if it's an object.
You've just got a subscribed <3
Thank you!
thanks mate
thanks for the great video , does it make sense to have the 'isOperational' property ? isn't going to be always true? (since we are not going to throw programmers errors)
It make sense because sometimes you want to throw operational errors so the middleware catches and logs it but will not restart the server (Because we know it’s not an error that could cause problems if we don’t restart)
@@webdevlog Thank you for your reply , i thought that programmer errors are unexpected so we are not going to know when to throw them (uncaught exceptions ), could you please give an example where we will need to throw programmer errors ,thanks in advance !
@@janaelmourad9681 Sorry I meant to write operational errors :)
Hello, can I save results from an SQL query to indexedDB?
Thanks for the info! ❤
אחלה תודה
impressive, thanks
Very good video for handling error
very very helpful and highly insightful video, thank you very much for sharing!
Thank you so much, very helpful.
Gracias por la info
Thanks SOOOOOO MUCH FOR THIS VIDEO.
You're welcome :) Thanks for the comment!
Very helpful video😍😍 Hey, Could you do a video about NodeJs with MySQL DB transactions and their error handling?
Thank you! Adding the idea to the list 😉
Great video, keep it up!😁
Thank you!
Great video, Thanks!
Thank you!
Great video
Thank you!