[Archivesspace_Users_Group] I didn't know you could do this...
Steven Majewski
sdm7g at virginia.edu
Sat Sep 5 15:33:18 EDT 2015
I didn’t know you could do this: break the app using the backend API.
Attempting to figure out the parameters to post an import job to the backend,
I got the JSON parameters wrong or incomplete, and now all I get from trying to
GET /repository/$REPO/jobs?page=1 in the backend is:
{
"error": "Had some trouble parsing your request: unexpected token at 'null'"
}
And accessing jobs in the frontend browser returns this page:
NoMethodError in Jobs#index
Showing /projects/Archivespace/1archivesspace/data/tmp/jetty-0.0.0.0-8088-frontend.war-_-any-/webapp/WEB-INF/app/views/jobs/index.html.erb where line #25 raised:
undefined method `[]' for nil:NilClass
Extracted source (around line #25):
22: <% end %>
23:
24: <h3><%= I18n.t("job._frontend.section.archived_jobs") %></h3>
25: <% if @search_data['results'].length > 0 %>
26: <%= render_aspace_partial :partial => "jobs/listing", :locals => {:jobs => @search_data['results']} %>
27: <%= render_aspace_partial :partial => "shared/pagination" %>
28: <% else %>
Rails.root: /projects/Archivespace/1archivesspace/data/tmp/jetty-0.0.0.0-8088-frontend.war-_-any-/webapp/WEB-INF
Application Trace <http://localhost:8088/jobs#> | Framework Trace <http://localhost:8088/jobs#> | Full Trace <http://localhost:8088/jobs#>
app/views/jobs/index.html.erb:25:in `_app_views_jobs_index_html_erb__573411897_16740'
Luckily, I was working on a test instance where I can blow away the database and start over if necessary.
But deleting the last row in the mysql ‘job’ table appears to have fixed it.
— Steve Majewski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150905/34d1de7b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4943 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150905/34d1de7b/attachment.bin>
More information about the Archivesspace_Users_Group
mailing list