Azure / azure-cosmos-python

🚨🚨🚨This SDK is now maintained at https://github.com/Azure/azure-sdk-for-python 🚨🚨🚨
https://github.com/Azure/azure-sdk-for-python
MIT License
150 stars 141 forks source link

Connexion fails due to fr_FR locale on Ubuntu #137

Closed vchalmel closed 4 years ago

vchalmel commented 6 years ago

I have two environments with python3 on Ubuntu and Windows using pydocumentdb to connect to cosmosdb.

Windows machine (python 3.5.4, locales set to fr_FR, CP_1252) can connect but Ubuntu machine (Python 3.5.2, locales set to fr_FR,UTF-8) couldn't. Error Message of the HTTPFailure is "The input date header is invalid format. Please pass in RFC 1123 style date format. workaround by adding ` import locale

locale.setlocale(locale.LC_ALL,['en_US','UTF-8']) ` (workaround found on a similar bug report for the java documentDB driver)

christopheranderson commented 6 years ago

Thanks for reporting and providing clear repro. Looks like we need to be more careful about which dates formats are getting used. We'll finish investigating and issue a fix.

southpolesteve commented 4 years ago

Closing this issue due to age. Active development of our Python SDK has moved to https://github.com/Azure/azure-sdk-for-python. We have also released 4.0 which includes many updates and new features. If this issue still needs our attention, please reopen it in the new repository.