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

Pair Management - Twig Exception #101

Closed
Bitmasss opened this issue Jan 16, 2020 · 3 comments
Closed

Pair Management - Twig Exception #101

Bitmasss opened this issue Jan 16, 2020 · 3 comments

Comments

@Bitmasss
Copy link

Bitmasss commented Jan 16, 2020

Hello.

I've pulled the latest master and ran it using Docker. Input my API keys on binance for example and everything looks ok.

When using the pair management page, I get the following error:

crypto-trading-bot | Error parsing twig template /usr/src/app/templates/pairs.html.twig:
crypto-trading-bot | TwigException: Key "process" for object with keys "exchange, symbol, watchdogs, state, has_position, capital, strategies" does not exist.
crypto-trading-bot | Error parsing twig template /usr/src/app/templates/pairs.html.twig:
crypto-trading-bot | TwigException: Key "process" for object with keys "exchange, symbol, watchdogs, state, has_position, capital, strategies" does not exist.

Also the same for the candles page:

crypto-trading-bot | TwigException: Variable "period" does not exist.
crypto-trading-bot | Error parsing twig template /usr/src/app/templates/candle_stick_export.html.twig:
crypto-trading-bot | TwigException: Variable "candles" does not exist.

Any ideas?

Any help would be appreciated.
Thanks

@egisz
Copy link
Contributor

egisz commented Mar 30, 2020

I also had same problem, but it was caused by bug in recent twig npm module update, version 1.15.0 See this ticket .

It works fine on earlier 1.13.3 version, which is listed in package.json:

"twig": "^1.13.3",

Check your twig npm module version, it could be that you (like me) updated to newest version which has bug.
You can revert to earlier version by running command:

npm install twig@1.13.3 --save

@Bitmasss
Copy link
Author

Thanks @egisz that was exactly the problem. Rolled back and all fine now.

Haehnchen added a commit that referenced this issue Apr 16, 2020
@Haehnchen Haehnchen mentioned this issue Apr 16, 2020
@Haehnchen
Copy link
Owner

also commited

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants