Versions Compared

Key

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

...

First, test the connection to your REST API from the UI from the command-line.

...


Code Block
# This script will attempt a basic Node.js connection to the REST API that is configured in your "[dspace-angular]/config/config.prod.yml" 
# file and validate the response.  (NOTE: you will need to copy your config.prod.yml to [dspace-angular]/config/ for this script to find it!)
yarn test:rest

# In DSpace 7.1 a different command was needed
# yarn config:check:rest


  • A successful connection should return a 200 Response and all JSON validation checks should return "true".
  • If you receive a connection error or different response code, you MUST fix your REST API before the UI will be able to work (see additional hints below for likely causes). 

Oftentimes, this issue Usually, the core problem is caused by one of the following scenarios:

...