Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

231
Views
Axios PUT got Unhandled Runtime Error Error: Request failed with status code 500

I have axios PUT method in API and it's got Unhandled Runtime Error

Here's Image of an Error

Error: Request failed with status code 500

update: async (article, pid, token) => {
        const { data, status } = await axios.put(
          `${apiPath}/articles/${pid}`,
          JSON.stringify({ article }),
          {
            headers: {
              'Content-Type': 'application/json',
              Authorization: `Token ${encodeURIComponent(token)}`,
            },
          }
        )
        return {
          data,
          status,
        }
      },

But for POST method it working real fine, so I'm in very deep confusion

create: async (article, token) => {
    const { data, status } = await axios.post(
      `${apiPath}/articles`,
      JSON.stringify({ article }),
      {
        headers: {
          'Content-Type': 'application/json',
          Authorization: `Token ${encodeURIComponent(token)}`,
        },
      }
    )
    return {
      data,
      status,
    }
  },
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!