-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
APICURLing your way into hellCURLing your way into hellDrupal 10LoD ReconciliationMake your labels into Links and sufferMake your labels into Links and sufferTwig ExtensionExtend too much and the wood might breakExtend too much and the wood might breakbugSomething isn't workingSomething isn't working
Milestone
Description
What?
New to me. But might have happened before too. Might also be a Drupal 10 change because I remember ingesting with AMI LOD Twig extensions via background hydroponics.
But the error exists now
GuzzleHttp\Exception\RequestException thrown in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:211 while querying for @entity_type entity ids matching "Author". Message: cURL error 3: URL rejected: Port number was not a decimal number between 0 and 65535 (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for ://:8001/webform_strawberry/auth_autocomplete/loc/relators?_format=json&q=AuthorWhich happens at
\Drupal\ami\TwigExtension::amiLodReconcile
when we request the current domain to initialize the controller manually
Here:
try {
$domain = \Drupal::service('request_stack')->getCurrentRequest()->getSchemeAndHttpHost();
// $domain ends only having the 8001 without the scheme and host. (because it is detached.)
$lod_route_argument_list = explode(";", $vocab);
$lod = \Drupal::service('ami.lod')->invokeLoDRoute($domain,
$label, $lod_route_argument_list[0],
$lod_route_argument_list[1], $lod_route_argument_list[2], $len ?? 'en', 1);
}The solution here is either to use the internal esmero-web when running on background (which brings an issue with cookies/sessions) or do something totally different
$controller = $this->classResolver->getInstanceFromDefinition('\Drupal\my_module\Controller\MyController');
return $controller->build();Where we initialize the controller not by invoking the route, but via a class resolver/instance from the code directly
@alliomeria this is an issue for our huge background ingests so will have to tackle tomorrow early AM (will try)
alliomeria
Metadata
Metadata
Assignees
Labels
APICURLing your way into hellCURLing your way into hellDrupal 10LoD ReconciliationMake your labels into Links and sufferMake your labels into Links and sufferTwig ExtensionExtend too much and the wood might breakExtend too much and the wood might breakbugSomething isn't workingSomething isn't working