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

link_tile returns a new uuid as a bytestring #103

Open
Chadius opened this issue May 16, 2019 · 0 comments
Open

link_tile returns a new uuid as a bytestring #103

Chadius opened this issue May 16, 2019 · 0 comments

Comments

@Chadius
Copy link

Chadius commented May 16, 2019

When you register a Higlass file via /api/v/link_tile, the uuid is a byte string instead of an encoded string. In Python 3, it turns the uuid into an encoded string "b'<tileset_info>'", including the b''

I send this payload

{
'coordSystem': 'GRCh38', 
'filepath': '<AWS Bucket>/<Filename>.chrom.sizes', 
'filetype': 'chromsizes-tsv', 
'datatype': 'chromsizes'
}
res = requests.post(
                higlass_server + '/api/v1/link_tile/',
                data=json.dumps(payload),
                auth=authentication,
                headers=headers
            )

The server returns
{'uuid': "b'Cr1CSDnZSEqMW-Q2lM01Mw'"}

The uuid should be encoded to match the JSON response.

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

1 participant