robvankeilegom / firefly-III-paypal-importer

PayPal Data Importer for Firefly III
48 stars 3 forks source link

Crashes when pushing data to Firefly #6

Closed zdaar closed 2 years ago

zdaar commented 2 years ago

Hi, I have the following error when the tool tries to push data to Firefly :

Start pulling data from PayPal
Pushing data to Firefly

In Firefly.php line 83:

  Undefined property: stdClass::$errors

Could you help ? Could it be a parsing error or is it my configuration ? Thanks in advance :)

robvankeilegom commented 2 years ago

Hi,

It looks like the application is getting a response it isn't expecting. Check your firefly configuration. The PayPal step was completed so you can just run php artisan sync:fireflyinstead of php artisan sync.

I'll add some more error handling and a clearer error message later.

robvankeilegom commented 2 years ago

@zdaar Is your problem solved?

zdaar commented 2 years ago

@robvankeilegom Hi, I went digging around one evening and ended up just comment it out the exception and it seems to have imported fine from there

                //$error    = Arr::get(current($response->errors), 0);

                //if ('This account name is already in use.' === $response->errors->name[0]) {
               // if ('This account name is already in use.' === $error {

                    $fireflyId = $this->findAccountByName($payer->name);
                //}
            }