introspection: give a clear error message when introspection is maybe just disabled #187
Labels
feature 🎉
new commands, flags, functionality, and improved error messages
Milestone
By default, and since it can be a best-practice for many servers, Apollo Server disables introspection in production (determined by
process.env.NODE_ENV === "production"
). This, coupled with the current error messaging behavior of theapollo
CLI results in a sub-par user-experience for those who are trying to introspect their production server.While I'm not sure what all the error messaging considerations are right now, we can help the user by offering "introspection might be disabled" as part of the error output if we just literally do not get any introspection response from an endpoint.
The text was updated successfully, but these errors were encountered: