Open psistorm opened 4 years ago
I see. Could you post the exception that occurs?
I've got the same exception while importing transactions.
Is this something you can fix or should I report this to the Firefly III repository?
Thanks. I'm not exactly sure why the importer stops after this. Does the importer itself provide any error message?
Yep, here is the error message:
Fatal error: Uncaught GrumpyDictator\FFIIIApiSupport\Exceptions\ApiHttpException: Status code is 500: {"message":"Internal Firefly III Exception: Cannot find transaction. Possibly, a rule deleted this transaction after its creation.","exception":"FireflyIII\\Exceptions\\FireflyException"} in /vendor/firefly-iii/api-support-classes/src/Request/PostTransactionRequest.php:70 Stack trace: #0 /app/TransactionsToFireflySender.php(90): GrumpyDictator\FFIIIApiSupport\Request\PostTransactionRequest->post() #1 /app/index.php(275): App\TransactionsToFireflySender->send_transactions() #2 {main} thrown in /vendor/firefly-iii/api-support-classes/src/Request/PostTransactionRequest.php on line 70
Hm, this is a crash in firefly-iii/api-support-classes.
Maybe it sufficies to update this package?
@N4IR0 Could you try this with an updated version? You can update the package by calling composer update firefly-iii/api-support-classes
.
Unfortunately updating the packages does not solve the problem. I've now created a bug report in the Firefly III repository (https://github.com/firefly-iii/firefly-iii/issues/5177).
I have some rules to automatically convert withdrawals or deposits between my accounts to the type "transfer". Therefore I convert one statement to transfer and remove the other one to avoid duplicates. This rules causes an exception in the importer and he stops importing which should not be happening in my opinion.
Example:
Account A > (transfers money to) > Account B
Account A has a statement of type withdrawal: I convert this to a transfer Account B has a statement of type deposit: I remove this one to have a correct balance