Giter Club home page Giter Club logo

Comments (3)

georged avatar georged commented on May 24, 2024

@mtrindade92
check the time on your hosting server. If it's off by more than couple minutes, you will see the error above.
Thanks
George

from php-crm-toolkit.

mtrindade92 avatar mtrindade92 commented on May 24, 2024

@georged ,

Thanks for your reply.
In our application, PHP is configured the timezone "America/Sao_Paulo" ( -3:00 ).
On CRM Online 2016, is configured the timezone "Brasília" ( -3:00 ).

The problem occurs when AlexaCRM call the follow method: Client::retrieveOrganizations().
Into this method, getSoapResponse method is called too, and the error happens. See below:

`public function retrieveOrganizations() {

	/* Request a Security Token for the Discovery Service */
	$securityToken = $this->authentication->getDiscoverySecurityToken();

	/* Generate a Soap Request for the Retrieve Organization Request method of the Discovery Service */
	$discoverySoapRequest = $this->generateSoapRequest( $this->settings->discoveryUrl, $this->soapActions->getSoapAction( 'discovery', 'Execute' ), $securityToken, SoapRequestsGenerator::generateRetrieveOrganizationRequest() );

           //here the error happen
	$discovery_data = self::getSoapResponse( $this->settings->discoveryUrl, $discoverySoapRequest );`

So, the timezone is the same, what are my alternatives?

Thanks for your help!

from php-crm-toolkit.

georged avatar georged commented on May 24, 2024

@mtrindade92

what I meant is that you need to check the clock of your hosting server to make sure it's correct. Timezone may be right but if clock is off by 5 minutes, you'd get the error above.

Thanks
George

from php-crm-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.