Get detail failed: TypeError: Cannot read properties of undefined (reading 'message')