mg2connext / connext

6 stars 0 forks source link

Error with Connext on Member Center staging. #17

Closed sframe closed 7 years ago

sframe commented 7 years ago

Hi Dael,

Can you assist us on the error we are seeing?

http://membercenter-staging.ajc.com/edit-profile

XMLHttpRequest cannot load https://stage-api.mg2connext.com/api/configuration/siteCode/AJC/configCode/CFG_TEST. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://membercenter-staging.ajc.com' is therefore not allowed access.

sframe commented 7 years ago

@mkoza178 : Hey Marc, I think we missed the Dael window ;)

Is this something you can help us out with?

Thanks!

barchito commented 7 years ago

seems like your website is not under https and connext api is under https. My recommendation will be to load the page using https.

The error is happening because CORS is not allowed between http and https. Should be all http or all https.

Thanks, Gabriel

sframe commented 7 years ago

@barchito - thanks for the quick response. I'll look into how we're loading connext.

NatalliaMikhailava commented 7 years ago

http://prntscr.com/faq9nx 1.0 is not supported anymore. 1.3 version or higher should be used

NatalliaMikhailava commented 7 years ago

Hi, team!

Has this been resolved?

willist commented 7 years ago

This has been resolved, but seeing a new error now:

Core getConfiguration Connext.API.GetLastPublishDateS3.Done => parseJSON <<EXCEPTION>> TypeError: Cannot read property 'GUPAccountService' of undefined
    at Object.init (http://cdn.mg2connext.com/stage/1.6/Connext.min.js:1:99969)
    at http://cdn.mg2connext.com/stage/1.6/Connext.min.js:1:128896
    at i (https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2:27983)
    at Object.fireWith [as resolveWith] (https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2:28749)
    at Object.f.(anonymous function) [as resolve] (https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2:30897)
    at Object.<anonymous> (http://cdn.mg2connext.com/stage/1.6/Connext.min.js:1:130392)
    at i (https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2:27983)
    at Object.fireWith [as resolveWith] (https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2:28749)
    at A (https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:4:14203)
    at XMLHttpRequest.<anonymous> (https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:4:16491)
(anonymous) @ Connext.min.js:1
willist commented 7 years ago

This can be observed on http://membercenter-staging.ajc.com/.

willist commented 7 years ago

Just wanted to follow up on this. This error is preventing all actions from firing, so I'm not able to work on Connext related items until this is resolved.

cc @sframe

NatalliaMikhailava commented 7 years ago

We are looking into this. Will update you with results today

NatalliaMikhailava commented 7 years ago

This is fixed

willist commented 7 years ago

Looks good. Thank you!