Fix type error in get challenge api.

Fix type error in get challenge api.