Dspace 7 new bitstream on item error

406 views
Skip to first unread message

Juan López

unread,
Sep 15, 2021, 11:43:58 AM9/15/21
to DSpace Technical Support
Hi!

I'm trying to upload a new bitstream to an item but I get just a blank page (SC1).

This is what the console shows:

core.js:4442 ERROR TypeError: You provided 'undefined' where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.
    at subscribeTo (subscribeTo.js:27)
    at innerSubscribe (innerSubscribe.js:69)
    at SwitchMapSubscriber._innerSub (switchMap.js:44)
    at SwitchMapSubscriber._next (switchMap.js:34)
    at SwitchMapSubscriber.next (Subscriber.js:49)
    at MapSubscriber._next (map.js:35)
    at MapSubscriber.next (Subscriber.js:49)
    at BehaviorSubject._subscribe (BehaviorSubject.js:14)
    at BehaviorSubject._trySubscribe (Observable.js:42)
    at BehaviorSubject._trySubscribe (Subject.js:81)

And my dspace.log doesn't show any error:

2021-09-15 10:37:33,531 INFO  feeb011f-4709-43b6-bf8d-f15fa0dbdd9d 93074dcc-80e8-4efd-98d3-bf3ac18bc7d0 org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [GET /server/api/core/bundles/bfa0dcef-03c9-4ca0-8db5-3addaed5ab9e/primaryBitstream] originated from /items/c4dc44db-a86c-4a67-b33f-f397dc03285d/bitstreams/new


What could be happening?, hope you guys can help me with this one.

Thanks in advance.

Juan
SC1.png

Tim Donohue

unread,
Sep 15, 2021, 12:44:23 PM9/15/21
to Juan López, DSpace Technical Support
Hi Juan,

Please also check to see if the REST API is throwing an error response back to you when you attempt an upload.  These will appear in the "Network" tab of your browser's DevTools.  Usually these are also logged on the backend, but it's possible there's an error that occurs so early on in the process that it doesn't get logged.


If you are able to locate a more specific error, send it along to the list.  The current error you sent is very generic and basically says "something went wrong"...so, we'd need you to try and track down a more specific error, in order to help out.

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Juan López <juanlop...@gmail.com>
Sent: Wednesday, September 15, 2021 10:43 AM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] Dspace 7 new bitstream on item error
 
--
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/325dc460-1831-4204-8ce1-59e7b432ead6n%40googlegroups.com.

euler

unread,
Sep 15, 2021, 10:46:36 PM9/15/21
to DSpace Technical Support
Hi Tim,

I am having the same error in my DSpace 7 instance here. I have no problem uploading files during the submission (thanks to the drag and drop feature) and this only occurs when adding a new bitstream to an archived item. I tried uploading a new bitstream in an archived item in https://demo7.dspace.org and this error also occurs. I am logged in as Demo Site Administrator when I did this by the way.

Hoping for a solution for this and I hope it will get resolved soon.

Thanks in advance,
euler

Tim Donohue

unread,
Sep 16, 2021, 4:13:25 PM9/16/21
to euler, DSpace Technical Support
Hi Euler & all,

We've verified there is a bug in uploading bitstreams to existing Items​.  A ticket exists here https://github.com/DSpace/dspace-angular/issues/1286  As of today, it's been assigned & work will start immediately -- hopefully, a fix will be ready in the next week or two.  (This bug does NOT impact the upload process of the submission UI, as that works fine. It only impacts the upload when editing an existing Item.)

This fix will be included in 7.1 (due Nov 1).  But, if you need it sooner, you might be able to manually apply it (once the PR is ready) to your 7.0 site.  My initial guess is it's probably a minor change that will fix this major problem (as this feature used to work).

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of euler <esn...@seafdec.org.ph>
Sent: Wednesday, September 15, 2021 9:46 PM

To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: Re: [dspace-tech] Dspace 7 new bitstream on item error
 
Reply all
Reply to author
Forward
0 new messages