error in stream-rest