No result when Beacon API query without beacon parameter

48 views
Skip to first unread message

Jack Ow

unread,
Jul 28, 2021, 3:19:43 AM7/28/21
to GA4GH Beacon Network
Hi ,

I've tried this beacon API query on postman. It did work but as I need to query all sites, removing the beacon parameter gives no result. Can you advise on the right parameter to use for querying all sites?


Without beacon parameter :

Thanks and best,
Jack

Jack Ow

unread,
Jul 28, 2021, 11:07:06 PM7/28/21
to GA4GH Beacon Network

Jonathan Fuerth

unread,
Aug 3, 2021, 11:36:01 AM8/3/21
to Jack Ow, GA4GH Beacon Network, Derek Choi
Hello Jack,

There is currently an issue with the beacon-network.org implementation where the entire request will fail if any of the requests to the backend beacon APIs fail with a timeout.

Most beacons respond within the timeout, but a few of them are often too slow. The best solution of course is for us to fix that bug in the beacon-network.org code.

In the meantime, here is a workaround you could try:

 1. use the /api/beacons endpoint to list all the beacons
 2. group the beacons into clusters of 3-4, and send one request per cluster similar to the example request you provided in your message
 3. for the groups that fail, try querying each beacon from that group one at a time. You will likely see one of the beacons in that group times out, and the others give a valid response.

Hope that helps!

Jonathan


On Wed, Jul 28, 2021 at 11:07 PM Jack Ow <oou...@gmail.com> wrote:
Hi ,

I've tried this beacon API query on postman. It did work but as I need to query all sites, removing the beacon parameter gives no result. Can you advise on the right parameter to use for querying all sites?


Without beacon parameter :

Thanks and best,
Jack

On Wednesday, 28 July 2021 at 15:19:43 UTC+8 Jack Ow wrote:
Hi ,

I've tried this beacon API query on postman. It did work but as I need to query all sites, removing the beacon parameter gives no result. Can you advise on the right parameter to use for querying all sites?


Without beacon parameter :

Thanks and best,
Jack

--
You received this message because you are subscribed to the Google Groups "GA4GH Beacon Network" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ga4gh-beacon-net...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ga4gh-beacon-network/8e60f9ff-d82e-433d-ba39-4e311aaf1eabn%40googlegroups.com.


--

Jonathan Fuerth
Software Developer at DNAstack

T: +1-647-200-2780

dnastack.com
@DNAstack


CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 

Jack Ow

unread,
Aug 16, 2021, 11:20:34 PM8/16/21
to GA4GH Beacon Network
Hi Jonathan,

Thanks for the reply and workaround.

Best,
Jack

Reply all
Reply to author
Forward
0 new messages