indexdata / yaz

Z39.50 toolkit for C
http://www.indexdata.com/yaz
Other
43 stars 19 forks source link

yaz-client vs. zoom API #63

Closed andrisi closed 2 years ago

andrisi commented 2 years ago

I'm using the ZOOM api (through a nodejs wrapper, https://github.com/dengelke/node-zoom2/) and stuck with a strange issue. When running a simple query in yaz-client, it works fine, but if it is ran throught ZOOM API calls, it fails to give any results, which makes me beleive that somehow the same query is sent in different ways, or some option is set silently. Please have a look at: https://github.com/dengelke/node-zoom2/issues/20 which goes as far as discovering that one uses send_Z3950_searchRequest() and the other uses ZOOM_query_prefix().

MikeTaylor commented 2 years ago

Andris,

If I were debugging this, I would start by running the same query using the ZOOM command-line client zoomsh. If that works, then you know the problem is in the ZOOM-based app that you're writing (or maybe the Node wrapper, which we're not familiar with). If if does NOT work using zoomsh, then you can run it using the -a - command-line option -- see https://software.indexdata.com/yaz/doc/zoomsh.html -- to discover exactly what requests are being sent.

Good luck.

-- Mike.

On Sun, Jan 16, 2022 at 1:15 AM Andris Kardos @.***> wrote:

I'm using the ZOOM api (through a nodejs wrapper, https://github.com/dengelke/node-zoom2/) and stuck with a strange issue. When running a simple query in yaz-client, it works fine, but if it is ran throught ZOOM API calls, it fails to give any results, which makes me beleive that somehow the same query is sent in different ways, or some option is set silently. Please have a look at: dengelke/node-zoom2#20 https://github.com/dengelke/node-zoom2/issues/20 which goes as far as discovering that one uses send_Z3950_searchRequest() and the other uses ZOOM_query_prefix().

— Reply to this email directly, view it on GitHub https://github.com/indexdata/yaz/issues/63, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABT6GIG3JQKZTME4RT56P3UWIL2TANCNFSM5MBUWM6A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

andrisi commented 2 years ago

Thanks! It does work in zoomsh indeed. I'll close this ticket when I find out the cause.

andrisi commented 2 years ago

Thanks for the suggestion @MikeTaylor the problem was in the node wrapper - it is fixed now.

MikeTaylor commented 2 years ago

Good to know!

On Mon, Jan 17, 2022 at 4:11 PM Andris Kardos @.***> wrote:

Thanks for the suggestion @MikeTaylor https://github.com/MikeTaylor the problem was in the node wrapper - it is fixed now.

— Reply to this email directly, view it on GitHub https://github.com/indexdata/yaz/issues/63#issuecomment-1014699417, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABT6GPMGDFYCXWU4WXF5ELUWQ5UHANCNFSM5MBUWM6A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>