{"record":{"id":"fcdcaf2cb14db5bd","repo":"hashicorp/vagrant","slug":"cloud-command-box-show-filter-empty","errorCode":null,"errorMessage":"cloud_command.box.show_filter_empty","messagePattern":"cloud_command\\.box\\.show_filter_empty","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"plugins/commands/cloud/box/show.rb","lineNumber":114,"sourceCode":"                    v.providers.any? { |p|\n                      options[:architectures].include?(p.architecture)\n                    }\n                  }\n                else\n                  item.providers.any? { |p|\n                    options[:architectures].include?(p.architecture)\n                  }\n                end\n              } if !Array(options[:architectures]).empty?\n\n              if !list.empty?\n                list.each do |b|\n                  format_box_results(b, @env, options.slice(:providers, :architectures))\n                  @env.ui.output(\"\")\n                end\n                0\n              else\n                @env.ui.warn(I18n.t(\"cloud_command.box.show_filter_empty\",\n                  org: org,\n                  box_name: box_name,\n                  architectures: Array(options[:architectures]).empty? ? \"N/A\" : Array(options[:architectures]).join(\", \"),\n                  providers: Array(options[:providers]).empty? ? \"N/A\" : Array(options[:providers]).join(\", \"),\n                  versions: Array(options[:versions]).empty? ? \"N/A\" : Array(options[:versions]).join(\", \")\n                ))\n                1\n              end\n            end\n          rescue VagrantCloud::Error => e\n            @env.ui.error(I18n.t(\"cloud_command.errors.box.show_fail\", org: org, box_name:box_name))\n            @env.ui.error(e.message)\n            1\n          end\n        end\n      end\n    end\n  end","sourceCodeStart":96,"sourceCodeEnd":132,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/commands/cloud/box/show.rb#L96-L132","documentation":"Warning plus failure exit from `vagrant cloud box show` (plugins/commands/cloud/box/show.rb) when filter options (--providers, --architectures, --versions) reduce the provider list to empty. It prints 'No matches found for org/box' with the applied filters ('N/A' for unset ones) and returns status 1; it is distinct from a network/API failure, which goes through the rescue VagrantCloud::Error branch instead.","triggerScenarios":"Running `vagrant cloud box show org/box --providers virtualbox --architectures arm` when no provider entry matches that provider+architecture combination; filtering by a version string that exists in the box but has no matching provider/architecture pair.","commonSituations":"Looking for ARM builds that were never published; typos in provider names ('vmware' vs 'vmware_desktop'); architecture filters (amd64 vs x86_64 naming) that mismatch how the publisher tagged entries; shell scripts assuming exit 0 means 'shown' and treating filter misses as API errors.","solutions":["First list unfiltered: `vagrant cloud box show org/box` to see which providers/architectures/versions actually exist.","Correct the filter spelling to match the published values exactly (provider names and architecture strings are matched literally).","Loosen the filter (drop --architectures or --providers) and filter client-side.","In scripts, treat exit 1 with this warning as 'no match', not as a transport error, and branch accordingly."],"exampleFix":"# before\nvagrant cloud box show myorg/base --providers virtualbox --architectures arm\n# -> No matches found ... exit 1\n\n# after\nvagrant cloud box show myorg/base                       # inspect real values first\nvagrant cloud box show myorg/base --providers virtualbox --architectures arm64","handlingStrategy":"validation","validationCode":"# discover real values before filtering\nraw=$(vagrant cloud box show \"$ORG/$BOX\")\nprovider_exists=$(printf '%s' \"$raw\" | grep -c \"$PROVIDER\")\n[ \"$provider_exists\" -gt 0 ] || { echo \"provider $PROVIDER not published\" >&2; exit 1; }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run unfiltered `vagrant cloud box show` first; copy exact provider/architecture/version strings.","In scripts, distinguish exit 1-with-'No matches found' from API errors before retrying.","Remember unset filters print as 'N/A' in the message — 'N/A' means you did not filter on that axis."],"tags":["vagrant","vagrant-cloud","box-show","filtering","no-results"],"backgroundTag":"empty-filter-result","analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}