Where exactly do you see this error, in browser’s console? If this is from browser, can you share also the pm2 logs if you have something there.
This error occurs only when you are trying to access /graphql
path or you get it even on http://localhost:1337/
?