Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

221
Visualizações
bad response 400 by graphql with strapi

I am using graphql with strapi to fetch data, but it says bad request.

I have already tested the code in development a thousand times it worked properly. I have deployed it on aws. Even some requests of the graphql were valid but suddenly it started showing me this.

Technologies related in this scenario is nginx, aws, typescript, strapi, graphql, axios, certbot

This request was made internally(localhost) with out touching the external ports.

 response: {     status: 400,
   statusText: 'Bad Request',
     headers: {
       vary: 'Origin',
       'strict-transport-security': 'max-age=31536000; includeSubDomains',
       'x-frame-options': 'SAMEORIGIN',
       'content-type': 'application/json',
       'content-length': '1325',
      'x-powered-by': 'Strapi <strapi.io>',
       'x-response-time': '7ms',
       date: 'Sat, 27 Nov 2021 17:52:22 GMT',
       connection: 'close'
       },
       config:{
        url: 'http://localhost:1337/graphql',
        method: 'post',
        data:{data:"somedata here.."}
        }
       ........
 }

This is the response I am getting enter image description here

This is the header I am sending enter image description here

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda