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.."}
}
........
}