throwing error when receiving a string value back on a request