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

Не обрабатывается запрос #20

Open
loginov-rocks opened this issue Jul 22, 2016 · 0 comments
Open

Не обрабатывается запрос #20

loginov-rocks opened this issue Jul 22, 2016 · 0 comments

Comments

@loginov-rocks
Copy link

Код из примера:

$vk->request('users.get', ['user_ids' => range(1, 100)])->each(function($i, $v) {
        if($v->last_name == '') return;
        print $v->last_name . '<br>';
});

Токен получен, установлен, ругается guzzle:

<br />
<b>Fatal error</b>:  Uncaught exception 'InvalidArgumentException' with message 'Invalid resource type: object' in D:\Projects\VK-Audios\vendor\guzzlehttp\streams\src\Stream.php:66
Stack trace:
#0 D:\Projects\VK-Audios\vendor\guzzlehttp\guzzle\src\Post\PostFile.php(71): GuzzleHttp\Stream\Stream::factory(Object(getjump\Vk\Response\Auth))
#1 D:\Projects\VK-Audios\vendor\guzzlehttp\guzzle\src\Post\PostFile.php(36): GuzzleHttp\Post\PostFile-&gt;prepareContent(Object(getjump\Vk\Response\Auth))
#2 D:\Projects\VK-Audios\vendor\guzzlehttp\guzzle\src\Message\MessageFactory.php(144): GuzzleHttp\Post\PostFile-&gt;__construct('access_token', Object(getjump\Vk\Response\Auth))
#3 D:\Projects\VK-Audios\vendor\guzzlehttp\guzzle\src\Message\MessageFactory.php(195): GuzzleHttp\Message\MessageFactory-&gt;addPostData(Object(GuzzleHttp\Message\Request), Array)
#4 D:\Projects\VK-Audios\vendor\guzzlehttp\guzzle\src\Message\MessageFactory.php(181): GuzzleHttp\Message\MessageFactory-&gt;add_body(Object(GuzzleHttp\Message\Request), Array)
#5 D:\Projects\VK-Audios\ven in <b>D:\Projects\VK-Audios\vendor\guzzlehttp\streams\src\Stream.php</b> on line <b>66</b><br />
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

1 participant