Support » Plugin: WP Shopify » Unable to establish connection to Shopify

  • ryandonsullivan

    (@ryandonsullivan)


    We’ve setup the private Shopify app and input all of the secret and authentication keys into the WordPress plugin settings. When attempting to connect, the initial sync screen loads and is never able to establish a connection. It hangs on the syncing screen indefinitely with no progress beyond “Preparing Shopify Connection…”

    There are a number of preflight and authentication errors from the console:

    [Error] Preflight response is not successful
    [Error] XMLHttpRequest cannot load http://XXXXXXXXXXX.net/wp-json/wpshopify/v1/license/ due to access control checks.
    [Error] Failed to load resource: Preflight response is not successful (license, line 0)
    [Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'e.status')
    	Wa (admin.08ddc92c.min.js:1:76785)
    	(anonymous function) (admin.08ddc92c.min.js:1:79922)
    	promiseReactionJob
    [Error] Preflight response is not successful
    [Error] XMLHttpRequest cannot load http://XXXXXXXXXXX.net/wp-json/wpshopify/v1/syncing/notices/ due to access control checks.
    [Error] Failed to load resource: Preflight response is not successful (notices, line 0)
    [Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'e.status')
    	Wa (admin.08ddc92c.min.js:1:76785)
    	(anonymous function) (admin.08ddc92c.min.js:1:79922)
    	promiseReactionJob
    [Error] Preflight response is not successful
    [Error] XMLHttpRequest cannot load http://XXXXXXXXXXX.net/wp-json/wpshopify/v1/cache/ due to access control checks.
    [Error] Failed to load resource: Preflight response is not successful (cache, line 0)
    [Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'e.status')
    	Wa (admin.08ddc92c.min.js:1:76785)
    	(anonymous function) (admin.08ddc92c.min.js:1:79922)
    	promiseReactionJob
    [Error] Preflight response is not successful
    [Error] XMLHttpRequest cannot load http://XXXXXXXXXXX.net/wp-json/wpshopify/v1/notices/ due to access control checks.
    [Error] Failed to load resource: Preflight response is not successful (notices, line 0)
    [Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'e.status')
    	Wa (admin.08ddc92c.min.js:1:76785)
    	(anonymous function) (admin.08ddc92c.min.js:1:79922)
    	promiseReactionJob

    Any thoughts on what may be happening here? Is the REST API access blocked? Thanks in advance for any information you can provide.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author andrewmrobbins

    (@andrewmrobbins)

    @ryandonsullivan

    Hey there!

    Based on those errors, there’s a good chance the REST API is blocked.

    Can you try deactivating all your other plugins and then resync to see if the errors go away?

    Plugin Author andrewmrobbins

    (@andrewmrobbins)

    Closing. Feel free to re-open if you need.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.