Closed gehan closed 7 years ago
Hmm, looks like ids for the api are a mess ! Sometimes it's standard 7d5d35d1-00b8-7630-fb4c-2c4f50bd463 Sometimes bla/foo/7d5d35d1-00b8-7630-fb4c-2c4f50bd463 Sometimes dcdfd/7d5d35d1-00b8-7630-fb4c-2c4f50bd463 Apparently also sometimes 7d5d35d1-00b8-7630-fb4c-2c4f50bd463_YYY-MM-DD,
I think I'll switch to a regex like [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Thanks for the bug report!
Yeah looks all over the place! Nothing like an inconsistent id.
I'll test again whenever you get to make the change 😎
Also good work with this lib!
On Thu, 19 Jan 2017, 12:04 rienafairefr, notifications@github.com wrote:
Hmm, looks like ids for the api are a mess ! Sometimes it's standard 7d5d35d1-00b8-7630-fb4c-2c4f50bd463 Sometimes bla/foo/7d5d35d1-00b8-7630-fb4c-2c4f50bd463 Sometimes dcdfd/7d5d35d1-00b8-7630-fb4c-2c4f50bd463 Apparently also sometimes 7d5d35d1-00b8-7630-fb4c-2c4f50bd463_YYY-MM-DD,
I think I'll switch to a regex like [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Thanks for the bug report!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rienafairefr/nYNABapi/issues/27#issuecomment-273759811, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOkRvW2Rm-qUbwoETWectFWm93k2YAEks5rT1FVgaJpZM4Lnawn .
827be01fb19fd1e4e2357bd65309302d4e7e78ee seems to solve the problem, test it with your data and see how it goes :-) Cheers
That error is fixed yes... but now there is something else :'(
I'll make an issue for the other one. Something to do with dates now.
Hi,
When I try to make a
nYnabClient
object I get a failure here:https://github.com/rienafairefr/nYNABapi/blob/master/pynYNAB/schema/Entity.py#L230
ValueError: badly formed hexadecimal UUID string
I'll try to fix myself but might take me a while. Any ideas...?!
I found the transaction itself and it's actually on 2016-11-08. From the blob above looks like it was a scheduled transaction..? If I take the date off the end of the id then UUID doesn't fail