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
type error on data import and display #6122
Comments
Thanks, I'll check it out! |
Hi 👋, @JC5 I still experience this issue in firefly | 192.168.32.3 - - [06/Aug/2022:13:06:28 +0200] "GET /chart/transactions/sourceAccounts/deposit/2022-08-01/2022-08-31 HTTP/1.1" 200 3044 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
firefly | 192.168.32.3 - - [06/Aug/2022:13:06:28 +0200] "GET /chart/transactions/categories/deposit/2022-08-01/2022-08-31 HTTP/1.1" 200 3046 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
firefly | 192.168.32.3 - - [06/Aug/2022:13:06:28 +0200] "GET /chart/transactions/destinationAccounts/deposit/2022-08-01/2022-08-31 HTTP/1.1" 200 3036 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
firefly | 127.0.0.1 - - [06/Aug/2022:13:06:29 +0200] "OPTIONS * HTTP/1.0" 200 110 "-" "Apache/2.4.38 (Debian) (internal dummy connection)"
firefly | 127.0.0.1 - - [06/Aug/2022:13:06:30 +0200] "OPTIONS * HTTP/1.0" 200 110 "-" "Apache/2.4.38 (Debian) (internal dummy connection)"
firefly | [2022-08-06 13:06:31] local.ERROR: Exception is: {"class":"TypeError","errorMessage":"FireflyIII\\Transformers\\TransactionGroupTransformer::getAmount(): Argument #2 ($amount) must be of type string, float given, called in \/var\/www\/html\/app\/Transformers\/TransactionGroupTransformer.php on line 355","time":"Sat, 06 Aug 2022 13:06:31 +0200","file":"\/var\/www\/html\/app\/Transformers\/TransactionGroupTransformer.php","line":500,"code":0,"version":"5.7.10","url":"https:\/\/firefly.home.arpa\/transactions\/show\/653","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/104.0.0.0 Safari\/537.36","json":true,"method":"GET"}
firefly | [2022-08-06 13:06:31] local.ERROR: FireflyIII\Transformers\TransactionGroupTransformer::getAmount(): Argument #2 ($amount) must be of type string, float given, called in /var/www/html/app/Transformers/TransactionGroupTransformer.php on line 355 {"userId":{"FireflyIII\\User":{"id":1,"created_at":"2021-05-24T09:33:07.000000Z","updated_at":"2022-01-30T09:03:09.000000Z","email":"REDACTED","reset":null,"blocked":false,"blocked_code":null,"objectguid":null,"mfa_secret":null,"domain":null,"user_group_id":1}},"exception":"[object] (TypeError(code: 0): FireflyIII\\Transformers\\TransactionGroupTransformer::getAmount(): Argument #2 ($amount) must be of type string, float given, called in /var/www/html/app/Transformers/TransactionGroupTransformer.php on line 355 at /var/www/html/app/Transformers/TransactionGroupTransformer.php:500)
firefly | [stacktrace]
firefly | #0 /var/www/html/app/Transformers/TransactionGroupTransformer.php(355): FireflyIII\\Transformers\\TransactionGroupTransformer->getAmount()
firefly | #1 /var/www/html/app/Transformers/TransactionGroupTransformer.php(338): FireflyIII\\Transformers\\TransactionGroupTransformer->transformJournal()
firefly | #2 /var/www/html/app/Transformers/TransactionGroupTransformer.php(308): FireflyIII\\Transformers\\TransactionGroupTransformer->transformJournals()
firefly | #3 /var/www/html/app/Http/Controllers/Transaction/ShowController.php(99): FireflyIII\\Transformers\\TransactionGroupTransformer->transformObject()
firefly | #4 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): FireflyIII\\Http\\Controllers\\Transaction\\ShowController->show()
firefly | #5 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction()
firefly | #6 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(261): Illuminate\\Routing\\ControllerDispatcher->dispatch()
firefly | #7 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(204): Illuminate\\Routing\\Route->runController()
firefly | #8 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(725): Illuminate\\Routing\\Route->run()
firefly | #9 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
firefly | #10 /var/www/html/app/Http/Controllers/Transaction/ShowController.php(60): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #11 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(162): FireflyIII\\Http\\Controllers\\Transaction\\ShowController->FireflyIII\\Http\\Controllers\\Transaction\\{closure}()
firefly | #12 /var/www/html/app/Http/Controllers/Controller.php(112): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #13 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(162): FireflyIII\\Http\\Controllers\\Controller->FireflyIII\\Http\\Controllers\\{closure}()
firefly | #14 /var/www/html/app/Http/Middleware/InterestingMessage.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #15 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): FireflyIII\\Http\\Middleware\\InterestingMessage->handle()
firefly | #16 /var/www/html/app/Http/Middleware/Binder.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #17 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): FireflyIII\\Http\\Middleware\\Binder->handle()
firefly | #18 /var/www/html/app/Http/Middleware/Range.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #19 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): FireflyIII\\Http\\Middleware\\Range->handle()
firefly | #20 /var/www/html/vendor/jc5/google2fa-laravel/src/Middleware.php(29): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #21 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): PragmaRX\\Google2FALaravel\\Middleware->handle()
firefly | #22 /var/www/html/app/Http/Middleware/Authenticate.php(75): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #23 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): FireflyIII\\Http\\Middleware\\Authenticate->handle()
firefly | #24 /var/www/html/vendor/laravel/passport/src/Http/Middleware/CreateFreshApiToken.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #25 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Laravel\\Passport\\Http\\Middleware\\CreateFreshApiToken->handle()
firefly | #26 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/AuthenticateSession.php(40): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #27 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Session\\Middleware\\AuthenticateSession->handle()
firefly | #28 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #29 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle()
firefly | #30 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #31 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle()
firefly | #32 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #33 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest()
firefly | #34 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Session\\Middleware\\StartSession->handle()
firefly | #35 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #36 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle()
firefly | #37 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #38 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle()
firefly | #39 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #40 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(726): Illuminate\\Pipeline\\Pipeline->then()
firefly | #41 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(703): Illuminate\\Routing\\Router->runRouteWithinStack()
firefly | #42 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(667): Illuminate\\Routing\\Router->runRoute()
firefly | #43 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(656): Illuminate\\Routing\\Router->dispatchToRoute()
firefly | #44 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(167): Illuminate\\Routing\\Router->dispatch()
firefly | #45 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
firefly | #46 /var/www/html/app/Http/Middleware/InstallationId.php(52): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #47 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): FireflyIII\\Http\\Middleware\\InstallationId->handle()
firefly | #48 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #49 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Http\\Middleware\\TrustProxies->handle()
firefly | #50 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #51 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
firefly | #52 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle()
firefly | #53 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #54 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
firefly | #55 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
firefly | #56 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #57 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
firefly | #58 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #59 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
firefly | #60 /var/www/html/app/Http/Middleware/SecureHeaders.php(51): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #61 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): FireflyIII\\Http\\Middleware\\SecureHeaders->handle()
firefly | #62 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
firefly | #63 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(142): Illuminate\\Pipeline\\Pipeline->then()
firefly | #64 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
firefly | #65 /var/www/html/public/index.php(76): Illuminate\\Foundation\\Http\\Kernel->handle()
firefly | #66 {main}
firefly | "}
firefly | 192.168.32.3 - - [06/Aug/2022:13:06:31 +0200] "GET /transactions/show/653 HTTP/1.1" 500 6892 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36" |
I know. It's been reported already, and will be fixed in a future release. If you more errors, and they are not yet reported in #6260, please open a new issue. |
Support guidelines
I've found a bug and checked that ...
Description
Importing a csv with the data importer results in the following message after starting the job to actually update the firefly-iii database:
The import routine has finished 🎉. Done!
Error(s)
Line #0: Submission HTTP error: Status code is 500: {"message":"Internal Firefly III Exception: FireflyIII\\Support\\Steam::positive(): Argument #1 ($amount) must be of type string, int given, called in \/home\/niko\/firefly\/firefly-iii\/app\/Transformers\/TransactionGroupTransformer.php on line 120","exception":"TypeError"}
The transactions are actually displayed correctly on the dashboard of firefly, but viewing details leads to further errors.
Expected behaviour
Debug information
❗I think I'm actually on FIDI version 0.9.10, but this is what the /debug page reports:
Debug information generated at 2022-06-01 12:04:34 Europe/Berlin for Firefly III Data Importer version 0.9.9.
Debug information generated at 2022-06-01 12:29:31 Europe/Berlin for Firefly III version 5.7.9.
8.1.6
Linux
Steps to reproduce
Additional info
sample log entry (values changed for privacy)
The text was updated successfully, but these errors were encountered: