Fix type error in get challenge api.
Merge pull request #352 from Ghost141/get_challenge_api_fix

Fix type error in get challenge api.