<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
<p>Yeah, I actually have seen that before...it's a Rack thing, which is limiting the number of  parameter keys submitted ( the default is limited 65536 ). uh...here's the description of it =>
</p>
<p><a id="lnk720379" href="https://github.com/rack/rack/issues/318">https://github.com/rack/rack/issues/318</a></p>
<p><br>
</p>
<p>So, you could break up the JSON, or you could increase the </p>
<p>Rack::Utils.key_space_limit to something much higher, although as the github issue suggests could leave you more open to a DOS attack ( since someone could just throw big wads of JSON at you and your web server will die just trying to serialize it ).</p>
<p><br>
</p>
<p>Might be good to have this added to the config.rb so people can tweak the number when they want to do an import?
<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">Chris Fitzpatrick | <font size="2">Developer, ArchivesSpace</font><br>
Skype: chrisfitzpat  | Phone: 918.236.6048<br>
http://archivesspace.org/<br>
</div>
</font></div>
</div>
</div>
<div style="word-wrap:break-word">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Steven Majewski
 <sdm7g@virginia.edu><br>
<b>Sent:</b> Thursday, December 4, 2014 9:01 PM<br>
<b>To:</b> Archivesspace Users Group (archivesspace_users_group@lyralists.lyrasis.org)<br>
<b>Subject:</b> [Archivesspace_Users_Group] Puma caught this error: exceeded available parameter key space (RangeError)</font>
<div> </div>
</div>
<div>
<div><br>
</div>
<div>Ever seen this ?  Any idea what this error message means ?  — Steve Majewski</div>
<div><br>
</div>
<div><br>
</div>
<div><font face="Menlo">curl -H "X-ArchivesSpace-Session: 8ebd995c8155efcc516a53f99ed5315010fec1cd7fe606fb507b054c70482d0b" "-d @imports/UVA-SC/viu00005.json
<a href="http://localhost:4567/repositories/2/batch_imports”">http://localhost:4567/repositories/2/batch_imports”</a></font></div>
<div><font face="Menlo"><br>
Puma caught this error: exceeded available parameter key space (RangeError)<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/utils.rb:464:in `[]='<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/utils.rb:111:in `normalize_params'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/utils.rb:96:in `parse_nested_query'<br>
org/jruby/RubyArray.java:1613:in `each'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/utils.rb:93:in `parse_nested_query'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/request.rb:332:in `parse_query'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/request.rb:209:in `POST'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/request.rb:221:in `params'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/sinatra-1.3.6/lib/sinatra/base.rb:789:in `call!'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/sinatra-1.3.6/lib/sinatra/base.rb:780:in `call'<br>
app/main.rb:249:in `call'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/nulllogger.rb:9:in `call'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/rack-1.4.5/lib/rack/head.rb:9:in `call'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/sinatra-1.3.6/lib/sinatra/base.rb:124:in `call'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/sinatra-1.3.6/lib/sinatra/base.rb:1417:in `call'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/sinatra-1.3.6/lib/sinatra/base.rb:1499:in `synchronize'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/sinatra-1.3.6/lib/sinatra/base.rb:1417:in `call'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/puma-2.8.2-java/lib/puma/server.rb:490:in `handle_request'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/puma-2.8.2-java/lib/puma/server.rb:488:in `handle_request'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/puma-2.8.2-java/lib/puma/server.rb:361:in `process_client'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/puma-2.8.2-java/lib/puma/server.rb:357:in `process_client'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/puma-2.8.2-java/lib/puma/server.rb:254:in `run'<br>
org/jruby/RubyProc.java:271:in `call'<br>
/projects/Archivespace/dcs-archivesspace/build/gems/gems/puma-2.8.2-java/lib/puma/thread_pool.rb:92:in `spawn_thread'URL
<a href="http://localhost:4567">http://localhost:4567</a></font></div>
</div>
</div>
</div>
</body>
</html>