Can't create a new project with Gitlab due to pop-up error

When attempting to create a new project on step 1 “Connect to Git provider” and choosing “Deploy with Gitlab” a pop-up is opened.

The pop-up shows an “Authorized” message but nothing happens after this message.

If you open the console from the pop-up you see the following error message

Uncaught TypeError: Cannot read properties of null (reading 'postMessage')

This won’t allow me to continue on the project creation.

I tried with a different computer and incognito and got the same message.

Will append images:

Additional Notes

If you click into the link in the error message you can see the line where the error is.

On line 85 there is a condition:

if ( host === "app.netlify.app" ||  host === "app.netlify.com" ||  host === "localhost") {

However, host is none of those strings:

  const match = e.origin.match(/https?:\/\/([^:]+)(:\d+)?$/);
  let host = match && match[1];

When running the code to get the host value in the console, the value comes up as api.netlify.com which doesn’t match any of the conditions.

Thanks for reporting this, and very sorry for the trouble!

We’ve opened an incident and you can follow along here: https://www.netlifystatus.com/incidents/95kbtr0bybb3

1 Like

We’ve moved this incident to Resolved. :tada: Please let us know if you are still experiencing any issues.

1 Like