JavaScript error: Response.json is not a function | Bugfixes
HTML-код
- Опубликовано: 8 сен 2024
- --
Follow Me Online Here:
🌏 My website/blog - peterelbaum.com
✉️ My newsletter (weekly on Sundays) - peterelbaum.co...
🤓 My courses: peterelbaum.gu...
🗣 One-on-one mentoring - superpeer.com/...
🐦 Twitter: / peterelbaum
💻 GitHub: github.com/elb...
☎️ Office Hours: calendly.com/e...
--
My gear:
Main Camera: amzn.to/2Tv1WBe
Tripod: amzn.to/2t570AH
External HD: amzn.to/2t1UphI
Memory card: amzn.to/2UEQfIn
Computer mic: amzn.to/2t7mUue
--
Who am I?
I'm Peter Elbaum, a software engineer living in Raleigh, North Carolina. I make videos about code, software engineering career development, and self improvement. I also have a newsletter (peterelbaum.co...) and tweet my thoughts on money, work, and being a great dev. Feel free to get in touch!
performed all the steps above but still getting the same!
Awesome! Thanks for vid. I do find myself looking up the '...not a function' in the middle of a project. I am definitely saving this vid and subscribing
Glad it was helpful! :)
Great vid, very succinct. For feedback, I did find the 'blip' sound when the code highlighting moves to be a little distracting annoying.
Noted :)
wow! a clear explanation of what i was looking for!
Glad it was helpful!
There is a 3rd use case as well, when the data sent by the promise itself is not a valid JSON object. Please consider the following example-
const myPromise = new Promise((res,rej)=>{
res('100');
});
myPromise.then((data)=>{const res= data.json();}).then((data)=>{console.log(data);});
Hopefully, I'm making some sense here. And thank you for the knowledge you share with us.
So this sounds really great but, as someone who's quite new to this, what does the second solution mean? how am i supposed to let that resolve?