-
Notifications
You must be signed in to change notification settings - Fork 8
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
When creating a transaction I'm getting a 500 Server error #11
Comments
Hey @kbmetz, can you run the following command on the host machine and share the last several entries in the log? docker exec -it investbrain-app cat storage/logs/laravel.log Appreciate your help reporting issues! |
Happy to help! I've wanted something like this for a long time I put the date from the machine at the bottom and also a successful curl command. As you can tell from the logs nothing is updating in regards to my stocks/transactions. Also, the dividend reported back already when the dividend hasn't actually been released yet. [2024-11-07 22:11:00] production.WARNING: Failed calling method dividends (yahoo): Start date must be before end date 301 MovedThe document has moved here. |
This is super helpful! Thank you for sharing (and for your patience). I strongly suspect the "connection refused" error is the root cause. I have experienced Yahoo Finance being blocked on my pihole instance in the past. Do you have pihole or some other adblock / firewall running? If so, can you check your query logs to see if that could be causing issues? Less likely, but Yahoo has been cracking down on these unofficial APIs and your IP range may be getting rate limited. Separately, I was able to reproduce the experience you described on the "Transactions" page. It was a bug. That should be fixed on v1.0.2. You should be able to stop the stack and |
Yep, I see Pihole blocking fc.yahoo.com. I've white listed it. Looks like because it's after market's end it's not updating now? production.ERROR: Could not get market data: Start date must be before end date {"exception":"[object] (Exception(code: 0): Could not get market data: Start date must be before end date at /var/www/app/app/Interfaces/MarketData/FallbackInterface.php:40) |
Fantastic. I'm definitely going to have to add a "troubleshooting" section to the readme. I imagine much of the self-hosted community uses pihole. The market data refresh command runs every minute (but only actually refreshes when data is > 15 minutes old). So it should still be running right now. Dumb question - do you have any future dated transactions? |
As far as I know I don't have any future dated transactions except for the dividend. One of the stocks I have the dividend won't occur for another few weeks. But the screen already shows what the expected amount is. So maybe that's it? |
That date on the 7th is the 'ex-date' or when you need to be holding the stock to get dividends (if I'm understanding correctly). For me, what I really want to know is the 'buy date' or when I actually get the dividend amount. What Yahoo is showing is only the 'expected' I believe. |
Yep, there are two dates associated with dividends. Unfortunately, Yahoo only provides the Ex-Date. Some market data providers offer the issue date, and I've erred on using that date for the other providers. I'm going to close this one as I believe your original issue has been resolved (the 500 error on creating transactions). If not, we can re-open! |
Pulled down a fresh version, made sure I erased all previous docker volumes and containers.
Every time I try to create a transaction I see the following error. But the transaction does get added if I'm in the 'Portfolio'. If I try to add the transaction from the 'Transactions' it doesn't get added at all.
OS: Ubuntu 22.04
Docker: 27.3.1
Uname -a :
Linux garage-01 6.8.0-48-generic #48~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 7 11:24:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: