优步 Python API returns uber_rides.errors.ClientError

UBER Python API returns uber_rides.errors.ClientError

我写了一段代码获取商品信息。我使用了他们 github.

中提供的代码
from uber_rides.session import Session
session = Session(server_token="key_given_here")

from uber_rides.client import UberRidesClient
client = UberRidesClient(session)
response = client.get_products(12.9242845,77.582953)
products = response.json.get('products')
print products

它returns出现以下错误:

uber_rides.errors.ClientError: The request contains bad syntax or cannot be filled due to a fault from the client sending the request.

为什么会这样。我的代码有什么问题?

我得到了答案。代码运行完美。我提供的 server_token 中缺少一个字符。