We are currently in the process of building an API using AppSync and have hit a bit of an issue.
Our information security policies dictate that we should not expose specific technical details in responses to users. Currently if a JavaScript error occurs in a pipeline resolver function, the error will bubble to the client in the response with some technical information.
For example, if we attempt to access a property on a null object, an error something like this will be returned:
We are currently in the process of building an API using AppSync and have hit a bit of an issue.
Our information security policies dictate that we should not expose specific technical details in responses to users. Currently if a JavaScript error occurs in a pipeline resolver function, the error will bubble to the client in the response with some technical information.
For example, if we attempt to access a property on a null object, an error something like this will be returned:
There does not seem to be a way to intercept these types of messages. AppSync will return early and bypass the remaining pipeline functions.
Could there be an option to hide details of JS runtime errors in responses?
In the meantime, does anyone know how I can work around this issue?
Thank you