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

203
Views
How can I fix the error with my code? I use back4app

I've been using back4app for a challenge someone has give me. I use vanilla javascript with this and I need help with this error. It's error 206 Insufficient Auth. Here's my code. It's supposed to update the users className.

function updateClassName(foundUser) {
    const updateTo = document.getElementById("s-className").value;
    foundUser.set('classname', updateTo);
    foundUser.save().then(function(user) {
      console.log(user.get("classname"));
    }).catch(function(error) {
      console.log(error.code + " " + error.message);
    });
  }
  
  function read() {
    const User = Parse.Object.extend('User');
    
    const query = new Parse.Query(User);
    
    query.equalTo("classname", 'undefined');
    query.first().then(function(user) {
      if(user) {
        console.log(user.get("username"));
        updateClassName(user);
      }
      else {
        console.log("Nothing found...");
      }
    })
    
  }
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!