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

269
Vistas
Why error 500 response in pterodactyl api?

I'm making a system that could create a pterodactyl user account with the given variable. I used the fetch function(POST) in js to create the request. But whenever it submits, an error 500 appears in the console log. I'm just wondering how to fix it

Code:

fetch('https://corsproxy.io/?' + encodeURIComponent('https://servers.chynodes.xyz/api/application/users'), {
            "method": "POST",
            "headers": {
                "Accept": "application/json",
                "Content-Type": "application/json",
                "Authorization": "Bearer api_key", //i replaced the api key with that for safety reasons
                "cookie": "pterodactyl_session=eyJpdiI6ImlHS1Y5VGdPTXJPb2FMVDRBYWw3Y3c9PSIsInZhbHVlIjoiSW1Ra1dEakUrZjRGZzEzcXRRTWkraUc2N3ZsL0F4Ym9QVFgxWTMyYTg1cDRiM0srS0ZvWlBOZCt6Wk0vNW1meTVud0pIaU5YNW1pRFIrYTZGQ3o4Wm4weERteHVJaVBrRmcyS2l3WTVISEsvOUJoaTV0MWxNWkYwOEtMd082bVUiLCJtYWMiOiI3NmVmNDk3MzNiNWNjMzhlOTliMzQxNjFjMjUyOGI1N2U2ZWU2OWQ1ZGJlZWE3NjlmZDRkMTdmMjBmMjI2YWM2In0%3D"
            },
            "body": {
                "email": "example@gmail.com",
                "username": "exampleusername",
                "first_name": "Exam",
                "last_name": "Ple"
            }
        })
        .then(response => console.log(response))
        .catch(err => console.error(err));

I used corsproxy.io to bypass cors without any fuss

about 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
Recomiéndame algunas ofertas
Necesito ayuda