Closed hhitch closed 5 years ago
Hi! Can you please provide your username?
is there some way I can send it privately seregazhuk? thanks
Yes, send email it to me. Use email in my GitHub profile.
Hello!
I have the same problem as hhitch described. There is one account for which I can't get a boards list but get an empty array and a message: 'Похоже, произошла ошибка'.
I need more information to solve the problem. Unfortunately, a s I've said before I cannot reproduce the bug by self. I need credentials from the account with the following issue. You provide a pull request with a fix.
I've found one solution already.
Where you have:
public function forUser($username)
{
$options = [
'username' => $username
// 'field_set_key' => 'detailed',
];
$result = $this->get(UrlBuilder::RESOURCE_GET_BOARDS, $options);
return $result ?: [];
}
I've commented 'field_set_key' => 'detailed'.
My version of what caused an issue is that for some accounts a list of 'detailed' boards is too big array for to proceed it. For an account with a problem I have 51 boards. Other accounts with smaller numbers of boards worked fine.
Another possible solution from my point of view can be something with pagination. So, that I can control a number of boards which I get. First 20 boards, next 20 boards, ..., like it is for pins.
Thanks!
Thanks Lemonade, will check that out.
In my case this is an easily reproducable bug -- I have been able to reproduce this with my own and other users' accounts and also the same fix works.
How to reproduce the issue: use an account that has been "upgraded" to a "business account" on Pinterest. Those accounts can reliable fail to pull boards using $boards = $bot->boards->forMe() or $boards = $bot->boards->forUser($username).
This is a reliable, re-creatable issue. Just use any Pinterest account that is a "business account"
While the bot does not pull the boards for those accounts, the regular Pinterest API will pull those boards for said accounts. we now see this as a standard issue - users with business account cannot pull boards with bot
hhitch, hello!
In my case bot works fine also for business accounts.
Hi again I just wanted to follow up and say it seems with a more recent release of the library this issue has gone away. Sorry to pester you about it and keep up the great work :+1:
O'k! That's good news. Thanks.
On Fri, Sep 14, 2018 at 3:06 PM hhitch notifications@github.com wrote:
Hi again I just wanted to follow up and say it seems with a more recent release of the library this issue has gone away. Sorry to pester you about it and keep up the great work 👍
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/seregazhuk/php-pinterest-bot/issues/410#issuecomment-421496793, or mute the thread https://github.com/notifications/unsubscribe-auth/AhQT2MiuKfq-kBC9pdcqFeQuMPjg2bX2ks5ubCh-gaJpZM4Vvch8 .
That's great! 👍 If everything works fine, I close the issue.
there is one profile that the bot cannot get the boards from and I noticed it's one that was apparently upgraded to a business account. Is there an issue getting boards from business accounts or any other type of account? All my other accounts will list the boards fine but this one comes up with empty array every time.
I've tried both of these calls:
$boards = $bot->boards->forMe(); $boards = $bot->boards->forUser($me_username);
both are the same - empty array. And I have six boards full of pins on that account running for about six years now
all my other accounts are pulling the boards just fine, it's only this one account that just does not pull the boards from.
By the way, I discovered that I can pull the boards from this account using the official API but not with the bot
any thoughts? thanks in advance :) h.