firefly-iii/firefly-iii · error · BadHttpHeaderException
Sorry, Accept header "%s" is not something this endpoint can
Error message
Sorry, Accept header "%s" is not something this endpoint can provide.
What it means
Error "Sorry, Accept header "%s" is not something this endpoint can provide." thrown in firefly-iii/firefly-iii.
Source
Thrown at app/Api/V1/Controllers/Controller.php:96
/**
* Controller constructor.
*/
public function __construct()
{
// get global parameters
$this->middleware(function ($request, $next) {
$this->parameters = $this->getParameters();
if (auth()->check()) {
$language = Steam::getLanguage();
$this->convertToPrimary = Amount::convertToPrimary();
$this->primaryCurrency = Amount::getPrimaryCurrency();
app()->setLocale($language);
}
// filter down what this endpoint accepts.
if (!$request->accepts($this->accepts)) {
throw new BadHttpHeaderException(sprintf('Sorry, Accept header "%s" is not something this endpoint can provide.', $request->header('Accept')));
}
return $next($request);
});
}
/**
* Method to help build URL's.
*/
final protected function buildParams(): string
{
$return = '?';
$params = [];
foreach ($this->parameters as $key => $value) {
if ('page' === $key) {
continue;
}
if ($value instanceof Carbon) {View on GitHub (pinned to fd8791d08d)
When it happens
Trigger: Thrown at app/Api/V1/Controllers/Controller.php:96 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of firefly-iii/firefly-iii@fd8791d08d (2026-08-17).
Data as JSON: /api/errors/5891206394277716.
Report an issue: GitHub.