EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #06062
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] EPrints CRUD module returning a 500 error
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] EPrints CRUD module returning a 500 error
- From: Liam Green-Hughes <L.E.Green-Hughes@kent.ac.uk>
- Date: Fri, 28 Oct 2016 15:45:07 +0000
HI,
Not directly related to this, but instead to SWORD. If you want to use the interface to update items (with different documents etc) and are using EPrints 3.3 if might be worth getting in touch with EPrints services as we (Kent) had some work done on the
module. I think they have merged this into EPrints 3.4 but it was going to be released also on files.eprints.org at some point.
Regards Liam
From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Christer Enkvist <christer.enkvist@slu.se>
Sent: 28 October 2016 14:07 To: eprints-tech@ecs.soton.ac.uk Subject: Re: [EP-tech] EPrints CRUD module returning a 500 error Hi,
I encountered the same problem when trying to add posts using SWORD. If comment out the failing code in CRUD.pm to
#return $self->send_response( #HTTP_CREATED, #$atom->param( "mimetype" ), #$atom->output_dataobj( $items[0] ), # 'HTTP_CREATED', # 'application/atom+xml', # 'text', #); I can both extract and add posts. From what I understand this is some a debug code which seems to have been left by mistake (?). Those better reading code are most welcome to comment on this – I may be VERY wrong!
However, removing/commenting out the rows above, adding an Eprints XML file (NewPosts.xml) to the archive is without problem:
christer@honeybee:~/test$ curl -X POST -i -u my_username:my_password --data-binary "@NewPosts.xml" -H 'Content-Type: application/vnd.eprints.data+xml' http://pub-dev21.slub.se/id/contents HTTP/1.1 100 Continue
HTTP/1.1 200 OK Date: Fri, 28 Oct 2016 13:00:12 GMT Server: Apache/2.4.18 (Ubuntu) Location: http://pub-dev21.slub.se/id/eprint/13823 Content-Length: 0
And yes, the post appears in the archive J
Regards, Christer
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Andrew Hercules
Hi all,
I'm attempting to create a new EPrints record using the CRUD module. To test that I can access the repository, I'm using the example provided in the documentation. When I run the command from my terminal, I get the following response:
Weirdly, it returns a 500 Internal Server Error, yet it creates the EPrint record and puts it into the buffer. When I check the Apache logs, I see the following error message:
Has anybody seen this error before? If so, could you point me in the direction of a possible solution?
-- Andrew Hercules Developer & UX Researcher University of London Computer Centre Senate House, Malet Street, London WC1E 7HU T: +44 (0)20 7863 1342 |
- References:
- [EP-tech] EPrints CRUD module returning a 500 error
- From: Andrew Hercules <Andrew.Hercules@ulcc.ac.uk>
- Re: [EP-tech] EPrints CRUD module returning a 500 error
- From: Christer Enkvist <christer.enkvist@slu.se>
- [EP-tech] EPrints CRUD module returning a 500 error
- Prev by Date: Re: [EP-tech] EPrints CRUD module returning a 500 error
- Next by Date: [EP-tech] Issues with users
- Previous by thread: Re: [EP-tech] EPrints CRUD module returning a 500 error
- Next by thread: [EP-tech] An easier way to extract data - OAI-PMH?
- Index(es):