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

ActionAttempt.php Error #88

Open
rguerin1 opened this issue Jan 27, 2024 · 4 comments
Open

ActionAttempt.php Error #88

rguerin1 opened this issue Jan 27, 2024 · 4 comments

Comments

@rguerin1
Copy link

I get the following error when trying to lock a door using the example code. Any help would be greatly appreciated.

Fatal error: Uncaught TypeError: Seam\Objects\ActionAttempt::__construct(): Argument #4 ($result) must be of type ?string, stdClass given, called in /home/qa43mss75pl2/public_html/app.webbids.net/Seam/vendor/seamapi/seam/src/Objects/ActionAttempt.php on line 13 and defined in /home/qa43mss75pl2/public_html/app.webbids.net/Seam/vendor/seamapi/seam/src/Objects/ActionAttempt.php:24 Stack trace: #0 /home/qa43mss75pl2/public_html/app.webbids.net/Seam/vendor/seamapi/seam/src/Objects/ActionAttempt.php(13): Seam\Objects\ActionAttempt->__construct() #1 /home/qa43mss75pl2/public_html/app.webbids.net/Seam/vendor/seamapi/seam/src/SeamClient.php(597): Seam\Objects\ActionAttempt::from_json() #2 /home/qa43mss75pl2/public_html/app.webbids.net/Seam/vendor/seamapi/seam/src/SeamClient.php(629): Seam\ActionAttemptsClient->get() #3 /home/qa43mss75pl2/public_html/app.webbids.net/Seam/vendor/seamapi/seam/src/SeamClient.php(1586): Seam\ActionAttemptsClient->poll_until_ready() #4 /home/qa43mss75pl2/public_html/app.webbids.net/Seam/test3.php(20): Seam\LocksClient->lock_door() #5 {main} thrown in /home/qa43mss75pl2/public_html/app.webbids.net/Seam/vendor/seamapi/seam/src/Objects/ActionAttempt.php on line 24

@seveibar
Copy link
Contributor

Hey @rguerin1, we'll look into this, in the meantime can you try using version 1? composer require seamapi/[email protected]

@seveibar
Copy link
Contributor

seveibar commented Jan 28, 2024

If you go to https://console.seam.co and put a question into our intercom chat mentioning this issue and pass along a uuid, we can debug a bit more specifically.

For our engineers, here is a relevant test: https://github.com/seamapi/php/blob/main/tests/ActionAttemptsTest.php

@rguerin1
Copy link
Author

rguerin1 commented Jan 28, 2024 via email

@NicTorgersen
Copy link

@seveibar Please tag v2.0.1 soon, so we don't have to manually patch this or use dev-main.

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