namaggarwal / splitwise

Python SDK for Splitwise
MIT License
183 stars 46 forks source link

Create Expense is not getting reflected #25

Closed mvsreejithfrnds closed 4 years ago

mvsreejithfrnds commented 4 years ago

I could post the create expense request successfully but not reflected in Spiitwise

Expense create completed without error but not reflected in Splitwise OAuth: Oauth 1.0 Api: create_expense Request (Body parameters) users0owed_share : 75.0 cost : 150.0 users1owed_share : 75.0 users1user_id : my user id users0paid_share : 0.0 description : "test" payment : false users1paid_share : 150.0 users0user_id : friend user id

Response Response{code=200, message='OK', body='null', headers={Transfer-Encoding=chunked, null=HTTP/1.1 200 OK, Server=nginx, X-Request-Id=2915a687-0d9b-4e6e-a9f0-18bf835d1dd5, X-Runtime=0.037593, X-Content-Type-Options=nosniff, Connection=keep-alive, Pragma=no-cache, Date=Fri, 03 Jan 2020 23:32:03 GMT, Via=1.1 vegur, Referrer-Policy=origin, X-Frame-Options=SAMEORIGIN, Strict-Transport-Security=max-age=31536000, Cache-Control=no-cache, no-store, max-age=0, must-revalidate, Content-Disposition=inline; filename="response.json", X-Xss-Protection=1; mode=block, Set-Cookie=, Vary=Accept-Encoding, Expires=Fri, 01 Jan 1990 00:00:00 GMT, Content-Type=application/json; charset=utf-8}}

krnbatra commented 4 years ago

I'm also not able to createExpense. It displays the following error. I'm using the same example as listed in the README:

File "/usr/local/lib/python3.7/site-packages/splitwise/init.py", line 251, in createExpense expense = Expense(content["expenses"][0]) IndexError: list index out of range

krnbatra commented 4 years ago

I'm also not able to createExpense. It displays the following error. I'm using the same example as listed in the README:

File "/usr/local/lib/python3.7/site-packages/splitwise/init.py", line 251, in createExpense expense = Expense(content["expenses"][0]) IndexError: list index out of range

my bad, working fine now.

namaggarwal commented 4 years ago

@mvsreejithfrnds Can you confirm its still not reflected. I am planning to work on issues this weekend