Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • henos kwame
    henos kwame
    37 Points

    NAME AND COMMENT NOT POSTING

    Posted January 7, 2025 4:38pm by henos kwame
    henos kwame
    37 Points
    • JavaScript
    • Posting Data with fetch()

    0 Answers

  • Amy Preci
    Amy Preci
    6,543 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
    6,543 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,136 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,136 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

  • vamosrope14
    vamosrope14
    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 vamosrope14
    vamosrope14
    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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord