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

Failing to retrieve session cookie #11

Closed
srchild opened this issue Dec 18, 2023 · 2 comments
Closed

Failing to retrieve session cookie #11

srchild opened this issue Dec 18, 2023 · 2 comments

Comments

@srchild
Copy link

srchild commented Dec 18, 2023

I've built this but it bails out trying to retrieve session cookie:

Error

Call to a member function getValue() on null

at app/Commands/EcowittExportCommand.php:237
233▕ $loginData = $response->json();
234▕
235▕ $cookies = $response->cookies();
236▕
➜ 237▕ return $cookies->getCookieByName('ousaite_session')->getValue();
238▕
239▕ }
240▕
241▕ /**

1 app/Commands/EcowittExportCommand.php:63
App\Commands\EcowittExportCommand::getSessionId()
+13 vendor frames

15 ecowitt2weewx:37
LaravelZero\Framework\Kernel::handle()

Thanks

@sledzik1984
Copy link
Contributor

Same for me

@sledzik1984
Copy link
Contributor

Updated the code in my fork, pull request created.

@comes comes closed this as completed Jan 13, 2025
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

3 participants