Open teaswirll opened 7 years ago
If you run the commands with increased verbosity you should get a stacktrace, so you can see where the error is being triggered from. If I remember correctly, its php artisan bowhead:example_usage -vvv
So I did -vvv and it worked for the OneBroker error. and it showed stack traces to basically the token ID cuz it was blank. I think for some reason my .env was recopying .env.example so what I did was made .env.example a copy of .env and I can't replicate that error anymore. But for the 'nil' error -vvv does not add more information at all...
this is the error in terminal after freshly restarting bowhead
I don't have the source code on my machine atm, so I can't debug it myself, but seeing as this is the last line to output correctly, I'm guessing something is wrong with your config or Whaleclub token.
Does cat .env | grep WHALECLUB
output your token?
Try run one of the Test*Commands and see if it errors out as well.
whale club token shows up so I don't think it's that, I also rechecked it and it is that token what do you mean by the test*commands?
now it might be the APP_KEY that im putting wrong so I generated a key and it says: "Application key [base64:code=] set successfully" now I tried putting just the code and just the code with the = at the end. I also tried empty and it did not help. Still getting that 'nil' error
Did you resolve the issue? I'm, too, getting that error.
Exception trace: () at /var/www/bowhead/app/Util/OneBroker.php:158 Bowhead\Util\OneBroker->getApiData() at /var/www/bowhead/app/Util/OneBroker.php:186 Bowhead\Util\OneBroker->getCategories() at /var/www/bowhead/app/Util/OneBroker.php:52 Bowhead\Util\OneBroker->__construct() at /var/www/bowhead/app/Console/Commands/ExampleUsageCommand.php:68 Bowhead\Console\Commands\ExampleUsageCommand->handle() at n/a:n/a call_user_func_array() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29 Illuminate\Container\BoundMethod::Illuminate\Container{closure}() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87 Illuminate\Container\BoundMethod::callBoundMethod() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31 Illuminate\Container\BoundMethod::call() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Container/Container.php:539 Illuminate\Container\Container->call() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Console/Command.php:182 Illuminate\Console\Command->execute() at /var/www/bowhead/vendor/symfony/console/Command/Command.php:264 Symfony\Component\Console\Command\Command->run() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Console/Command.php:167 Illuminate\Console\Command->run() at /var/www/bowhead/vendor/symfony/console/Application.php:888 Symfony\Component\Console\Application->doRunCommand() at /var/www/bowhead/vendor/symfony/console/Application.php:224 Symfony\Component\Console\Application->doRun() at /var/www/bowhead/vendor/symfony/console/Application.php:125 Symfony\Component\Console\Application->run() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:122 Illuminate\Foundation\Console\Kernel->handle() at /var/www/bowhead/artisan:35
root@7f609b29cacf:/var/www/bowhead#
getting "Undefined index: Close" error as well
Exception trace: () at /home/ferdi/bowhead/app/Util/Indicators.php:313 Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() at /home/ferdi/bowhead/app/Util/Indicators.php:313 Bowhead\Util\Indicators->rsi() at /home/ferdi/bowhead/app/Traits/Signals.php:58 Bowhead\Console\Commands\TestStrategiesCommand->signals() at /home/ferdi/bowhead/app/Console/Commands/TestStrategiesCommand.php:228 Bowhead\Console\Commands\TestStrategiesCommand->handle() at n/a:n/a call_user_func_array() at /home/ferdi/bowhead/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29 Illuminate\Container\BoundMethod::Illuminate\Container{closure}() at /home/ferdi/bowhead/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87 Illuminate\Container\BoundMethod::callBoundMethod() at /home/ferdi/bowhead/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31 Illuminate\Container\BoundMethod::call() at /home/ferdi/bowhead/vendor/laravel/framework/src/Illuminate/Container/Container.php:539 Illuminate\Container\Container->call() at /home/ferdi/bowhead/vendor/laravel/framework/src/Illuminate/Console/Command.php:182 Illuminate\Console\Command->execute() at /home/ferdi/bowhead/vendor/symfony/console/Command/Command.php:262 Symfony\Component\Console\Command\Command->run() at /home/ferdi/bowhead/vendor/laravel/framework/src/Illuminate/Console/Command.php:167 Illuminate\Console\Command->run() at /home/ferdi/bowhead/vendor/symfony/console/Application.php:888 Symfony\Component\Console\Application->doRunCommand() at /home/ferdi/bowhead/vendor/symfony/console/Application.php:224 Symfony\Component\Console\Application->doRun() at /home/ferdi/bowhead/vendor/symfony/console/Application.php:125 Symfony\Component\Console\Application->run() at /home/ferdi/bowhead/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:122 Illuminate\Foundation\Console\Kernel->handle() at /home/ferdi/bowhead/artisan:35
same issue for me, and there more broken than even this but heres my output running php artisan bowhead:example_usage -vvv
In OneBroker.php line 158:
[RuntimeException]
OneBroker API returned an error - 201: Invalid token. You are not logged in
.
Exception trace: Bowhead\Util\OneBroker->getApiData() at /var/www/bowhead/app/Util/OneBroker.php:186 Bowhead\Util\OneBroker->getCategories() at /var/www/bowhead/app/Util/OneBroker.php:52 Bowhead\Util\OneBroker->__construct() at /var/www/bowhead/app/Console/Commands/ExampleUsageCommand.php:68 Bowhead\Console\Commands\ExampleUsageCommand->handle() at n/a:n/a call_user_func_array() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29 Illuminate\Container\BoundMethod::Illuminate\Container{closure}() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87 Illuminate\Container\BoundMethod::callBoundMethod() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31 Illuminate\Container\BoundMethod::call() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Container/Container.php:539 Illuminate\Container\Container->call() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Console/Command.php:182 Illuminate\Console\Command->execute() at /var/www/bowhead/vendor/symfony/console/Command/Command.php:252 Symfony\Component\Console\Command\Command->run() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Console/Command.php:167 Illuminate\Console\Command->run() at /var/www/bowhead/vendor/symfony/console/Application.php:936 Symfony\Component\Console\Application->doRunCommand() at /var/www/bowhead/vendor/symfony/console/Application.php:240 Symfony\Component\Console\Application->doRun() at /var/www/bowhead/vendor/symfony/console/Application.php:148 Symfony\Component\Console\Application->run() at /var/www/bowhead/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:122 Illuminate\Foundation\Console\Kernel->handle() at /var/www/bowhead/artisan:35
just to be sure... did you specify "ONEBROKER_TOKEN={API-TOKEN}" in your .env file? This is not included in the example env file.
Check "app/Util/older/OneBroker.php" on line 47: "$this->token = env('ONEBROKER_TOKEN');"
So I am at the part where you need to type in this command "php artisan bowhead:example_usage" There are two different scenarios with this command:
I have tried example forex strategy it give me this: "PRESS 'q' TO QUIT AND CLOSE ALL POSITIONS [ErrorException] Undefined Index: high"
Also example signals gives this: "PRESS 'q' TO QUIT AND CLOSE ALL POSITIONS [ErrorException] Undefined Index: close"
The only one that worked (I think) was example strategy which kept printing a line, ex: "Signals for BTC/USD:cci:-1 cmo:-1 mfi:0 overbought underbought" every couple seconds.
If anyone has an idea how to fix this that would be great, thanks