Open j9wppl opened 5 years ago
Hej, dzięki za uwagę przyjże się temu, czy masz może jakiś przykład dla którego występuje ten problem ?
U mnie to samo. Request zwraca null niezależnie od sytuacji.
@leszcz czy mogę prociś jakieś detale - np NIP dla którego występuje ta sytuacja ?
Randomowe cyfry / właściwy NIP (5213856696), sprawdzałem też przy okazji różne inne NIPy / REGONy i niestety.
@johnzuk Jak z tym issue?
Podbijam temat, problem przy pobieraniu danych dla NIPu 8971779243. U mnie występuję przy problemach z internetem ( LTE ).
Szybka propozycja rozwiązania problemu w PR https://github.com/johnzuk/GusApi/pull/103
{
"errors": [
{
"debugMessage": "Argument 1 passed to GusApi\\Client\\MultipartResponseDecoder::decode() must be of the type string, null given, called in /var/www/vendor/gusapi/gusapi/src/GusApi/Client/SoapClient.php on line 11",
"message": "Internal server error",
"extensions": {
"category": "internal"
},
"trace": [
{
"file": "/var/www/vendor/gusapi/gusapi/src/GusApi/Client/SoapClient.php",
"line": 11,
"call": "GusApi\\Client\\MultipartResponseDecoder::decode()"
},
{
"call": "GusApi\\Client\\SoapClient::__doRequest()"
},
{
"file": "/var/www/vendor/gusapi/gusapi/src/GusApi/Client/GusApiClient.php",
"line": 215,
"call": "SoapClient::__soapCall()"
},
{
"file": "/var/www/vendor/gusapi/gusapi/src/GusApi/Client/GusApiClient.php",
"line": 113,
"call": "GusApi\\Client\\GusApiClient::call()"
},
{
"file": "/var/www/vendor/gusapi/gusapi/src/GusApi/GusApi.php",
"line": 114,
"call": "GusApi\\Client\\GusApiClient::login()"
},
{
"file": "/var/www/app/code/Fwc/Gus/Service/ApiRegonClient.php",
"line": 50,
"call": "GusApi\\GusApi::login()"
},
{
"file": "/var/www/app/code/Fwc/Gus/Model/Resolver/CompanyInformation.php",
"line": 37,
"call": "Fwc\\Gus\\Service\\ApiRegonClient::getClient()"
},
{
"file": "/var/www/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php",
"line": 121,
"call": "Fwc\\Gus\\Model\\Resolver\\CompanyInformation::__construct()"
},
{
"file": "/var/www/vendor/magento/framework/ObjectManager/Factory/Compiled.php",
"line": 108,
"call": "Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory::createObject()"
},
{
"file": "/var/www/vendor/magento/framework/ObjectManager/ObjectManager.php",
"line": 70,
"call": "Magento\\Framework\\ObjectManager\\Factory\\Compiled::create()"
},
{
"file": "/var/www/vendor/magento/framework/GraphQl/Query/Resolver/Factory.php",
"line": 42,
"call": "Magento\\Framework\\ObjectManager\\ObjectManager::get()"
},
{
"file": "/var/www/vendor/magento/framework/GraphQl/Schema/Type/Output/ElementMapper/Formatter/Fields.php",
"line": 164,
"call": "Magento\\Framework\\GraphQl\\Query\\Resolver\\Factory::createByClass()"
},
{
"file": "/var/www/vendor/magento/framework/GraphQl/Schema/Type/Output/ElementMapper/Formatter/Fields.php",
"line": 101,
"call": "Magento\\Framework\\GraphQl\\Schema\\Type\\Output\\ElementMapper\\Formatter\\Fields::getFieldConfig()"
},
{
"file": "/var/www/vendor/webonyx/graphql-php/src/Type/Definition/FieldDefinition.php",
"line": 90,
"call": "Magento\\Framework\\GraphQl\\Schema\\Type\\Output\\ElementMapper\\Formatter\\Fields::Magento\\Framework\\GraphQl\\Schema\\Type\\Output\\ElementMapper\\Formatter\\{closure}()"
},
{
"file": "/var/www/vendor/webonyx/graphql-php/src/Type/Definition/ObjectType.php",
"line": 151,
"call": "GraphQL\\Type\\Definition\\FieldDefinition::defineFieldMap()"
},
{
"file": "/var/www/vendor/webonyx/graphql-php/src/Validator/Rules/OverlappingFieldsCanBeMerged.php",
"line": 255,
"call": "GraphQL\\Type\\Definition\\ObjectType::getFields()"
},
{
"file": "/var/www/vendor/webonyx/graphql-php/src/Validator/Rules/OverlappingFieldsCanBeMerged.php",
"line": 166,
"call": "GraphQL\\Validator\\Rules\\OverlappingFieldsCanBeMerged::internalCollectFieldsAndFragmentNames()"
},
{
"file": "/var/www/vendor/webonyx/graphql-php/src/Validator/Rules/OverlappingFieldsCanBeMerged.php",
"line": 97,
"call": "GraphQL\\Validator\\Rules\\OverlappingFieldsCanBeMerged::getFieldsAndFragmentNames()"
},
{
"file": "/var/www/vendor/webonyx/graphql-php/src/Validator/Rules/OverlappingFieldsCanBeMerged.php",
"line": 65,
"call": "GraphQL\\Validator\\Rules\\OverlappingFieldsCanBeMerged::findConflictsWithinSelectionSet()"
},
{
"file": "/var/www/vendor/webonyx/graphql-php/src/Language/Visitor.php",
"line": 410,
"call": "GraphQL\\Validator\\Rules\\OverlappingFieldsCanBeMerged::GraphQL\\Validator\\Rules\\{closure}()"
},
{
"file": "/var/www/vendor/webonyx/graphql-php/src/Language/Visitor.php",
"line": 466,
"call": "GraphQL\\Language\\Visitor::GraphQL\\Language\\{closure}()"
},
{
"file": "/var/www/vendor/webonyx/graphql-php/src/Language/Visitor.php",
"line": 273,
"call": "GraphQL\\Language\\Visitor::GraphQL\\Language\\{closure}()"
},
{
"file": "/var/www/vendor/webonyx/graphql-php/src/Validator/DocumentValidator.php",
"line": 226,
"call": "GraphQL\\Language\\Visitor::visit()"
},
{
"file": "/var/www/vendor/webonyx/graphql-php/src/Validator/DocumentValidator.php",
"line": 118,
"call": "GraphQL\\Validator\\DocumentValidator::visitUsingRules()"
},
{
"file": "/var/www/vendor/webonyx/graphql-php/src/GraphQL.php",
"line": 149,
"call": "GraphQL\\Validator\\DocumentValidator::validate()"
},
{
"file": "/var/www/vendor/webonyx/graphql-php/src/GraphQL.php",
"line": 90,
"call": "GraphQL\\GraphQL::promiseToExecute()"
},
{
"file": "/var/www/vendor/magento/framework/GraphQl/Query/QueryProcessor.php",
"line": 74,
"call": "GraphQL\\GraphQL::executeQuery()"
},
{
"file": "/var/www/vendor/magento/module-graph-ql/Controller/GraphQl.php",
"line": 160,
"call": "Magento\\Framework\\GraphQl\\Query\\QueryProcessor::process()"
},
{
"file": "/var/www/vendor/magento/framework/Interception/Interceptor.php",
"line": 58,
"call": "Magento\\GraphQl\\Controller\\GraphQl::dispatch()"
},
{
"file": "/var/www/vendor/magento/framework/Interception/Interceptor.php",
"line": 138,
"call": "Magento\\GraphQl\\Controller\\GraphQl\\Interceptor::___callParent()"
},
{
"file": "/var/www/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php",
"line": 75,
"call": "Magento\\GraphQl\\Controller\\GraphQl\\Interceptor::Magento\\Framework\\Interception\\{closure}()"
},
{
"file": "/var/www/vendor/magento/framework/Interception/Interceptor.php",
"line": 135,
"call": "Magento\\PageCache\\Model\\App\\FrontController\\BuiltinPlugin::aroundDispatch()"
},
{
"file": "/var/www/vendor/magento/framework/Interception/Interceptor.php",
"line": 153,
"call": "Magento\\GraphQl\\Controller\\GraphQl\\Interceptor::Magento\\Framework\\Interception\\{closure}()"
},
{
"file": "/var/www/generated/code/Magento/GraphQl/Controller/GraphQl/Interceptor.php",
"line": 23,
"call": "Magento\\GraphQl\\Controller\\GraphQl\\Interceptor::___callPlugins()"
},
{
"file": "/var/www/vendor/magento/framework/App/Http.php",
"line": 116,
"call": "Magento\\GraphQl\\Controller\\GraphQl\\Interceptor::dispatch()"
},
{
"file": "/var/www/vendor/magento/framework/App/Bootstrap.php",
"line": 263,
"call": "Magento\\Framework\\App\\Http::launch()"
},
{
"file": "/var/www/pub/index.php",
"line": 40,
"call": "Magento\\Framework\\App\\Bootstrap::run()"
}
]
}
]
}
...bowiem sporadycznie występuje błąd: Argument 1 passed to GusApi\Client\MultipartResponseDecoder::decode() must be of the type string, null given