Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficulty with webhook auto import #60

Closed
bjmd opened this issue Apr 26, 2018 · 13 comments
Closed

Difficulty with webhook auto import #60

bjmd opened this issue Apr 26, 2018 · 13 comments

Comments

@bjmd
Copy link

bjmd commented Apr 26, 2018

Hey Scott.

I am struggling to get the Monzo auto import working.

I can run Import::Monzo.new(monzo_access_token, monzo_account_id, ynab_account_id).import which works (from local and Heroku), the webhook is created Monzo side but I get nothing in YNAB when I complete transactions in Monzo. Cant seem to find logs anywhere either?

Any pointers? This code will be amazing if I can get it working! 😀

@scottrobertson
Copy link
Collaborator

scottrobertson commented Apr 26, 2018 via email

@bjmd
Copy link
Author

bjmd commented Apr 26, 2018

I hadn't, but I just tried that and still no luck.

I have also tried defining the optional variables with no luck either.

I am right in thinking that it should be automatic, right? They don't queue and need the import manually running each time?

@scottrobertson
Copy link
Collaborator

They will send the webhooks to the URL you defined when you make a transaction

@bjmd
Copy link
Author

bjmd commented Apr 26, 2018

Which was the Heroku URL. What I mean is that do they then get stored somewhere, queued up, and then you need to manually import from Ruby to push them into YNAB or should it be automatic?

@scottrobertson
Copy link
Collaborator

Ah, no they get pushed in instantly.

@bjmd
Copy link
Author

bjmd commented Apr 26, 2018

I figured they would, I just thought I would eliminate user error!

Any other ideas? Does it log incoming requests anywhere? I tried to look but cant see anything obvious any know nothing about Ruby!

@scottrobertson
Copy link
Collaborator

If you are tailing the heroku logs, you would see the requests coming in.

How are you triggering the transactions?

@bjmd
Copy link
Author

bjmd commented Apr 26, 2018

Ah ok, so I think I have the issue. The requests are indeed coming in and processing, it connects to YNAB and gets the following back:

ArgumentError (invalid value for 'type', must be one of ["checking", "savings", "creditCard", "cash", "otherAsset", "investmentAccount"].):

@bjmd
Copy link
Author

bjmd commented Apr 26, 2018

I am transferring back and forth between Starling and Monzo

@scottrobertson
Copy link
Collaborator

Hmm ok. Sounds like YNAB have account types that are not present in the API specs, this has happened before. I don't have time to debug right now, but i will follow up with some questions as soon as i can.

@bjmd
Copy link
Author

bjmd commented Apr 26, 2018

Sure no problem, thanks Scott.

@bjmd
Copy link
Author

bjmd commented Apr 26, 2018

I found the bug you raised on the ynab SDK which was fixed but your latest fork of it was just before the fix.

I forked your repo and switched to upstream which resolved the issue. Hope that saves you troubleshooting 😃

@scottrobertson
Copy link
Collaborator

Ah, forgot i still had this on my fork. Will sort that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants