Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation Errors Browsing Angular UI #391

Closed
terrywbrady opened this issue May 6, 2019 · 2 comments
Closed

Navigation Errors Browsing Angular UI #391

terrywbrady opened this issue May 6, 2019 · 2 comments

Comments

@terrywbrady
Copy link
Contributor

I am running the latest REST and Angular images in Docker.

The home page loads with the 2 default collections (loaded by AIP).

The UI generates a number of errors related to loading a license.

When I attempt to load an item page, an exception is thrown. (See the bottom of this output for that text).

License Error

Angular is running in the development mode. Call enableProdMode() to enable the production mode.
:8080/spring-rest/api/core/collections/01752a79-6e3e-4d8e-b056-ab013a87e538/license:1 GET http://localhost:8080/spring-rest/api/core/collections/01752a79-6e3e-4d8e-b056-ab013a87e538/license 500
dspace-rest-v2.service.ts:104 Error:  HttpErrorResponse {headers: HttpHeaders, status: 500, statusText: "OK", url: "http://localhost:8080/spring-rest/api/core/collections/01752a79-6e3e-4d8e-b056-ab013a87e538/license", ok: false, …}
response.models.ts:186 {statusCode: 500, statusText: "OK", message: "Http failure response for http://localhost:8080/sp…52a79-6e3e-4d8e-b056-ab013a87e538/license: 500 OK"}
ErrorResponse @ response.models.ts:186
(anonymous) @ request.effects.ts:54

Item Page Load Error

core.js:1673 ERROR TypeError: Cannot read property 'pipe' of undefined
    at RemoteDataBuildService../src/app/core/cache/builders/remote-data-build.service.ts.RemoteDataBuildService.buildSingle (remote-data-build.service.ts:36)
    at search.service.ts:116
    at Array.map (<anonymous>)
    at MapSubscriber.project (search.service.ts:115)
    at MapSubscriber../node_modules/rxjs/_esm5/internal/operators/map.js.MapSubscriber._next (map.js:35)
    at MapSubscriber../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:54)
    at MapSubscriber../node_modules/rxjs/_esm5/internal/operators/map.js.MapSubscriber._next (map.js:41)
    at MapSubscriber../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:54)
    at FilterSubscriber../node_modules/rxjs/_esm5/internal/operators/filter.js.FilterSubscriber._next (filter.js:38)
    at FilterSubscriber../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:54)
@artlowel
Copy link
Member

artlowel commented May 7, 2019

Those license errors started showing up after the submission PR was merged, so perhaps @atarix83 can shed some light on them.

The second error is due to the fact that the MyDSpace REST PR has been merged, but the corresponding UI PR hasn't. The REST PR renames dspaceObject to indexableObject in object lists, and the UI can't parse those anymore. So that should fix itself once #384 is merged

@tdonohue
Copy link
Member

Closing as this appears fixed based on the linked PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants