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

Bad http request error #10

Open
adamsorbie opened this issue Nov 11, 2020 · 3 comments
Open

Bad http request error #10

adamsorbie opened this issue Nov 11, 2020 · 3 comments

Comments

@adamsorbie
Copy link

Hi,

I am getting a bad http request error when trying to run AMON. Doesn't seem to matter what I use as input, even with 10 KO's as input I still get the same error.

$ amon.py -i amon_input/picrust_kos.tsv --detected_compounds amon_input/AMON_input-metabolome.tsv --other_gene_set_name amon_input/mouse_genome_ko_list.tsv -o amon_output

Traceback (most recent call last):
File "C:/Users/adamsorbie/miniconda3/envs/amon/Scripts/amon.py", line 76, in
co_file_loc=co_file_loc, pathway_file_loc=pathway_file_loc, write_json=write_json)
File "C:\Users\adamsorbie\miniconda3\envs\amon\lib\site-packages\AMON\predict_metabolites.py", line 283, in main
ko_dict = get_kegg_record_dict(set(all_kos), parse_ko, ko_file_loc)
File "C:\Users\adamsorbie\miniconda3\envs\amon\lib\site-packages\KEGG_parser\downloader.py", line 55, in get_kegg_record_dict
records = get_from_kegg_api(loop, list_of_ids, parser)
File "C:\Users\adamsorbie\miniconda3\envs\amon\lib\site-packages\KEGG_parser\downloader.py", line 49, in get_from_kegg_api
return [parser(raw_record) for raw_record in loop.run_until_complete(kegg_download_manager(loop, list_of_ids))]
File "C:\Users\adamsorbie\miniconda3\envs\amon\lib\asyncio\base_events.py", line 587, in run_until_complete
return future.result()
File "C:\Users\adamsorbie\miniconda3\envs\amon\lib\site-packages\KEGG_parser\downloader.py", line 43, in kegg_download_manager
results = await asyncio.gather(*tasks)
File "C:\Users\adamsorbie\miniconda3\envs\amon\lib\site-packages\KEGG_parser\downloader.py", line 32, in download_coroutine
raise ValueError('Bad HTTP request status %s: %s\n%s' % (response.status, response.reason, url))
ValueError: Bad HTTP request status 400: Bad Request
http://rest.kegg.jp/get/Unnamed: 2+Unnamed: 3+Unnamed: 1+1

Do you have any idea why this is happening?

@luozhy88
Copy link

I also have the same bug.
image

@salverna
Copy link

I am also getting the same bug

@duu-123
Copy link

duu-123 commented Apr 1, 2022

Me, too

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

4 participants