Versions Compared

Key

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

...

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

Info

In 7.1, we've added a new yarn config:check:rest  script to the front-end, which can be used to debug connection issues between the User Interface and the REST API configured in "environment.prod.ts".

Code Block
yarn config:check:rest

If everything "looks good", you should see a 200 response, and all JSON validity checks should return "true".   If you see a different response code, or an error, this means Node.js is unable to communicate with your configured REST API.

Unfortunately, this is a generic error message which simply says your frontend cannot communicate with your backend.  It may be caused by a variety of installation scenarios...these are a few we've discovered so far:

...