Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

137
Vistas
PUT request from React through superagent being sent with no content

The method sending the request looks like this:

const updateCompany = ({sessionKey},company) => {
    const tempCompany = company.newCompany;
    console.log("sessionkey:" + sessionKey);
    console.log("check123" + JSON.stringify(tempCompany,getCircularReplacer()));
    const url = createServiceUrl(`api/company/${sessionKey}/${tempCompany.id}`);
    request
        .put(url)
        .send({ Company: tempCompany })
        .end((err, res) => {
            if (res.ok) {
                console.log("Updated OK!")
            }
        });
}

The check123 console.log prints the object I'm trying to send with all the expected values and keys, but for some unknown reason the request going out is completely empty and all I get back from the controller is a 204. I suppose I'm supposed to do something differently here, but I can't see what.

over 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Asistente virtual