Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When setting $fm->useDataApi = true; getting errors regarding "Authorization header missing 'Basic' or 'Bearer'." - PHP 8 limitation for updating to 3.0.0-beta2 #54

Open
bearinaustin opened this issue Nov 22, 2024 · 0 comments

Comments

@bearinaustin
Copy link

I read the documentation and examples in the dataAPI branch of this package. I am running into an error when authenticating using dataAPI.

`
$fm = new FileMaker($database, $host, $username, $password,['errorHandling' => 'default']);

$fm->useDataApi = true;

$findCommand = $fm->newFindCommand($layout);

$findCommand->addFindCriterion('tournament_year',$year);
$findCommand->addFindCriterion('tournament_semester',$semester);

$findCommand->addSortRule('tournament_sport',1,FileMaker::SORT_ASCEND);

$result = $findCommand->execute();

if(FileMaker::isError($result))
{
echo($result->getMessage());
exit;
}
`

Resulting error is:
"Authorization header missing 'Basic' or 'Bearer'."

--

I realized that my composer was only installing 3.0.0-beta1 and not beta 2 because it was throwing an error that: airmoi/filemaker 3.0.0-beta2 requires php ^5.6|^7.0 -> your php version (8.2.15) does not satisfy that requirement.

Is the branch compatible with PHP 8?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant