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

Could not pull content from connection due to error. API endpoint error. #1232

Closed
1 task done
IonTulbure opened this issue Jun 17, 2024 · 3 comments
Closed
1 task done
Assignees
Labels
help wanted type:bug Something isn't working.

Comments

@IonTulbure
Copy link

IonTulbure commented Jun 17, 2024

Describe the bug

Distributor stable Version 2.0.4.

I can establish connection from site X to site Y on a Shared Hosting (Hostinger)

image

image

However at Pull Content screen i get this error:

Could not pull content from connection due to error. API endpoint error.

image


On both of these 2 websites i get the following error (Query Monitor)

Post: https://site.xyz/wp-json/wp/v2/distributor/list-pull-content  (confidential)
500 Internal Server Error
Caller: 
Distributor\ExternalConnections\WordPressExternalConnection->remote_post()
wp-content/plugins/distributor-stable/includes/classes/ExternalConnections/WordPressExternalConnection.php:243
Distributor\ExternalConnections\WordPressExternalConnection->remote_get()
wp-content/plugins/distributor-stable/includes/classes/ExternalConnections/WordPressExternalConnection.php:176
Distributor\PullListTable->prepare_items()
wp-content/plugins/distributor-stable/includes/classes/PullListTable.php:530
Distributor\PullUI\dashboard()
wp-content/plugins/distributor-stable/includes/pull-ui.php:529
do_action('distributor_page_pull')
wp-includes/plugin.php:517 
Component: Plugin: distributor-stable

Besides Distributor everything works fine and fast. Hosting has enough resources.
I tried to deactivate other plugins and change theme but it gave no result.
Also i switched between various PHP versions (7.4 -> 8.1) and also no luck.

On both sites Rest Api is available :
image

Steps to Reproduce

  1. Establish connection between sites
  2. Go to Pull Content screen
  3. Use Query Monitor to catch errors
    image

Screenshots, screen recording, code snippet

See Description

Environment information

Env info:

Wordpress: 6.5.4
SSl: yes
Web Server: LiteSpeed
PHP: 8.1.27 (Supports 64bit values)
PHP memory: 	2048M
PHP max input variables	5000
PHP time limit	360
Max input time	360
cURL version	7.87.0 OpenSSL/1.1.1w
Extension	mysqli
Server version	10.11.7-MariaDB-cll-lve

WordPress information


Version	6.5.4
Site Language	en_US
User Language	en_US
Timezone	+00:00
Home URL	https://site.xyz
Site URL	https://site.xyz
Permalink structure	/%postname%/
Is this site using HTTPS?	Yes
Is this a multisite?	No
Can anyone register on this site?	No
Is this site discouraging search engines?	Yes
Default comment status	Open
Environment type	local
User count	2
Communication with WordPress.org	WordPress.org is reachable

Code of Conduct

  • I agree to follow this project's Code of Conduct
@IonTulbure IonTulbure added the type:bug Something isn't working. label Jun 17, 2024
@jeffpaul jeffpaul added this to the 2.2.0 milestone Jun 17, 2024
@kirtangajjar kirtangajjar self-assigned this Jul 29, 2024
@kirtangajjar
Copy link
Member

@vikrampm1 Although I didn't have access to shared hosting, but I tried to replicate the issue in my local with shown configuration and I wasn't able to reproduce it.

@vikrampm1
Copy link

@ankitguptaindia @qasumitbagthariya can you double check to see if you are able to reproduce this issue? If not, then we can go ahead and close the issue.

@jeffpaul jeffpaul closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2024
@jeffpaul jeffpaul removed this from the 2.2.0 milestone Sep 9, 2024
@qasumitbagthariya
Copy link
Contributor

@vikrampm1

I tried to replicate the issue locally but was unable to reproduce it. I also cross-checked with WordPress versions 6.5.4 and 6.6.1.

WordPress 6.5.4

6.5.4.mov

WordPress 6.6.1

6.6.1.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted type:bug Something isn't working.
Projects
Status: Done
Development

No branches or pull requests

5 participants