## TL;DR

For "Error: error loading remote rules: loading rules failed: gzip: invalid header": i was able to run bearer scan. successfully today across both repositories that didn't work a handful of days ago without any changes on my end. It's an amazing tool ;) I will close this issue, if the issue is not resolved for @ldeveber-zivian, a separate one can be opened.

```text
Error: error loading remote rules: loading rules failed: gzip: invalid header
```

## Steps

1. [reporter mcmxcdev]: @elsapet Thank you for your debugging help! I was able to run `bearer scan .` successfully today across both repositories that didn't work a handful of days ago without any changes on my end. It's an amazing tool ;) I will close this issue, if the issue is not resolved for @ldeveber-zivian, a separate one can be opened.

## When to use

You are seeing this: [reporter mcmxcdev]: @elsapet Thank you for your debugging help! Use this skill when you run into "bearer scan .` outputs `Error: error loading remote rules: loading rules failed: gzip: invalid header`".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://github.com/Bearer/bearer#rocket-getting-started
