Jump into our new React Basics course 😎

Learn about our new Community Discord server here and join us on Discord here!

Probe The AI Multiverse: Exploring the Subfields of Artificial Intelligence 😮

Get job-ready with our Career Toolbox Track's career advice, resume tips, and more 🧰

New course: AI Tools for Designers 🎨✨

Students: got a cool project or resource to share? Submit it to Treehouse Links! 🤩

Learn about our new Community Discord server here and join us on Discord here!

🤖 Check out all our AI content here 👀

  • Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • AI
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
  • Amy Preci
    Amy Preci
    4,441 Points

    Why didn't we need to use async/await in this workshop at all? I often see it used with fetch.

    Posted July 16, 2023 3:12am by Amy Preci
    Amy Preci
    4,441 Points
    • JavaScript
    • Posting Data with fetch()

    1 Answer

  • karan Badhwar
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,135 Points

    return post data

    Posted February 28, 2022 7:23pm by karan Badhwar
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,135 Points
    • JavaScript
    • Posting Data with fetch()

    1 Answer

  • Damian Åšwieboda
    Damian Åšwieboda
    4,962 Points

    Posting comments dsnt work. I checked code few times, and I even copy and pasted Guil code form resources to download.

    Posted January 1, 2022 3:58pm by Damian Åšwieboda
    Damian Åšwieboda
    4,962 Points
    • JavaScript
    • Posting Data with fetch()

    1 Answer

  • Muaaz Matwadia
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Muaaz Matwadia
    Full Stack JavaScript Techdegree Graduate 19,327 Points

    API

    Posted April 6, 2021 8:43am by Muaaz Matwadia
    .a{fill-rule:evenodd;}techdegree seal-36
    Muaaz Matwadia
    Full Stack JavaScript Techdegree Graduate 19,327 Points
    • JavaScript
    • Posting Data with fetch()

    1 Answer

  • Eduardo Osorio
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Eduardo Osorio
    Full Stack JavaScript Techdegree Graduate 20,847 Points

    When making a POST request with fetch why do we chain a .then to get the response object?

    Posted January 27, 2021 4:53pm by Eduardo Osorio
    .a{fill-rule:evenodd;}techdegree seal-36
    Eduardo Osorio
    Full Stack JavaScript Techdegree Graduate 20,847 Points
    • APIs
    • Posting Data with fetch()

    1 Answer

  • Junior Aidee
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Junior Aidee
    Front End Web Development Techdegree Graduate 14,657 Points

    I am getting an error on the console. Please help! DevTools failed to load SourceMap: Could not load content for http://

    Posted December 8, 2020 6:28am by Junior Aidee
    .a{fill-rule:evenodd;}techdegree seal-36
    Junior Aidee
    Front End Web Development Techdegree Graduate 14,657 Points
    • JavaScript
    • Posting Data with fetch()

    2 Answers

  • anmo20
    anmo20
    6,470 Points

    How to get the dropdown and <p> to have the data from the random image loaded when the page initially loads?

    Posted October 5, 2020 6:32am by anmo20
    anmo20
    6,470 Points
    • JavaScript
    • Posting Data with fetch()

    1 Answer

  • Jonathan Ambriz
    PLUS
    Jonathan Ambriz
    Courses Plus Student 3,902 Points

    addEventListener UncaughtTypeError

    Posted September 12, 2020 3:55pm by Jonathan Ambriz
    Jonathan Ambriz
    Courses Plus Student 3,902 Points
    • JavaScript
    • Posting Data with fetch()

    1 Answer

  • Carlos Chavez
    Carlos Chavez
    5,691 Points

    Why replacing 'document' with 'form' gives different result?

    Posted July 3, 2020 12:51pm by Carlos Chavez
    Carlos Chavez
    5,691 Points
    • JavaScript
    • Posting Data with fetch()

    3 Answers

  • Joseph Michelini
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Joseph Michelini
    Python Development Techdegree Graduate 18,692 Points

    When I post, it doesn't post to console. But after a bit I am receiving this super weird error. Help!

    Posted June 2, 2020 10:52pm by Joseph Michelini
    .a{fill-rule:evenodd;}techdegree seal-36
    Joseph Michelini
    Python Development Techdegree Graduate 18,692 Points
    • APIs
    • Posting Data with fetch()

    1 Answer

  • Richard Preske
    PLUS
    Richard Preske
    Courses Plus Student 4,356 Points

    Converting a basic AJAX program

    Posted May 3, 2020 1:55am by Richard Preske
    Richard Preske
    Courses Plus Student 4,356 Points
    • JavaScript
    • Posting Data with fetch()

    1 Answer

  • Serge Churkin
    Serge Churkin
    3,267 Points

    Updating UI elements (output of posted comment), need an example

    Posted April 15, 2020 1:27pm by Serge Churkin
    Serge Churkin
    3,267 Points
    • JavaScript
    • Posting Data with fetch()

    1 Answer

  • David Mulholland
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    David Mulholland
    Full Stack JavaScript Techdegree Graduate 24,063 Points

    Cant get a response to the console when I post using fetch()

    Posted January 9, 2020 1:16pm by David Mulholland
    .a{fill-rule:evenodd;}techdegree seal-36
    David Mulholland
    Full Stack JavaScript Techdegree Graduate 24,063 Points
    • APIs
    • Posting Data with fetch()

    2 Answers

  • Joshua Ouma
    Joshua Ouma
    20,865 Points

    In the console I only see the Id and not the name and comment key values as shown in Guil's code. Why?

    Posted October 18, 2019 8:22am by Joshua Ouma
    Joshua Ouma
    20,865 Points
    • JavaScript
    • Posting Data with fetch()

    1 Answer

  • Christian Delos Reyes
    Christian Delos Reyes
    9,199 Points

    Further explanation on "headers" and "body" part?

    Posted September 17, 2019 12:17am by Christian Delos Reyes
    Christian Delos Reyes
    9,199 Points
    • JavaScript
    • Posting Data with fetch()

    1 Answer

  • Amandeep Pasricha
    Amandeep Pasricha
    14,932 Points

    Does the data we post to the server have to be as a string? That's why we used JSON.stringifiy?

    Posted July 14, 2019 6:46pm by Amandeep Pasricha
    Amandeep Pasricha
    14,932 Points
    • JavaScript
    • Posting Data with fetch()

    1 Answer

  • Martin Park
    Martin Park
    12,792 Points

    How to combine fetch() POST method with php?

    Posted March 15, 2019 4:27pm by Martin Park
    Martin Park
    12,792 Points
    • PHP
    • Posting Data with fetch()

    2 Answers

  • Lauren Inacio
    Lauren Inacio
    2,871 Points

    'Access-Control-Allow-Origin' header has a value 'null' that is not equal to the supplied origin. Origin 'null' is there

    Posted April 2, 2018 11:31pm by Lauren Inacio
    Lauren Inacio
    2,871 Points
    • JavaScript
    • Posting Data with fetch()

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.