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

Parametr wejściowy MultipartResponseDecoder::decode powinien dopuszczać null... #75

Open
j9wppl opened this issue Apr 24, 2019 · 6 comments

Comments

@j9wppl
Copy link

j9wppl commented Apr 24, 2019

...bowiem sporadycznie występuje błąd:
Argument 1 passed to GusApi\Client\MultipartResponseDecoder::decode() must be of the type string, null given

@johnzuk
Copy link
Owner

johnzuk commented Apr 25, 2019

Hej, dzięki za uwagę przyjże się temu, czy masz może jakiś przykład dla którego występuje ten problem ?

@leszcz
Copy link

leszcz commented Jan 23, 2020

U mnie to samo. Request zwraca null niezależnie od sytuacji.

@johnzuk
Copy link
Owner

johnzuk commented Jan 23, 2020

@leszcz czy mogę prociś jakieś detale - np NIP dla którego występuje ta sytuacja ?

@leszcz
Copy link

leszcz commented Jan 23, 2020

Randomowe cyfry / właściwy NIP (5213856696), sprawdzałem też przy okazji różne inne NIPy / REGONy i niestety.

@leszcz
Copy link

leszcz commented Jan 29, 2020

@johnzuk Jak z tym issue?

@bmxmale
Copy link

bmxmale commented Apr 19, 2021

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 #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()"
                }
            ]
        }
    ]
}

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

4 participants