sandbox-pokhara / league-client

league-client is a python package to communicate with riot servers
MIT License
27 stars 11 forks source link

Cannot get the Post Friend Request to work #26

Closed trackxx closed 3 months ago

trackxx commented 6 months ago

post_friend_request keeps returning false despite valid puu_id; Am I doing something wrong? frend

lemon-sandwich commented 5 months ago

I'm having the same issue. My response is {'errorCode': 'RESOURCE_NOT_FOUND', 'httpStatus': 404, 'message': 'Invalid URI format'}

@trackxx were you able to find a solution to this?

lemon-sandwich commented 5 months ago

post_friend_request keeps returning false despite valid puu_id; Am I doing something wrong? frend

Go to the friendrequests.py file and return the res.json instead of res.ok. The API returns a 204 status code. Which basically means that friend request has been sent.

pradishb commented 3 months ago

@trackxx The old friend request endpoint seems to have been removed.