byrokrat / giroapp

Command line app for managing autogiro donations.
GNU General Public License v3.0
4 stars 2 forks source link

Error when running export from phar file: Missing or invalid organization bankgiro account number #183

Closed nonbinary closed 5 years ago

nonbinary commented 5 years ago

When I use the phar file (tested beta3 and beta4) to export a file, I get this error message:

Execution started Exported mandate R1xBg3jK0KnojAkO ERROR: Missing or invalid organization bankgiro account number

If I run the same account from the github account, I get a as I should, with the same settings files and environment variables.

Increasing verbosity does not give me any more info.

hanneskod commented 5 years ago

Did you add your bankgiro account number to giroapp.ini?

hanneskod commented 5 years ago

Also note that if you are usinf alpha4 the env variable is GIROAPP_PATH. If you are using master its GIROAPP_INI.

nonbinary commented 5 years ago

Yep, the account number is in giroapp.ini. I've also successfully added a donor, so giroapp seems to be able to interpret the file.

nonbinary commented 5 years ago

Good lord, strike that. I had misplaced the ini file. When I place it inside the giroapp dir, alongside data, var etc, it works.

hanneskod commented 5 years ago

You dont need a bg to add a donor. Are you sure the correct file is parsed? What env setting are u using?

hanneskod commented 5 years ago

Happy day!

nonbinary commented 5 years ago

I had it like this: working dir, contains: - giroapp.phar, giroapp.ini and giroapp dir giroapp dir contains: data, var, plugins etc

I thought that was correct since that's the directory structure that giroapp creates when run in the same directory as giroapp.ini. But ya, now it works.