phaidra / phaidra-api

RESTish API to Phaidra
Apache License 2.0
6 stars 4 forks source link

simple search api seems not working #91

Closed yurj closed 1 year ago

yurj commented 1 year ago

curl -X GET "https://services.phaidra.univie.ac.at/api/search/" -F "q=Wien"

returns nothing. Here:

curl -X GET "https://phaidra.cab.unipd.it/api/search" -F "q=test"

[2023/11/10 12:50:47] [ERROR] [16605] [error] [AwDn7XbbACJJ] Can't locate object method "delay" via package "Mojo::IOLoop" at /usr/local/phaidra/phaidra-api/PhaidraAPI/Controller/Search.pm line 177.

Maybe upgrading to Mojolicious 9 broke this?

giulioturetta commented 1 year ago

Mojolicious 9 removed Mojo::IOLoop::Delay, cf. https://metacpan.org/dist/Mojolicious/changes#L180, https://metacpan.org/pod/Mojo::IOLoop::Delay.

yurj commented 1 year ago

Solved by https://github.com/phaidra/phaidra-api/pull/92 Thanks!