Skip to content
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

include_net_worth always true when creating account "Rest-API" #2698

Closed
justin2108 opened this issue Oct 5, 2019 · 1 comment
Closed

include_net_worth always true when creating account "Rest-API" #2698

justin2108 opened this issue Oct 5, 2019 · 1 comment
Labels
bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release).

Comments

@justin2108
Copy link

Bug description
I am running Firefly III version 4.8.1.1, and my problem is:
when creating a account trough the rest-api the include_net_worth returns always true.
no matter what you put in the payload.

payload = {"name": name, "type": "revenue", "iban": IBAN, "include_net_worth": 0}

Steps to reproduce
in python 3.7x with library requests
header = {"Authorization": auth_token, 'Accept': 'application/json', 'Content-Type': 'application/json',} payload = {"name": name, "type": "revenue", "iban": IBAN, "include_net_worth": 0} response = requests.post(base_url+"/api/v1/accounts", data=json.dumps(payload), headers=header)
or
payload = {"name": name, "type": "revenue", "iban": IBAN, "include_net_worth": false} response = requests.post(base_url+"/api/v1/accounts", data=json.dumps(payload), headers=header)

i run it in a docker container, i don't know why it says false

Debug information generated at 2019-10-06 01:36:32 Europe/Amsterdam for Firefly III version 4.8.1.1.

Variable Content
FF version 4.8.1.1
FF API version 0.10.2
App environment local
App debug mode false
App cache driver file
App logging , daily
PHP version 7.3.9
Display errors Off
Session start 2018-01-01 00:00:00
Session end 2018-01-31 00:00:00
Session first 2018-01-01 00:00:00
Error reporting ALL errors
Host Linux
Interface apache2handler
UserID 1
Attempt at "en" false
Attempt at "English" false
Attempt at "en_US.utf8" 'en_US.utf8'
Attempt at "en_US.UTF-8" 'en_US.UTF-8'
DB drivers mysql, pgsql, sqlite
Current driver pgsql
Login provider
Storage disks local-upload
Using Sandstorm? no
Is Sandstorm (.env) false
Is Docker (.env) false
bunq uses sandbox false
Trusted proxies (.env) **
User agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Loaded extensions Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, ftp, hash, iconv, json, mbstring, SPL, PDO, session, posix, Reflection, standard, SimpleXML, pdo_sqlite, Phar, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, apache2handler, bcmath, gd, intl, ldap, memcached, pdo_mysql, pdo_pgsql, sodium, Zend OPcache
@JC5
Copy link
Member

JC5 commented Oct 6, 2019

Nice find. This will be fixed in the next release.

@JC5 JC5 added bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release). labels Oct 6, 2019
@JC5 JC5 closed this as completed in 32ecac3 Oct 21, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release).
Projects
None yet
Development

No branches or pull requests

2 participants