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

Undefined array key 3 #3

Open
stprasst opened this issue Jun 11, 2023 · 0 comments
Open

Undefined array key 3 #3

stprasst opened this issue Jun 11, 2023 · 0 comments

Comments

@stprasst
Copy link

Hi,
i try the world datetime demo and i got this error:

Warning: Undefined array key 3 in C:\laragon\www\Bard\vendor\khaledalam\bard-sdk-php\src\ApiKey\ApiKeyCookie.php on line 57

Fatal error: Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, null given in C:\laragon\www\Bard\vendor\khaledalam\bard-sdk-php\src\ApiKey\ApiKeyCookie.php:57 Stack trace: #0 C:\laragon\www\Bard\vendor\khaledalam\bard-sdk-php\src\ApiKey\ApiKeyCookie.php(57): json_decode(NULL, false, 512, 4194304) #1 C:\laragon\www\Bard\vendor\khaledalam\bard-sdk-php\src\Bard.php(20): Khaledalam\BardSdkPhp\ApiKey\ApiKeyCookie->ask('What is the dat...') #2 C:\laragon\www\Bard\main.php(17): Khaledalam\BardSdkPhp\Bard->ask('What is the dat...') #3 {main} thrown in C:\laragon\www\Bard\vendor\khaledalam\bard-sdk-php\src\ApiKey\ApiKeyCookie.php on line 57

Laravel 10:
same error: Undefined array key 3 in this line
$answer = $bard->ask($question);

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