fixed a request to /trainer/undefined
Try to send hints of errors' reasons