If you encounter such an error a message while creating a link:
...
Take a look into your space permissions, and make sure External Share for Confluence user has access to your space.
...
These permissions are the default for External Share for Confluence. It guarantees the correct operation of all functionalities - such as creating links and adding comments and attachments.