Jump to content

error occur when get recommend add-on


Kenneth Chan

Recommended Posts

When I go to "Payment Method" of the admin panel. It show error when call recommend url. It is a 503 error in my server. but It seem not able to connect to add-on server of Prestshop.

the url will be called

/admin389jj7ozu/index.php/modules/addons/modules/recommended?tabClassName=AdminPayment&_token=xxx

if I see the log. It show

"Data from PrestaShop Addons is invalid, and cannot fallback on cache."

Link to comment
Share on other sites

Hi,

Can you provide additional information about your issue ?

  • PrestaShop version (BO > Advanced Parameters > Information)
  • PHP version (BO > Advanced Parameters > Information)
  • MBO module version (BO > Modules > Module Manager > Search ps_mbo)
  • Screenshot or video capture of the issue
  • Additional errors logs in your FTP (PrestaShop directory > var/logs)

Thanks

Link to comment
Share on other sites

50 minutes ago, Matt75 said:

Hi,

Can you provide additional information about your issue ?

  • PrestaShop version (BO > Advanced Parameters > Information)
  • PHP version (BO > Advanced Parameters > Information)
  • MBO module version (BO > Modules > Module Manager > Search ps_mbo)
  • Screenshot or video capture of the issue
  • Additional errors logs in your FTP (PrestaShop directory > var/logs)

Thanks

I found the problem should be in ps_mbo module.

PrestaShop verison 1.7.6.4

PHP version 7.0.33

MBO version  2.0.1

I seem the error will occur on SimpleCircuitBreaker when get the $response

    public function call(
        $service,
        array $serviceParameters = [],
        callable $fallback = null
    ) {
        $transaction = $this->initTransaction($service);
        try {
            if ($this->isOpened()) {
                if (!$this->canAccessService($transaction)) {
                    return $this->callFallback($fallback);
                }

                $this->moveStateTo(State::HALF_OPEN_STATE, $service);
            }
            $response = $this->request($service, $serviceParameters);
            $this->moveStateTo(State::CLOSED_STATE, $service);

            return $response;
        } catch (UnavailableServiceException $exception) {
            $transaction->incrementFailures();
            $this->storage->saveTransaction($service, $transaction);
            if (!$this->isAllowedToRetry($transaction)) {
                $this->moveStateTo(State::OPEN_STATE, $service);

                return $this->callFallback($fallback);
            }

            return $this->call($service, $serviceParameters, $fallback);
        }
    }

 

 

Edited by Kenneth Chan (see edit history)
Link to comment
Share on other sites

27 minutes ago, Matt75 said:

I need additional information to check if module need a patch or not.

  • Screenshot or video capture of the issue
  • Additional errors logs in your FTP (PrestaShop directory > var/logs)

Thanks

After I go to this page. it will not write anything on var/logs/prod.log

I also try to reinstall prestashop with latest version. The error still occur.

Capture.PNG

Edited by Kenneth Chan (see edit history)
Link to comment
Share on other sites

1 hour ago, Matt75 said:

I need additional information to check if module need a patch or not.

  • Screenshot or video capture of the issue
  • Additional errors logs in your FTP (PrestaShop directory > var/logs)

Thanks

I finally found the reason.

ExternalContentProvider set the timeout is 0.6 second. but It is not enough. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...