Magento2 REST API get all customers details












0














 public function __construct(MagentoFrameworkAppRequestInterface $request,
MagentoCustomerModelResourceModelCustomerCollectionFactory $customerFactory
)
{
$this->_request = $request;
$this->_customerFactory = $customerFactory;
}


public function getAllCustomers() {
$customerCollection = $this->_customerFactory->create();
return $customerCollection;
}


Im getting following error:




{
"message": "Invalid parameter configuration provided for $reader argument of MagentoFrameworkInterceptionPluginListPluginList",
"trace": "#0 /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230):
MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array,
'Magento\Framewo...', NULL, 'reader', 'Magento\Framewo...')n#1
/var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34):
MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgumentsInRuntime('Magento\Framewo...',
Array, Array)n#2
/var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59):
MagentoFrameworkObjectManagerFactoryDynamicDeveloper->_resolveArguments('Magento\Framewo...',
Array, Array)n#3
/var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/ObjectManager.php(70):
MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('Magento\Framewo...')n#4
/var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(42):
MagentoFrameworkObjectManagerObjectManager->get('Magento\Framewo...')n#5
/var/www/html/dreamb2b/generated/code/Magento/Eav/Model/Entity/Attribute/Set/Interceptor.php(13):
MagentoEavModelEntityAttributeSetInterceptor->___init()n#6
/var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111):
MagentoEavModelEntityAttributeSetInterceptor->__construct(Object(MagentoFrameworkModelContext),
Object(MagentoFrameworkRegistry),
Object(MagentoFrameworkApiExtensionAttributesFactory),
Object(MagentoFrameworkApiAttributeValueFactory),
Object(MagentoEavModelConfig),
Object(MagentoEavModelEntityAttributeGroupFactory),
Object(MagentoEavModelEntityAttributeFactory),
Object(MagentoEavModelResourceModelEntityAttributeInterceptor),
NULL, NULL, Array)n#7
/var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108):
MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Eav\Mod...',
Array)n#8
/var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150):
MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Eav\Mod...')n#9
/var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79):
MagentoFrameworkObjectManagerFactoryCompiled->get('Magento\Eav\Mod...')n#10
/var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150):
MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Eav\Mod...')n#11
/var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79):
MagentoFrameworkObjectManagerFactoryCompiled->get('Magento\Eav\Mod...')n#12
/var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/ObjectManager.php(56):
MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Custome...',
Array)n#13
/var/www/html/dreamb2b/vendor/magento/framework/Validator/UniversalFactory.php(36):
MagentoFrameworkObjectManagerObjectManager->create('Magento\Custome...',
Array)n#14
/var/www/html/dreamb2b/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(229):
MagentoFrameworkValidatorUniversalFactory->create('Magento\Custome...')n#15
/var/www/html/dreamb2b/vendor/magento/module-customer/Model/ResourceModel/Customer/Collection.php(87):
MagentoEavModelEntityCollectionAbstractCollection->_init('Magento\Custome...',
'Magento\Custome...')n#16
/var/www/html/dreamb2b/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(164):
MagentoCustomerModelResourceModelCustomerCollection->_construct()n#17
/var/www/html/dreamb2b/vendor/magento/module-eav/Model/Entity/Collection/VersionControl/AbstractCollection.php(60):
MagentoEavModelEntityCollectionAbstractCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory),
Object(MagentoFrameworkLoggerMonolog),
Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery),
Object(MagentoFrameworkEventManagerProxy),
Object(MagentoEavModelConfig),
Object(MagentoFrameworkAppResourceConnectionInterceptor),
Object(MagentoEavModelEntityFactory),
Object(MagentoEavModelResourceModelHelper),
Object(MagentoFrameworkValidatorUniversalFactory), NULL)n#18
/var/www/html/dreamb2b/vendor/magento/module-customer/Model/ResourceModel/Customer/Collection.php(76):
MagentoEavModelEntityCollectionVersionControlAbstractCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory),
Object(MagentoFrameworkLoggerMonolog),
Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery),
Object(MagentoFrameworkEventManagerProxy),
Object(MagentoEavModelConfig),
Object(MagentoFrameworkAppResourceConnectionInterceptor),
Object(MagentoEavModelEntityFactory),
Object(MagentoEavModelResourceModelHelper),
Object(MagentoFrameworkValidatorUniversalFactory),
Object(MagentoFrameworkModelResourceModelDbVersionControlSnapshot),
NULL)n#19
/var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111):
MagentoCustomerModelResourceModelCustomerCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory),
Object(MagentoFrameworkLoggerMonolog),
Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery),
Object(MagentoFrameworkEventManagerProxy),
Object(MagentoEavModelConfig),
Object(MagentoFrameworkAppResourceConnectionInterceptor),
Object(MagentoEavModelEntityFactory),
Object(MagentoEavModelResourceModelHelper),
Object(MagentoFrameworkValidatorUniversalFactory),
Object(MagentoFrameworkModelResourceModelDbVersionControlSnapshot),
Object(MagentoFrameworkDataObjectCopyConfig), NULL,
'Magento\Custome...')n#20
/var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108):
MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Custome...',
Array)n#21
/var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/ObjectManager.php(56):
MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Custome...',
Array)n#22
/var/www/html/dreamb2b/generated/code/Magento/Customer/Model/ResourceModel/Customer/CollectionFactory.php(43):
MagentoFrameworkObjectManagerObjectManager->create('\Magento\Custom...',
Array)n#23
/var/www/html/dreamb2b/app/code/Soulof/CustomerAttribute/Model/Account.php(117):
MagentoCustomerModelResourceModelCustomerCollectionFactory->create()n#24
[internal function]:
SoulofCustomerAttributeModelAccount->getAllCustomers()n#25
/var/www/html/dreamb2b/vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php(95):
call_user_func_array(Array, Array)n#26
/var/www/html/dreamb2b/vendor/magento/module-webapi/Controller/Rest.php(244):
MagentoWebapiControllerRestSynchronousRequestProcessor->process(Object(MagentoFrameworkWebapiRestRequestProxy))n#27
/var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(58):
MagentoWebapiControllerRest->dispatch(Object(MagentoFrameworkAppRequestHttp))n#28
/var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(138):
MagentoWebapiControllerRestInterceptor->___callParent('dispatch',
Array)n#29
/var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(153):
MagentoWebapiControllerRestInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))n#30
/var/www/html/dreamb2b/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(26):
MagentoWebapiControllerRestInterceptor->___callPlugins('dispatch',
Array, Array)n#31
/var/www/html/dreamb2b/vendor/magento/framework/App/Http.php(135):
MagentoWebapiControllerRestInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))n#32
/var/www/html/dreamb2b/vendor/magento/framework/App/Bootstrap.php(257):
MagentoFrameworkAppHttp->launch()n#33
/var/www/html/dreamb2b/index.php(39):
MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))n#34
{main}" }











share|improve this question









New contributor




Purnendar Gattu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0














     public function __construct(MagentoFrameworkAppRequestInterface $request,
    MagentoCustomerModelResourceModelCustomerCollectionFactory $customerFactory
    )
    {
    $this->_request = $request;
    $this->_customerFactory = $customerFactory;
    }


    public function getAllCustomers() {
    $customerCollection = $this->_customerFactory->create();
    return $customerCollection;
    }


    Im getting following error:




    {
    "message": "Invalid parameter configuration provided for $reader argument of MagentoFrameworkInterceptionPluginListPluginList",
    "trace": "#0 /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230):
    MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array,
    'Magento\Framewo...', NULL, 'reader', 'Magento\Framewo...')n#1
    /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34):
    MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgumentsInRuntime('Magento\Framewo...',
    Array, Array)n#2
    /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59):
    MagentoFrameworkObjectManagerFactoryDynamicDeveloper->_resolveArguments('Magento\Framewo...',
    Array, Array)n#3
    /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/ObjectManager.php(70):
    MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('Magento\Framewo...')n#4
    /var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(42):
    MagentoFrameworkObjectManagerObjectManager->get('Magento\Framewo...')n#5
    /var/www/html/dreamb2b/generated/code/Magento/Eav/Model/Entity/Attribute/Set/Interceptor.php(13):
    MagentoEavModelEntityAttributeSetInterceptor->___init()n#6
    /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111):
    MagentoEavModelEntityAttributeSetInterceptor->__construct(Object(MagentoFrameworkModelContext),
    Object(MagentoFrameworkRegistry),
    Object(MagentoFrameworkApiExtensionAttributesFactory),
    Object(MagentoFrameworkApiAttributeValueFactory),
    Object(MagentoEavModelConfig),
    Object(MagentoEavModelEntityAttributeGroupFactory),
    Object(MagentoEavModelEntityAttributeFactory),
    Object(MagentoEavModelResourceModelEntityAttributeInterceptor),
    NULL, NULL, Array)n#7
    /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108):
    MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Eav\Mod...',
    Array)n#8
    /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150):
    MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Eav\Mod...')n#9
    /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79):
    MagentoFrameworkObjectManagerFactoryCompiled->get('Magento\Eav\Mod...')n#10
    /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150):
    MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Eav\Mod...')n#11
    /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79):
    MagentoFrameworkObjectManagerFactoryCompiled->get('Magento\Eav\Mod...')n#12
    /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/ObjectManager.php(56):
    MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Custome...',
    Array)n#13
    /var/www/html/dreamb2b/vendor/magento/framework/Validator/UniversalFactory.php(36):
    MagentoFrameworkObjectManagerObjectManager->create('Magento\Custome...',
    Array)n#14
    /var/www/html/dreamb2b/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(229):
    MagentoFrameworkValidatorUniversalFactory->create('Magento\Custome...')n#15
    /var/www/html/dreamb2b/vendor/magento/module-customer/Model/ResourceModel/Customer/Collection.php(87):
    MagentoEavModelEntityCollectionAbstractCollection->_init('Magento\Custome...',
    'Magento\Custome...')n#16
    /var/www/html/dreamb2b/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(164):
    MagentoCustomerModelResourceModelCustomerCollection->_construct()n#17
    /var/www/html/dreamb2b/vendor/magento/module-eav/Model/Entity/Collection/VersionControl/AbstractCollection.php(60):
    MagentoEavModelEntityCollectionAbstractCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory),
    Object(MagentoFrameworkLoggerMonolog),
    Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery),
    Object(MagentoFrameworkEventManagerProxy),
    Object(MagentoEavModelConfig),
    Object(MagentoFrameworkAppResourceConnectionInterceptor),
    Object(MagentoEavModelEntityFactory),
    Object(MagentoEavModelResourceModelHelper),
    Object(MagentoFrameworkValidatorUniversalFactory), NULL)n#18
    /var/www/html/dreamb2b/vendor/magento/module-customer/Model/ResourceModel/Customer/Collection.php(76):
    MagentoEavModelEntityCollectionVersionControlAbstractCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory),
    Object(MagentoFrameworkLoggerMonolog),
    Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery),
    Object(MagentoFrameworkEventManagerProxy),
    Object(MagentoEavModelConfig),
    Object(MagentoFrameworkAppResourceConnectionInterceptor),
    Object(MagentoEavModelEntityFactory),
    Object(MagentoEavModelResourceModelHelper),
    Object(MagentoFrameworkValidatorUniversalFactory),
    Object(MagentoFrameworkModelResourceModelDbVersionControlSnapshot),
    NULL)n#19
    /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111):
    MagentoCustomerModelResourceModelCustomerCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory),
    Object(MagentoFrameworkLoggerMonolog),
    Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery),
    Object(MagentoFrameworkEventManagerProxy),
    Object(MagentoEavModelConfig),
    Object(MagentoFrameworkAppResourceConnectionInterceptor),
    Object(MagentoEavModelEntityFactory),
    Object(MagentoEavModelResourceModelHelper),
    Object(MagentoFrameworkValidatorUniversalFactory),
    Object(MagentoFrameworkModelResourceModelDbVersionControlSnapshot),
    Object(MagentoFrameworkDataObjectCopyConfig), NULL,
    'Magento\Custome...')n#20
    /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108):
    MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Custome...',
    Array)n#21
    /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/ObjectManager.php(56):
    MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Custome...',
    Array)n#22
    /var/www/html/dreamb2b/generated/code/Magento/Customer/Model/ResourceModel/Customer/CollectionFactory.php(43):
    MagentoFrameworkObjectManagerObjectManager->create('\Magento\Custom...',
    Array)n#23
    /var/www/html/dreamb2b/app/code/Soulof/CustomerAttribute/Model/Account.php(117):
    MagentoCustomerModelResourceModelCustomerCollectionFactory->create()n#24
    [internal function]:
    SoulofCustomerAttributeModelAccount->getAllCustomers()n#25
    /var/www/html/dreamb2b/vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php(95):
    call_user_func_array(Array, Array)n#26
    /var/www/html/dreamb2b/vendor/magento/module-webapi/Controller/Rest.php(244):
    MagentoWebapiControllerRestSynchronousRequestProcessor->process(Object(MagentoFrameworkWebapiRestRequestProxy))n#27
    /var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(58):
    MagentoWebapiControllerRest->dispatch(Object(MagentoFrameworkAppRequestHttp))n#28
    /var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(138):
    MagentoWebapiControllerRestInterceptor->___callParent('dispatch',
    Array)n#29
    /var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(153):
    MagentoWebapiControllerRestInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))n#30
    /var/www/html/dreamb2b/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(26):
    MagentoWebapiControllerRestInterceptor->___callPlugins('dispatch',
    Array, Array)n#31
    /var/www/html/dreamb2b/vendor/magento/framework/App/Http.php(135):
    MagentoWebapiControllerRestInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))n#32
    /var/www/html/dreamb2b/vendor/magento/framework/App/Bootstrap.php(257):
    MagentoFrameworkAppHttp->launch()n#33
    /var/www/html/dreamb2b/index.php(39):
    MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))n#34
    {main}" }











    share|improve this question









    New contributor




    Purnendar Gattu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0







       public function __construct(MagentoFrameworkAppRequestInterface $request,
      MagentoCustomerModelResourceModelCustomerCollectionFactory $customerFactory
      )
      {
      $this->_request = $request;
      $this->_customerFactory = $customerFactory;
      }


      public function getAllCustomers() {
      $customerCollection = $this->_customerFactory->create();
      return $customerCollection;
      }


      Im getting following error:




      {
      "message": "Invalid parameter configuration provided for $reader argument of MagentoFrameworkInterceptionPluginListPluginList",
      "trace": "#0 /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230):
      MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array,
      'Magento\Framewo...', NULL, 'reader', 'Magento\Framewo...')n#1
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34):
      MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgumentsInRuntime('Magento\Framewo...',
      Array, Array)n#2
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59):
      MagentoFrameworkObjectManagerFactoryDynamicDeveloper->_resolveArguments('Magento\Framewo...',
      Array, Array)n#3
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/ObjectManager.php(70):
      MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('Magento\Framewo...')n#4
      /var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(42):
      MagentoFrameworkObjectManagerObjectManager->get('Magento\Framewo...')n#5
      /var/www/html/dreamb2b/generated/code/Magento/Eav/Model/Entity/Attribute/Set/Interceptor.php(13):
      MagentoEavModelEntityAttributeSetInterceptor->___init()n#6
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111):
      MagentoEavModelEntityAttributeSetInterceptor->__construct(Object(MagentoFrameworkModelContext),
      Object(MagentoFrameworkRegistry),
      Object(MagentoFrameworkApiExtensionAttributesFactory),
      Object(MagentoFrameworkApiAttributeValueFactory),
      Object(MagentoEavModelConfig),
      Object(MagentoEavModelEntityAttributeGroupFactory),
      Object(MagentoEavModelEntityAttributeFactory),
      Object(MagentoEavModelResourceModelEntityAttributeInterceptor),
      NULL, NULL, Array)n#7
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108):
      MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Eav\Mod...',
      Array)n#8
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150):
      MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Eav\Mod...')n#9
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79):
      MagentoFrameworkObjectManagerFactoryCompiled->get('Magento\Eav\Mod...')n#10
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150):
      MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Eav\Mod...')n#11
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79):
      MagentoFrameworkObjectManagerFactoryCompiled->get('Magento\Eav\Mod...')n#12
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/ObjectManager.php(56):
      MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Custome...',
      Array)n#13
      /var/www/html/dreamb2b/vendor/magento/framework/Validator/UniversalFactory.php(36):
      MagentoFrameworkObjectManagerObjectManager->create('Magento\Custome...',
      Array)n#14
      /var/www/html/dreamb2b/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(229):
      MagentoFrameworkValidatorUniversalFactory->create('Magento\Custome...')n#15
      /var/www/html/dreamb2b/vendor/magento/module-customer/Model/ResourceModel/Customer/Collection.php(87):
      MagentoEavModelEntityCollectionAbstractCollection->_init('Magento\Custome...',
      'Magento\Custome...')n#16
      /var/www/html/dreamb2b/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(164):
      MagentoCustomerModelResourceModelCustomerCollection->_construct()n#17
      /var/www/html/dreamb2b/vendor/magento/module-eav/Model/Entity/Collection/VersionControl/AbstractCollection.php(60):
      MagentoEavModelEntityCollectionAbstractCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory),
      Object(MagentoFrameworkLoggerMonolog),
      Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery),
      Object(MagentoFrameworkEventManagerProxy),
      Object(MagentoEavModelConfig),
      Object(MagentoFrameworkAppResourceConnectionInterceptor),
      Object(MagentoEavModelEntityFactory),
      Object(MagentoEavModelResourceModelHelper),
      Object(MagentoFrameworkValidatorUniversalFactory), NULL)n#18
      /var/www/html/dreamb2b/vendor/magento/module-customer/Model/ResourceModel/Customer/Collection.php(76):
      MagentoEavModelEntityCollectionVersionControlAbstractCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory),
      Object(MagentoFrameworkLoggerMonolog),
      Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery),
      Object(MagentoFrameworkEventManagerProxy),
      Object(MagentoEavModelConfig),
      Object(MagentoFrameworkAppResourceConnectionInterceptor),
      Object(MagentoEavModelEntityFactory),
      Object(MagentoEavModelResourceModelHelper),
      Object(MagentoFrameworkValidatorUniversalFactory),
      Object(MagentoFrameworkModelResourceModelDbVersionControlSnapshot),
      NULL)n#19
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111):
      MagentoCustomerModelResourceModelCustomerCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory),
      Object(MagentoFrameworkLoggerMonolog),
      Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery),
      Object(MagentoFrameworkEventManagerProxy),
      Object(MagentoEavModelConfig),
      Object(MagentoFrameworkAppResourceConnectionInterceptor),
      Object(MagentoEavModelEntityFactory),
      Object(MagentoEavModelResourceModelHelper),
      Object(MagentoFrameworkValidatorUniversalFactory),
      Object(MagentoFrameworkModelResourceModelDbVersionControlSnapshot),
      Object(MagentoFrameworkDataObjectCopyConfig), NULL,
      'Magento\Custome...')n#20
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108):
      MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Custome...',
      Array)n#21
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/ObjectManager.php(56):
      MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Custome...',
      Array)n#22
      /var/www/html/dreamb2b/generated/code/Magento/Customer/Model/ResourceModel/Customer/CollectionFactory.php(43):
      MagentoFrameworkObjectManagerObjectManager->create('\Magento\Custom...',
      Array)n#23
      /var/www/html/dreamb2b/app/code/Soulof/CustomerAttribute/Model/Account.php(117):
      MagentoCustomerModelResourceModelCustomerCollectionFactory->create()n#24
      [internal function]:
      SoulofCustomerAttributeModelAccount->getAllCustomers()n#25
      /var/www/html/dreamb2b/vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php(95):
      call_user_func_array(Array, Array)n#26
      /var/www/html/dreamb2b/vendor/magento/module-webapi/Controller/Rest.php(244):
      MagentoWebapiControllerRestSynchronousRequestProcessor->process(Object(MagentoFrameworkWebapiRestRequestProxy))n#27
      /var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(58):
      MagentoWebapiControllerRest->dispatch(Object(MagentoFrameworkAppRequestHttp))n#28
      /var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(138):
      MagentoWebapiControllerRestInterceptor->___callParent('dispatch',
      Array)n#29
      /var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(153):
      MagentoWebapiControllerRestInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))n#30
      /var/www/html/dreamb2b/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(26):
      MagentoWebapiControllerRestInterceptor->___callPlugins('dispatch',
      Array, Array)n#31
      /var/www/html/dreamb2b/vendor/magento/framework/App/Http.php(135):
      MagentoWebapiControllerRestInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))n#32
      /var/www/html/dreamb2b/vendor/magento/framework/App/Bootstrap.php(257):
      MagentoFrameworkAppHttp->launch()n#33
      /var/www/html/dreamb2b/index.php(39):
      MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))n#34
      {main}" }











      share|improve this question









      New contributor




      Purnendar Gattu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











       public function __construct(MagentoFrameworkAppRequestInterface $request,
      MagentoCustomerModelResourceModelCustomerCollectionFactory $customerFactory
      )
      {
      $this->_request = $request;
      $this->_customerFactory = $customerFactory;
      }


      public function getAllCustomers() {
      $customerCollection = $this->_customerFactory->create();
      return $customerCollection;
      }


      Im getting following error:




      {
      "message": "Invalid parameter configuration provided for $reader argument of MagentoFrameworkInterceptionPluginListPluginList",
      "trace": "#0 /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230):
      MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array,
      'Magento\Framewo...', NULL, 'reader', 'Magento\Framewo...')n#1
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34):
      MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgumentsInRuntime('Magento\Framewo...',
      Array, Array)n#2
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59):
      MagentoFrameworkObjectManagerFactoryDynamicDeveloper->_resolveArguments('Magento\Framewo...',
      Array, Array)n#3
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/ObjectManager.php(70):
      MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('Magento\Framewo...')n#4
      /var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(42):
      MagentoFrameworkObjectManagerObjectManager->get('Magento\Framewo...')n#5
      /var/www/html/dreamb2b/generated/code/Magento/Eav/Model/Entity/Attribute/Set/Interceptor.php(13):
      MagentoEavModelEntityAttributeSetInterceptor->___init()n#6
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111):
      MagentoEavModelEntityAttributeSetInterceptor->__construct(Object(MagentoFrameworkModelContext),
      Object(MagentoFrameworkRegistry),
      Object(MagentoFrameworkApiExtensionAttributesFactory),
      Object(MagentoFrameworkApiAttributeValueFactory),
      Object(MagentoEavModelConfig),
      Object(MagentoEavModelEntityAttributeGroupFactory),
      Object(MagentoEavModelEntityAttributeFactory),
      Object(MagentoEavModelResourceModelEntityAttributeInterceptor),
      NULL, NULL, Array)n#7
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108):
      MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Eav\Mod...',
      Array)n#8
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150):
      MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Eav\Mod...')n#9
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79):
      MagentoFrameworkObjectManagerFactoryCompiled->get('Magento\Eav\Mod...')n#10
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150):
      MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Eav\Mod...')n#11
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79):
      MagentoFrameworkObjectManagerFactoryCompiled->get('Magento\Eav\Mod...')n#12
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/ObjectManager.php(56):
      MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Custome...',
      Array)n#13
      /var/www/html/dreamb2b/vendor/magento/framework/Validator/UniversalFactory.php(36):
      MagentoFrameworkObjectManagerObjectManager->create('Magento\Custome...',
      Array)n#14
      /var/www/html/dreamb2b/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(229):
      MagentoFrameworkValidatorUniversalFactory->create('Magento\Custome...')n#15
      /var/www/html/dreamb2b/vendor/magento/module-customer/Model/ResourceModel/Customer/Collection.php(87):
      MagentoEavModelEntityCollectionAbstractCollection->_init('Magento\Custome...',
      'Magento\Custome...')n#16
      /var/www/html/dreamb2b/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(164):
      MagentoCustomerModelResourceModelCustomerCollection->_construct()n#17
      /var/www/html/dreamb2b/vendor/magento/module-eav/Model/Entity/Collection/VersionControl/AbstractCollection.php(60):
      MagentoEavModelEntityCollectionAbstractCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory),
      Object(MagentoFrameworkLoggerMonolog),
      Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery),
      Object(MagentoFrameworkEventManagerProxy),
      Object(MagentoEavModelConfig),
      Object(MagentoFrameworkAppResourceConnectionInterceptor),
      Object(MagentoEavModelEntityFactory),
      Object(MagentoEavModelResourceModelHelper),
      Object(MagentoFrameworkValidatorUniversalFactory), NULL)n#18
      /var/www/html/dreamb2b/vendor/magento/module-customer/Model/ResourceModel/Customer/Collection.php(76):
      MagentoEavModelEntityCollectionVersionControlAbstractCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory),
      Object(MagentoFrameworkLoggerMonolog),
      Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery),
      Object(MagentoFrameworkEventManagerProxy),
      Object(MagentoEavModelConfig),
      Object(MagentoFrameworkAppResourceConnectionInterceptor),
      Object(MagentoEavModelEntityFactory),
      Object(MagentoEavModelResourceModelHelper),
      Object(MagentoFrameworkValidatorUniversalFactory),
      Object(MagentoFrameworkModelResourceModelDbVersionControlSnapshot),
      NULL)n#19
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111):
      MagentoCustomerModelResourceModelCustomerCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory),
      Object(MagentoFrameworkLoggerMonolog),
      Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery),
      Object(MagentoFrameworkEventManagerProxy),
      Object(MagentoEavModelConfig),
      Object(MagentoFrameworkAppResourceConnectionInterceptor),
      Object(MagentoEavModelEntityFactory),
      Object(MagentoEavModelResourceModelHelper),
      Object(MagentoFrameworkValidatorUniversalFactory),
      Object(MagentoFrameworkModelResourceModelDbVersionControlSnapshot),
      Object(MagentoFrameworkDataObjectCopyConfig), NULL,
      'Magento\Custome...')n#20
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108):
      MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Custome...',
      Array)n#21
      /var/www/html/dreamb2b/vendor/magento/framework/ObjectManager/ObjectManager.php(56):
      MagentoFrameworkObjectManagerFactoryCompiled->create('Magento\Custome...',
      Array)n#22
      /var/www/html/dreamb2b/generated/code/Magento/Customer/Model/ResourceModel/Customer/CollectionFactory.php(43):
      MagentoFrameworkObjectManagerObjectManager->create('\Magento\Custom...',
      Array)n#23
      /var/www/html/dreamb2b/app/code/Soulof/CustomerAttribute/Model/Account.php(117):
      MagentoCustomerModelResourceModelCustomerCollectionFactory->create()n#24
      [internal function]:
      SoulofCustomerAttributeModelAccount->getAllCustomers()n#25
      /var/www/html/dreamb2b/vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php(95):
      call_user_func_array(Array, Array)n#26
      /var/www/html/dreamb2b/vendor/magento/module-webapi/Controller/Rest.php(244):
      MagentoWebapiControllerRestSynchronousRequestProcessor->process(Object(MagentoFrameworkWebapiRestRequestProxy))n#27
      /var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(58):
      MagentoWebapiControllerRest->dispatch(Object(MagentoFrameworkAppRequestHttp))n#28
      /var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(138):
      MagentoWebapiControllerRestInterceptor->___callParent('dispatch',
      Array)n#29
      /var/www/html/dreamb2b/vendor/magento/framework/Interception/Interceptor.php(153):
      MagentoWebapiControllerRestInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))n#30
      /var/www/html/dreamb2b/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(26):
      MagentoWebapiControllerRestInterceptor->___callPlugins('dispatch',
      Array, Array)n#31
      /var/www/html/dreamb2b/vendor/magento/framework/App/Http.php(135):
      MagentoWebapiControllerRestInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))n#32
      /var/www/html/dreamb2b/vendor/magento/framework/App/Bootstrap.php(257):
      MagentoFrameworkAppHttp->launch()n#33
      /var/www/html/dreamb2b/index.php(39):
      MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))n#34
      {main}" }








      magento2 customer rest-api






      share|improve this question









      New contributor




      Purnendar Gattu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Purnendar Gattu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 12 hours ago









      Sourav

      1,099413




      1,099413






      New contributor




      Purnendar Gattu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 13 hours ago









      Purnendar Gattu

      12




      12




      New contributor




      Purnendar Gattu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Purnendar Gattu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Purnendar Gattu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Seems ,you have done wrong.



          Magento2, already have rest API point, you do not create any API point like controller action. Check out Magento 2 rest API https://devdocs.magento.com/guides/v2.3/rest/bk-rest.html



          If you want to get all customer list then use API pint rest/V1/customers/
          Checkout all point a swagger: https://devdocs.magento.com/swagger/



          Check out this answer also



          Get list of ALL customers using REST API






          share|improve this answer





















          • Hi Bera, i know about the Customer api call, i want to customized fields and based customer i need other data also. please let me know what was the issue or any other method get customer data
            – Purnendar Gattu
            12 hours ago










          • What you mean by customized fields?
            – Amit Bera
            10 hours ago











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "479"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Purnendar Gattu is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f256536%2fmagento2-rest-api-get-all-customers-details%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Seems ,you have done wrong.



          Magento2, already have rest API point, you do not create any API point like controller action. Check out Magento 2 rest API https://devdocs.magento.com/guides/v2.3/rest/bk-rest.html



          If you want to get all customer list then use API pint rest/V1/customers/
          Checkout all point a swagger: https://devdocs.magento.com/swagger/



          Check out this answer also



          Get list of ALL customers using REST API






          share|improve this answer





















          • Hi Bera, i know about the Customer api call, i want to customized fields and based customer i need other data also. please let me know what was the issue or any other method get customer data
            – Purnendar Gattu
            12 hours ago










          • What you mean by customized fields?
            – Amit Bera
            10 hours ago
















          0














          Seems ,you have done wrong.



          Magento2, already have rest API point, you do not create any API point like controller action. Check out Magento 2 rest API https://devdocs.magento.com/guides/v2.3/rest/bk-rest.html



          If you want to get all customer list then use API pint rest/V1/customers/
          Checkout all point a swagger: https://devdocs.magento.com/swagger/



          Check out this answer also



          Get list of ALL customers using REST API






          share|improve this answer





















          • Hi Bera, i know about the Customer api call, i want to customized fields and based customer i need other data also. please let me know what was the issue or any other method get customer data
            – Purnendar Gattu
            12 hours ago










          • What you mean by customized fields?
            – Amit Bera
            10 hours ago














          0












          0








          0






          Seems ,you have done wrong.



          Magento2, already have rest API point, you do not create any API point like controller action. Check out Magento 2 rest API https://devdocs.magento.com/guides/v2.3/rest/bk-rest.html



          If you want to get all customer list then use API pint rest/V1/customers/
          Checkout all point a swagger: https://devdocs.magento.com/swagger/



          Check out this answer also



          Get list of ALL customers using REST API






          share|improve this answer












          Seems ,you have done wrong.



          Magento2, already have rest API point, you do not create any API point like controller action. Check out Magento 2 rest API https://devdocs.magento.com/guides/v2.3/rest/bk-rest.html



          If you want to get all customer list then use API pint rest/V1/customers/
          Checkout all point a swagger: https://devdocs.magento.com/swagger/



          Check out this answer also



          Get list of ALL customers using REST API







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 12 hours ago









          Amit Bera

          57.1k1373170




          57.1k1373170












          • Hi Bera, i know about the Customer api call, i want to customized fields and based customer i need other data also. please let me know what was the issue or any other method get customer data
            – Purnendar Gattu
            12 hours ago










          • What you mean by customized fields?
            – Amit Bera
            10 hours ago


















          • Hi Bera, i know about the Customer api call, i want to customized fields and based customer i need other data also. please let me know what was the issue or any other method get customer data
            – Purnendar Gattu
            12 hours ago










          • What you mean by customized fields?
            – Amit Bera
            10 hours ago
















          Hi Bera, i know about the Customer api call, i want to customized fields and based customer i need other data also. please let me know what was the issue or any other method get customer data
          – Purnendar Gattu
          12 hours ago




          Hi Bera, i know about the Customer api call, i want to customized fields and based customer i need other data also. please let me know what was the issue or any other method get customer data
          – Purnendar Gattu
          12 hours ago












          What you mean by customized fields?
          – Amit Bera
          10 hours ago




          What you mean by customized fields?
          – Amit Bera
          10 hours ago










          Purnendar Gattu is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Purnendar Gattu is a new contributor. Be nice, and check out our Code of Conduct.













          Purnendar Gattu is a new contributor. Be nice, and check out our Code of Conduct.












          Purnendar Gattu is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f256536%2fmagento2-rest-api-get-all-customers-details%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          An IMO inspired problem

          Management

          Has there ever been an instance of an active nuclear power plant within or near a war zone?