sometimes Getting Error while fetch data from suiteCRM through API

Hi,
sometimes Getting below Error while fetch data from suiteCRM through API

Client found response content type of ‘text/html; charset=UTF-8’, but expected ‘text/xml’. The request failed with the error message

in which scenario this error will occur? Any limitation is there for fetching data from SuiteCRM per day?

kindly provide solution for this issue…

Thanks!

To fetch data for particular table, get_entry_list method throwing below error.

Client found response content type of ‘text/html; charset=UTF-8’, but expected ‘text/xml’. The request failed with the error message.

Kindly provide solution to this issue…

Thanks!

You don’t tell us much, I don’t know which version of SuiteCRM you are running, or even which version of the API you’re trying to use, or how…

If it’s API v8, check out these issues

https://github.com/salesagility/SuiteCRM/issues?q=is%3Aissue+is%3Aopen+label%3Acategory%3AAPI+sort%3Aupdated-desc

and make sure you follow the docs

https://docs.suitecrm.com/developer/api/version-8/

Hi,

We have mentioned version details below.

SuiteCRM version = 7.9.8
API version= v4_1 soap
API URL =http://localhost:8080/suitecrm/service/v4_1/soap.php[Which SuiteCRM is installed using WAMP server in local system ]

Actually we are getting response in many times. But after some times,We are getting below mentioned error occurred when we give request using get_entry_list method to fetch data for the particular table from SuiteCRM through API.

 ( ! ) Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 257172093 bytes) in 
                 C:\wamp\www\SuiteCRM\include\nusoap\nusoap.php on line 591

Call Stack

Time Memory Function Location


1 0.0000 142640 {main}( ) …\soap.php:0
2 0.0200 1363736 require_once( ‘C:\wamp\www\SuiteCRM\service\core\webservice.php’ ) …\soap.php:53
3 0.1800 13355936 NusoapSoap->serve( ) …\webservice.php:66
4 0.1800 13373736 nusoap_server->service( ) …\NusoapSoap.php:90
5 1.5400 36959024 nusoap_server->serialize_return( ) …\nusoap.php:4980
6 1.5400 36959504 wsdl->serializeRPCParameters( ) …\nusoap.php:5400
7 1.5400 36962128 wsdl->serializeType( ) …\nusoap.php:7235
8 1.5400 36963576 wsdl->serializeComplexTypeElements( ) …\nusoap.php:7555
9 2.6600 38806736 wsdl->serializeType( ) …\nusoap.php:7807
10 49.3271 92790896 wsdl->serializeType( ) …\nusoap.php:7607
11 49.3271 92791304 wsdl->serializeComplexTypeElements( ) …\nusoap.php:7555
12 49.3271 92791440 wsdl->serializeType( ) …\nusoap.php:7807
13 50.8931 94982288 wsdl->serializeType( ) …\nusoap.php:7607
14 50.8931 94982696 wsdl->serializeComplexTypeElements( ) …\nusoap.php:7555
15 50.9031 94982864 wsdl->serializeType( ) …\nusoap.php:7807
16 59.8901 106651696 wsdl->serializeType( ) …\nusoap.php:7607
17 59.8901 106652104 wsdl->serializeComplexTypeElements( ) …\nusoap.php:7555
18 59.8901 106652240 wsdl->serializeType( ) …\nusoap.php:7807
19 60.0001 106765512 NusoapSoap->shutdown( ) …\NusoapSoap.php:0
20 60.0401 106764592 nusoap_server->send_response( ) …\NusoapSoap.php:76
21 60.0401 106764680 nusoap_fault->serialize( ) …\nusoap.php:5478
22 60.0401 106766312 nusoap_base->serialize_val( ) …\nusoap.php:1516
23 60.0401 106766664 nusoap_base->expandEntities( ) …\nusoap.php:768
24 61.0601 270960480 preg_replace ( ) …\nusoap.php

Kindly Provide me solution to solve this issue.

Thanks!

Ah, that’s easy. Just go in your php.ini and increase your memory_limit.

I use 512 MB, but 256 MB should be enough if you can’t give it more.

Don’t forget to restart Apache.