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

Search request return 500 #4

Open
gmarineau opened this issue May 7, 2020 · 3 comments
Open

Search request return 500 #4

gmarineau opened this issue May 7, 2020 · 3 comments

Comments

@gmarineau
Copy link

Hi,

I try to make a request with the search method but it's return an error code 500

Educa\DSB\Client\ApiClient\ClientRequestException: Request to /search failed. Status: 500

$client = new ClientV2('https://demo-dsb-api.educa.ch/v2', 'secret', 'secret', 'secret');
$client->authenticate();
$client->search();

It's work fine when I use for example the "loadDescription" method.

I don't know if you can give me more details about this error ?

Best regards

@dpizarroeduca
Copy link

dpizarroeduca commented May 13, 2020 via email

@dpizarroeduca
Copy link

dpizarroeduca commented May 13, 2020 via email

@gmarineau
Copy link
Author

Hi @dpizarroeduca,

I have found the bug. Your demo server return an 500 error when the "sortBy" variable is set to "random".

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

2 participants