xetdata / pyxet

Python SDK for XetHub
https://xethub.com/
BSD 3-Clause "New" or "Revised" License
47 stars 7 forks source link

Show server message on exception #145

Closed seanses closed 3 months ago

seanses commented 3 months ago

Depends on https://github.com/xetdata/xet-core/pull/391. Fix FUN-90.

Some tests on most used path:

(.env) di@di-mbp ~/xetdata/pyxet/python/pyxet % xet ls xet://localhost:3000:seanses-local/comp             
Repository is not accessible to free tier accounts. Upgrade your XetHub subscription to access private repositories: http://localhost:3000///subscription/upgrade.
(.env) di@di-mbp ~/xetdata/pyxet/python/pyxet % xet ls xet://localhost:3000:seanses-local/comp/main
Repository is not accessible to free tier accounts. Upgrade your XetHub subscription to access private repositories: http://localhost:3000///subscription/upgrade.
(.env) di@di-mbp ~/xetdata/pyxet/python/pyxet % xet ls xet://localhost:3000:seanses-local/comp/aomen
Repository is not accessible to free tier accounts. Upgrade your XetHub subscription to access private repositories: http://localhost:3000///subscription/upgrade.
(.env) di@di-mbp ~/xetdata/pyxet/python/pyxet % xet cp -r xet://localhost:3000:seanses-local/comp/main .
Repository is not accessible to free tier accounts. Upgrade your XetHub subscription to access private repositories: http://localhost:3000///subscription/upgrade.
(.env) di@di-mbp ~/xetdata/pyxet/python/pyxet % xet cp -r src xet://localhost:3000:seanses-local/comp/main        
Repository is not accessible to free tier accounts. Upgrade your XetHub subscription to access private repositories: http://localhost:3000///subscription/upgrade.