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

Offset 128 does not exist #241

Open
stipey opened this issue Dec 22, 2022 · 2 comments
Open

Offset 128 does not exist #241

stipey opened this issue Dec 22, 2022 · 2 comments

Comments

@stipey
Copy link

stipey commented Dec 22, 2022

Hi.

I've recently started getting the following error:

Uncaught InvalidArgumentException: Offset 128 does not exist in /vendor/tustin/psn-php/src/Iterator/AbstractApiIterator.php:132
Stack trace: #0 /vendor/tustin/psn-php/src/Iterator/UsersSearchIterator.php(53): Tustin\PlayStation\Iterator\AbstractApiIterator->getFromOffset(128) #1
Tustin\PlayStation\Iterator\UsersSearchIterator->current() #2 {main} thrown in /vendor/tustin/psn-php/src/Iterator/AbstractApiIterator.php on line 132

Anyone familiar with the cause of this and how to remedy it?

@stale
Copy link

stale bot commented Apr 3, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 3, 2023
@owendswang
Copy link

owendswang commented May 19, 2023

This problem remains. Tested on v3.0.4 and v4.0.0.

$query = $client -> users() -> search('tustin');
foreach ($query as $item) {
  print(var_dump($item -> onlineid()));
}

Then the error occurs after several iterates.

PHP Fatal error:  Uncaught InvalidArgumentException: Offset 128 does not exist. in /root/psn_php_v4/vendor/tustin/psn-php/src/Iterator/AbstractApiIterator.php:156
Stack trace:
#0 /root/psn_php_v4/vendor/tustin/psn-php/src/Iterator/UsersSearchIterator.php(73): Tustin\PlayStation\Iterator\AbstractApiIterator->getFromOffset()
#1 /root/psn_php_v4/test.php(17): Tustin\PlayStation\Iterator\UsersSearchIterator->current()
#2 {main}
  thrown in /root/psn_php_v4/vendor/tustin/psn-php/src/Iterator/AbstractApiIterator.php on line 156

@stale stale bot removed the wontfix label May 19, 2023
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

2 participants