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

Fatal Error When Running project #83

Open
KhinLaPyaeWon opened this issue Nov 27, 2020 · 4 comments
Open

Fatal Error When Running project #83

KhinLaPyaeWon opened this issue Nov 27, 2020 · 4 comments

Comments

@KhinLaPyaeWon
Copy link

KhinLaPyaeWon commented Nov 27, 2020

No description provided.

@curiosity26
Copy link
Contributor

curiosity26 commented Nov 27, 2020 via email

@KhinLaPyaeWon
Copy link
Author

KhinLaPyaeWon commented Nov 30, 2020

@curiosity26 thanks for ur reply . I changed default socket timeout to -2 but still getting error.I set Durability to -2 so I think that I will get notification within 24 hours changes when the page was loading but it generated nothing and still page loading.As soon as I updated something on salesforce, the page occurs fatal error page(maximun timeout limit same as above) immidiately and stops.I checked the client handshake and subscribe are successfully but when started getting notification it was errors..

@KhinLaPyaeWon
Copy link
Author

@curiosity26 When I exit() the code as like below,I found that client receives notification at first time. Can u guess which parts will be the problems. Kindly sir....

$channel->subscribe(
Consumer::create(
function (ChannelInterface $channel, Message $message) {
$payload = $message->getData();
$event = $payload->getEvent();
var_dump('noti Type '.$event->getType());
var_dump('noti created date '.$event->getCreatedDate()->format(\DATE_ISO8601));
var_dump('noti replay id '.$event->getReplayId());

            $sobject = $payload->getSobject();
            
            var_dump('noti sobject id '.$sobject->Id); 
            var_dump($sobject->getFields()); 
            exit();
        })
    );

$client->start();

@curiosity26
Copy link
Contributor

curiosity26 commented Dec 1, 2020 via email

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