milvus-io / milvus

A cloud-native vector database, storage for next generation AI applications
https://milvus.io
Apache License 2.0
30.07k stars 2.88k forks source link

error message is not clear when page_size is illegal #1075

Closed liangliu closed 4 years ago

liangliu commented 4 years ago

Describe the bug query like this: res = requests.get(self.HOST + 'tables', params={'offset':0,'page_size':92233720368547758070000000}) response is: {"message":"Query param 'page_size' is illegal:stol","code":36}

guess user cannot understand what is stol

Steps/Code to reproduce behavior Expected behavior Environment details Screenshots Additional context

BossZou commented 4 years ago

I see. Now if page_size or offset is illegal, the error message is like this:

{"message":"Query param 'offset' is illegal, only integer supported","code":36}