No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Difficulty in creating payload for AXIOS post request

    Help
    2
    3
    155
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Charlotte last edited by

      Please help me!
      Ive been struggling to send an AXIOS post request to my server so that it can add a record to a mysql database. My latest attempt elicits an error - “PayloadTooLargeError: request entity too large”.
      This is my request :
      addtherecord() {
      this.$axios.post(‘http://45.32.144.199:3000/addtherecord’,{
      test_name: this.test_name,
      })
      .then(function (response) {
      currentObj.output = response.data;
      })
      .catch(function (error) {
      currentObj.output = error;
      });
      }
      What am I doing wrong?
      Many thanks

      1 Reply Last reply Reply Quote 0
      • A
        Andrewww last edited by

        usually i need to pass a header object as a 3 paramenter on a post request. check in postman for example that call with no headers and see if you get the same error

        1 Reply Last reply Reply Quote 0
        • C
          Charlotte last edited by

          I’ll try that. Thanks. I feel Ive been going round in circles trying to sort this.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post