Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

See the Troubleshoot an error page, look for the section on "DSpace 7.x".  This will provide you hints on locating error messages both in the User Interface (frontend) and in the REST API (backend)

"No _links section found at..." error from User Interface

When starting up the User Interface for the first time, you may see an error that looks similar to this...

Code Block
No _links section found at [rest-api-url]
ERROR Error: undefined doesn't contain the link sites
     at MapSubscriber.project

This error means that the UI is unable to contact the REST API listed at [rest-api-url] and/or the response from that [rest-api-url] is unexpected (as it doesn't contain the "_links" to the endpoints available at that REST API).  A valid DSpace [rest-api-url] will respond with JSON similar to our demo API at https://api7.dspace.org/server/api

The problem is likely in the "rest" section of your environment.*.ts configuration file for the User Interface.  That configuration section defines which REST API the UI will attempt to use.  If the settings do NOT map to a valid DSpace REST API, then you will see this "No _links section found.." error.

"CORS error" or "Invalid CORS request"

...