The keys must be passed using the keys arguments instead of the options. In this case the keys size is 500 and it blows up when passed through the URI with options.