gosling.js icon indicating copy to clipboard operation
gosling.js copied to clipboard

higlass server error occurs when a get request for vector data is issued

Open zhangzhen opened this issue 3 years ago • 2 comments

When I go to the following url: http://172.16.110.157:8888/api/v1/tiles/?d=WESCustom_gcContent.0.0, I get back Server Error (500) back. Instead of WESCustom_gcContent.0.0 (zoom level = 0), it works with WESCustom_gcContent.1.0 (zoom level = 1). I cannot figure out what the root of the cause is? Could you please help me to find the root? The hitile file is attached below. @sehilyi you need to remove the txt ext from the filename due to the upload file restriction. WESCustom.gc.hitile.txt

Gosling.js: v0.9.14

zhangzhen avatar Dec 15 '21 07:12 zhangzhen

Hi @zhangzhen, could you share more details about how did you (1) processed data and (2) ingested the data to the server (i.e., exact commands) so that I can reproduce this issue?

sehilyi avatar Dec 16 '21 23:12 sehilyi

Hi @sehilyi, I've found the root cause of this issue and fixed it. I use an example to illustrate the cause. max_zoom of my data is 10. The numbering of zoom levels is from 0 to 9. Data is stored in hdf5 files according to the numbering. Given the tile id WESCustom_gcContent.0.0, zoom_level is calculated via the simplified formula: zoom_level = max_zoom - zoom_no_from_tile_id, hence zoom_level = 10. However, there is no data for zoom_level 10, so the server error occurs.

See Figure 1 for the root cause of this issue: https://github.com/higlass/clodius/blob/743190017fa9b3be2d1434e9923b0b1c52ac4ab6/clodius/hdf_tiles.py#L187 Figure 1: image

See Figure 2 for the hotfix to this issue: https://github.com/higlass/clodius/blob/e9883df34c5d1c4a9a121af75462b1a90abfc7b3/clodius/cli/aggregate.py#L846 https://github.com/higlass/clodius/blob/e9883df34c5d1c4a9a121af75462b1a90abfc7b3/clodius/cli/aggregate.py#L851 Figure 2: image

Regards, Zhen

zhangzhen avatar Dec 17 '21 03:12 zhangzhen