Another weird bug but im getting when making a GET...
# api
v
Another weird bug but im getting when making a GET request to the users api
Copy code
{
  "message": "'invalid_type' in '0,metadata,proPaidForByTeamId': Expected string, received number"
}
z
What's you username?
v
so oddly this works for me but not others in my team. Can you check
jayscalendar
z
Made a possible fix and deploying now....
Also, are you using metadata for something specific?
v
i need the userIds for the availability api
z
But those aren't in metadata AFAIK
@Agusti
a
@Vikram you can also pass username if that helps
Will look into the metadata validation issue
Could you share your users metadata to try and reproduce on my end?
Hmm yeah this is new
proPaidForByTeamId
to me will look into this
v
@Agusti i tried using username for the availability api and I got this
Copy code
{
  "message": "'invalid_type' in 'userId': Required; 'invalid_type' in 'userId': Required"
}
@Vikram right I think I made it -required- in typescript… but which endpoint are you calling Vikram?
a
ok will fix that should work with either username or id, no need for both
v
any way i can get my teams userIds for now? Just want to unblock myself
a
I think we would need to improve either teams or memberships endpoints for that no?
Right now it’s very user centric, so not usable for you I think Vikram, what would you need. If you get a team with ID there’s no relationship of memberships there right?
Maybe we could add it there?
v
yea ideally we get all team members information under the teams api
👍 1
a
OK, pushed to prod optional userId, should be working in a few minutes
Will look into adding members to teams now
v
tbh the concept of teams needs alot of work. for example the way I am currently making a booking for another team member is swapping api keys to specify which user. I think we should be able to pass userId to all endpoints and just have a service account api
can u dm my teams user ids? that would really help me out while I wait
a
For the availability API or otherwise?
Gimme their usernames
And yeah we definitely need to improve teams in the future
v
for the availability api. usernames are • cp808 • jayscalendar • ccarames • bri
a
availability should work with usernames in a minute or less
message has been deleted
Let’s wait first and try if that works?
Try now, live on prod
v
it works!
thanks
a
If you still need the userIds let me know, because I need to get into the prod database for that
Ok great!
Better fix it at root! 😉
❤️ 1
🙏 1
v
amen
🙏 1