我在API抓取服务上收到错误我已经设置了,因为API源会更改某些元素。我一直在尝试对它进行整理,但我仍然坚持特定的对象转换错误。当我试图查看它窒息的日志时,相关数据将被截断。知道怎么撤消吗?这是我的堆栈跟踪:
[2016-02-26 17:47:55] local.ERROR: exception 'ErrorException' with message 'Object of class stdClass could not be converted to string' in /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Support/helpers.php:671
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(4096, 'Object of class...', '/var/www/myapp....', 671, Array)
#1 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Support/helpers.php(671): preg_replace('/\?/', 'Object', 'insert into `pr...', 1)
#2 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/QueryException.php(56): str_replace_array('\?', Array, 'insert into `pr...')
#3 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/QueryException.php(39): Illuminate\Database\QueryException->formatMessage('insert into `pr...', Array, Object(ErrorException))
#4 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(633): Illuminate\Database\QueryException->__construct('insert into `pr...', Array, Object(ErrorException))
#5 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(591): Illuminate\Database\Connection->runQueryCallback('insert into `pr...', Array, Object(Closure))
#6 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(381): Illuminate\Database\Connection->run('insert into `pr...', Array, Object(Closure))
#7 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(337): Illuminate\Database\Connection->statement('insert into `pr...', Array)
#8 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert('insert into `pr...', Array)
#9 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(1735): Illuminate\Database\Query\Processors\Processor->processInsertGetId(Object(Illuminate\Database\Query\Builder), 'insert into `pr...', Array, 'id')
#10 [internal function]: Illuminate\Database\Query\Builder->insertGetId(Array, 'id')
#11 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(940): call_user_func_array(Array, Array)
#12 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1584): Illuminate\Database\Eloquent\Builder->__call('insertGetId', Array)
#13 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1584): Illuminate\Database\Eloquent\Builder->insertGetId(Array, 'id')
#14 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1555): Illuminate\Database\Eloquent\Model->insertAndSetId(Object(Illuminate\Database\Eloquent\Builder), Array)
#15 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1461): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder), Array)
#16 /var/www/myapp/htdocs/app/RevelModel.php(87): Illuminate\Database\Eloquent\Model->save()
#17 [internal function]: App\RevelModel::scrapData(Array)
#18 /var/www/myapp/htdocs/app/Console/Commands/Fetcher.php(61): call_user_func('App\Revel\Entit...', Array)
#19 [internal function]: App\Console\Commands\Fetcher->handle()
#20 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(502): call_user_func_array(Array, Array)
#21 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Console/Command.php(149): Illuminate\Container\Container->call(Array)
#22 /var/www/myapp/htdocs/vendor/symfony/console/Command/Command.php(259): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Console/Command.php(135): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 /var/www/myapp/htdocs/vendor/symfony/console/Application.php(878): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 /var/www/myapp/htdocs/vendor/symfony/console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\Fetcher), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#26 /var/www/myapp/htdocs/vendor/symfony/console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#27 /var/www/myapp/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(98): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#28 /var/www/myapp/htdocs/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#29 {main}
在第2行看看有问题的数据库查询是否被删除了elipses?有什么方法可以关闭它,所以我可以看到整个查询吗?
提前感谢您的帮助。