Fixed the bug of error 500 if the API is not activated on the server
Fixed the bug of error 500 if the API is not activated on the server