hydroshare / hsclient

A python client for interacting with HydroShare in an object oriented way.

Home Page:https://hydroshare.github.io/hsclient/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get userinfo by username error against hydroshare 1.50

zhiyuli opened this issue · comments

@sblack-usu

We are testing the "get userinfo by username" feature against hydroshare 1.50. We are seeing the following error on most users we intend to check on.

image

@sblack-usu it looks like a problem with the pydantic validator added to the User model in a21659b. I'll open a PR to fix this.

@zhiyuli, #34 should resolve this issue. I just verified it locally. @zhiyuli you can install my hotfix branch using: pip install git+https://github.com/aaraney/hsclient.git@fix_33.

I'll get a patch release out today. Thanks @aaraney.

@aaraney Thanks for the quick fix. We just tested it and ran into a new error for the following users
christinabandaragoda
jbeaulieu
paulfloury
linnea
rstrauch
gantian
stella
jpally
zzoo
kortney09
branhoff
scicommsadie
sohsaid
tonycastronova
gokulanand
github_zyli2004
uillinois_zhiyul
zhiyuli
uillinois_zhiyul@illinois.edu
laurencejnote
nicoleta
bechir
marti_nogues
ashlingj
maram
lgraup
motasem
kevinc0223
claracogswell
kristina_roller

image

@zhiyuli, having just tested a few of these users using the hsapi swagger docs, this appears to be an issue with the /hsapi/userDetails endpoint not hsclient directly. For that reason, I will open an issue on the HydroShare project, ref it here, and maybe we can move conversation there just for continuity.