debug unexpected response from gateway