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

connector.identify triggers exception #22

Open
tobyberster opened this issue May 6, 2024 · 0 comments
Open

connector.identify triggers exception #22

tobyberster opened this issue May 6, 2024 · 0 comments

Comments

@tobyberster
Copy link

tobyberster commented May 6, 2024

Wenn man in JTL die Verbindung von einem neuen oder vorhandenen Connector testen möchte wird auf dem Server eine Exception geworfen.

[2024-05-06T08:51:35.276893+02:00] error.ERROR: #0 /var/www/vhosts/domain/httpdocs/shop/jtlconnector/vendor/jtl/connector/src/Application/Application.php(319): Jtl\Connector\Core\Application\Application->startSession() #1 /var/www/vhosts/domain/httpdocs/shop/jtlconnector/index.php(19): Jtl\Connector\Core\Application\Application->run() #2 {main} [] {"http_method":"POST","user_agent":"","domain":"www.valide-url.de","uri":"/jtlconnector/","request_size":"195.0 B","hostname":"hostname","memory_peak_usage":"4 MB"}
[2024-05-06T08:51:35.279594+02:00] error.ERROR: Uncaught Exception Jtl\Connector\Core\Exception\SessionException: "No session" at /var/www/vhosts/domain/httpdocs/shop/jtlconnector/vendor/jtl/connector/src/Application/Application.php line 394 {"exception":"[object] (Jtl\\Connector\\Core\\Exception\\SessionException(code: 789): No session at /var/www/vhosts/domain/httpdocs/shop/jtlconnector/vendor/jtl/connector/src/Application/Application.php:394)"} {"http_method":"POST","user_agent":"","domain":"www.valide-url.de","uri":"/jtlconnector/","request_size":"195.0 B","hostname":"hostname","memory_peak_usage":"4 MB"}

Wenn man sich nun den Code anschaut:

if ($sessionId === null && $rpcMethod !== RpcMethod::AUTH) {
       throw new SessionException('No session ' . $rpcMethod, ErrorCode::NO_SESSION);
}

Habe ich etwas in meinem Connector verpasst zu implementieren, oder ist dies tatsächlich etwas kleines und nerviges was im core anders gehandhabt werden müsste?

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