Protocol error: expected '$', got ' '