Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Net::OpenTimeout #37

Open
owohub opened this issue Dec 16, 2018 · 8 comments
Open

Net::OpenTimeout #37

owohub opened this issue Dec 16, 2018 · 8 comments
Labels
investigating Not confirmed yet

Comments

@owohub
Copy link

owohub commented Dec 16, 2018

While following your docker setup instructions and using Docker for Mac, I am running into a Net::OpenTimeout issue. Never used Docker before, so I would highly appreciate some help getting this great tool running.

/usr/local/lib/ruby/2.5.0/net/http.rb:937:in `initialize': execution expired (Net::OpenTimeout)

Thank you!

@gitviola
Copy link
Owner

Hi @owohub, what Dumper are you using? And if it's the FinTS dumper, what bank is it?
I'm asking this because I suspect that the problem lays outside of the script. I could take some measures to improve the logging to see at which part it has trouble communicating outside after validating this.

Also, do you mind running the following command:

docker-compose run --rm importer bash -c "curl -v http://www.example.com/"

This will help us finding out if Docker for Mac is causing your issue. The command will go inside the container and run a curl command. If it works it means that the docker-container can communicate to the outside world. If it doesn't work then this is probably causing the struggles.

@owohub
Copy link
Author

owohub commented Dec 26, 2018 via email

@gitviola
Copy link
Owner

Glad to hear that the curl command works! What endpoint are you using for the DKB? It should be:

   # ...
   fints_endpoint: 'https://banking-dkb.s-fints-pt-dkb.de/fints30'
   fints_blz: 'YOUR_BLZ'

@owohub
Copy link
Author

owohub commented Dec 26, 2018 via email

@gitviola
Copy link
Owner

Hi @owohub, have you tried putting all values in quotes? It still sounds like the config file can't be parsed correctly. Can you please also verify that all needed parameters are present? You can find all needed parameters here: https://github.com/schurig/ynab-bank-importer/wiki/FinTS---HBCI#configuration

@gitviola gitviola added investigating Not confirmed yet Waiting for reporter input This ticket has been answered and is currently waiting for input from the reporter of the ticket. labels Jan 19, 2019
@owohub
Copy link
Author

owohub commented Jan 23, 2019

Put everything in quotes. Verified all the hashes again. Also, all parameters apart from the optional cash_account_id are present. Error is still the same. Any other ideas? This is driving me nuts.

@gitviola gitviola removed the Waiting for reporter input This ticket has been answered and is currently waiting for input from the reporter of the ticket. label Jan 30, 2019
@christophwolff
Copy link

I think my issue is related to this. I run it on a raspberry pi without docker.

/usr/lib/ruby/2.3.0/net/http.rb:930:in `connect': Net::OpenTimeout (Net::OpenTimeout)
	from /usr/lib/ruby/2.3.0/net/http.rb:863:in `do_start'
	from /usr/lib/ruby/2.3.0/net/http.rb:852:in `start'
	from /usr/lib/ruby/2.3.0/net/http.rb:1398:in `request'
	from /var/lib/gems/2.3.0/gems/httparty-0.16.3/lib/httparty/request.rb:145:in `perform'
	from /var/lib/gems/2.3.0/gems/httparty-0.16.3/lib/httparty.rb:573:in `perform_request'
	from /var/lib/gems/2.3.0/gems/httparty-0.16.3/lib/httparty.rb:507:in `post'
	from /var/lib/gems/2.3.0/gems/httparty-0.16.3/lib/httparty.rb:624:in `post'
	from /var/lib/gems/2.3.0/gems/ruby_fints-0.0.3/lib/fints/https_connection.rb:11:in `send_msg'
	from /var/lib/gems/2.3.0/gems/ruby_fints-0.0.3/lib/fints/dialog.rb:81:in `send_msg'
	from /var/lib/gems/2.3.0/gems/ruby_fints-0.0.3/lib/fints/dialog.rb:39:in `sync'
	from /var/lib/gems/2.3.0/gems/ruby_fints-0.0.3/lib/fints/client.rb:47:in `get_statement'
	from /home/pi/ynab-bank-importer/lib/dumper/fints.rb:23:in `fetch_transactions'
	from /home/pi/ynab-bank-importer/lib/account.rb:19:in `fetch_transactions'
	from run.rb:11:in `block in <main>'
	from run.rb:9:in `map'
	from run.rb:9:in `<main>'

I dont get the error everytime i run the app. Only every 5 fetches or something like that. I run the script every hour via crontab.

Thanks for your help

@christophwolff
Copy link

any news on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
investigating Not confirmed yet
Projects
None yet
Development

No branches or pull requests

3 participants