iranathan / robloxapi

A python module for using the roblox api
MIT License
33 stars 13 forks source link

TypeError: can only concatenate str (not "int") to str #11

Closed Jaguar-515 closed 5 years ago

Jaguar-515 commented 5 years ago

Code that I attempted to get working:

>>> import robloxapi
>>> rbx = robloxapi.client()
>>> profile = rbx.User.getProfile(1)

The error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Username\AppData\Local\Programs\Python\Python37-32\lib\site-packages\robloxapi\User.py", line 36, in getProfile
    status_req = self._request(url='https://www.roblox.com/users/profile/profileheader-json?userId=' + id)
TypeError: can only concatenate str (not "int") to str
sbhadr commented 5 years ago

That's a type error. When you try to combine two primitives with differing types. https://github.com/iranathan/robloxapi/pull/12