dspace-angular-error.log Indicates It's Looking For My REST API At The Demo Site

30 views
Skip to first unread message

Gavin Spomer

unread,
Sep 24, 2021, 5:53:29 PM9/24/21
to DSpace Technical Support
In my environment.prod.ts file I have:

2021-09-24_13-57-09.png

But my dspace-angular-error.log shows:

   No _links section found at https://api7.dspace.org/server/api 

Figuring that https://api7.dspace.org/server/api was likely a default I looked in environment.common.ts and of course I found it set in there. Then curious as to why it didn't use the value of 'localhost' from my environment.prod.ts I decided to run yarn again and noticed the error:

   No specific environment file found for --prod 

Why doesn't it find it? My file is in the src/environments/ directory and has the same permissions. 

 - Gavin 

Tim Donohue

unread,
Sep 27, 2021, 1:01:12 PM9/27/21
to Gavin Spomer, DSpace Technical Support
Hi Gavin,

Could you double check the version of Yarn you are using?  We only support Yarn v1 at this time.  Also, double check the version of Node (should be v12 or v14)

Beyond that, you should just need the file in /src/environments/environment.prod.ts for it to be recognized. 

You also are welcome to modify the "environment.common.ts" file directly, to test configurations are working.  We just recommend separating out your modified configs into "environment.prod.ts" in order to keep your production configs separated from development/test configs.

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Gavin Spomer <Gavin....@cwu.edu>
Sent: Friday, September 24, 2021 4:53 PM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] dspace-angular-error.log Indicates It's Looking For My REST API At The Demo Site
 
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/3f79f48b-2aa7-48e8-bbbb-eae9b5593a4an%40googlegroups.com.

Gavin Spomer

unread,
Sep 27, 2021, 1:40:23 PM9/27/21
to DSpace Technical Support
Thanks Tim. I originally did just edit the environment.common.ts file to make it work, but the OCD in me was not happy with a workaround, LOL.

I originally installed everything for the UI via FreeBSD packages:
   npm-node14-6.14.8
   yarn-node14-1.22.11

But taking a cue from my REST API install issues, I decided to just keep npm-node14-6.14.8, delete yarn-node14-1.22.11 and install yarn via npm. I don't know why that worked, but it now sees my environment.prod.ts file. 

Now I have a different issue where the UI is running, but no CSS is being applied. I have some MIME type errors in my browser console, so I have that as clues to how to resolve. If I get stuck again, I'll create a separate post for that.

 - Gavin 

Reply all
Reply to author
Forward
0 new messages