I am assuming this is coming from the front end? What is the last successful line before the .catch( (error) => {.