Metabolite ID Conversion NOT working now?

Even use Example compound list doesn’t work

Please follow our post guidelines

Hi,

I probably have same issue.
The MetaboAnalyst API (MetaboAnalyst) seems not working now.
I tried to run the example Python code but it returned the attached error message.

As I could use the API without problems 2 or 3 weeks ago, something seemed have happened in the last few weeks.

error.txt (3.1 KB)

Thanks for your help

Hi, We updated API server recently. The previous API domain has been replaced with the latest one for compound ID mapping:

https://www.xialab.ca/api/mapcompounds

Please use this URL for your analysis.

Hi @Qiang,
It worked! Thanks a lot.

Hi! I tried the new URL (https://www.xialab.ca/api/mapcompounds) with the sample Python code posted here and the sample R code from here (section 3.2). In both cases the response contained error message.

Except the URL, is there anything else I need to modify? Thank you.

Hi @Qiang , thanks a lot for the service. I confirmed the same issue recently. I tried to run example Python code but it returned the below error message.

<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>Generic Error Landing Page</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body style="background: lightblue">
        <div style="line-height: 26px; padding: 40px 20px 40px 60px">
            <h2>Troubleshooting</h2>
            <p>
                This page indicates an unknown error that is <u>unique to your data and parameters</u>. 
                We suggest the following steps 
            </p>

            <h3>Self Help</h3>
            <ul>
                <li>
                    <b>Have you read the <b>FAQs</b>, <b>Data Format</b> and <b>Tutorials</b>?</b> <br/>
                    These resources provides detailed explanations for common questions received from users. 
                    Please first go through these resources first. 
                </li>  
                <li>
                    <b>Have you tried our example data to see if the issue still exists?</b><br/>
                    Most of the time, the issue is related to improper data format. Although we try to give informative 
                    error messages, there are always exceptions. Here are three tips: 
                    <ol>
                        <li>
                            Open your file  in a text editor (not a spreadsheet program) to see the details - are these values comma separated (.csv) or tab separated (.txt)?
                        </li>
                        <li>
                            You may need to search "How to save my file as a .csv format" to get more detailed instructions; 
                        </li>
                        <li>
                            Several example datasets are provided in the upload page, please choose the one that matches your data type to see if the issue still appears. Download and open 
                            the data in a text editor for details.  
                        </li>
                    </ol>
                </li>
            </ul>

            <h3>Ask for Support</h3>
            Remote troubleshooting is difficult. More details are required in order for us to reproduce the issue:
            <ol style="color: darkred;">
                <li>
                    <b>Data</b>: Indicate which example data you used, or provide a copy of your data
                </li>
                <li>
                    <b>Steps</b>: Document all steps leading to the issue. Sometimes screenshots may be necessary
                </li>
                <li>
                    <b>Submit</b>: Post your questions with above information to <a href='https://www.omicsforum.ca' target="_blank"><b>OmicsForum.ca</b></a> under the corresponding tool name            
               </li>
            </ol>   

            Please keep in mind that there are 1000s of users on a daily basis. It may take 3 - 7 days to respond to your questions. 
    </div>
</body>
</html>

Thanks in advance for your help.

Has this issue been resolved? I am having the same trouble with the API. I ran the example in Python and received the following error message.

<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>Generic Error Landing Page</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body style="background: lightblue">
        <div style="line-height: 26px; padding: 40px 20px 40px 60px">
            <h2>Troubleshooting</h2>
            <p>
                This page indicates an unknown error that is <u>unique to your data and parameters</u>. 
                We suggest the following steps 
            </p>

            <h3>Self Help</h3>
            <ul>
                <li>
                    <b>Have you read the <b>FAQs</b>, <b>Data Format</b> and <b>Tutorials</b>?</b> <br/>
                    These resources provides detailed explanations for common questions received from users. 
                    Please first go through these resources first. 
                </li>  
                <li>
                    <b>Have you tried our example data to see if the issue still exists?</b><br/>
                    Most of the time, the issue is related to improper data format. Although we try to give informative 
                    error messages, there are always exceptions. Here are three tips: 
                    <ol>
                        <li>
                            Open your file  in a text editor (not a spreadsheet program) to see the details - are these values comma separated (.csv) or tab separated (.txt)?
                        </li>
                        <li>
                            You may need to search "How to save my file as a .csv format" to get more detailed instructions; 
                        </li>
                        <li>
                            Several example datasets are provided in the upload page, please choose the one that matches your data type to see if the issue still appears. Download and open 
                            the data in a text editor for details.  
                        </li>
                    </ol>
                </li>
            </ul>

            <h3>Ask for Support</h3>
            Remote troubleshooting is difficult. More details are required in order for us to reproduce the issue:
            <ol style="color: darkred;">
                <li>
                    <b>Data</b>: Indicate which example data you used, or provide a copy of your data
                </li>
                <li>
                    <b>Steps</b>: Document all steps leading to the issue. Sometimes screenshots may be necessary
                </li>
                <li>
                    <b>Submit</b>: Post your questions with above information to <a href='https://www.omicsforum.ca' target="_blank"><b>OmicsForum.ca</b></a> under the corresponding tool name            
               </li>
            </ol>   

            Please keep in mind that there are 1000s of users on a daily basis. It may take 3 - 7 days to respond to your questions. 
    </div>
</body>
</html>

Same issue–both the web interface and R API call fail. See example in R below.
Thanks for creating these tools!
Jeremy

Example names from MetaboAnalyst.

names ← “1,3-Diaminopropane
2-Ketobutyric acid
2-Hydroxybutyric acid
2-Methoxyestrone
(R)-3-Hydroxybutyric acid
Deoxyuridine
Cortexolone
Deoxycorticosteron
Ketoisovaleric acid”

Put names in formatted string

name_string ← names |>
str_replace_all(“\n”, “;”) |>
str_replace_all(" ;", “;”)

List containing body to send

body = list(queryList = name_string, inputType = “name”)

Get the same result with either of these URLs: 500 error

url ← “https://rest.xialab.ca/api/mapcompounds

url ← “https://www.xialab.ca/api/mapcompounds

Send request to API & get results

query_results ← httr::POST(url = url,
body = body,
encode = “json”)

Sends back status code 500, indicating internal server error

query_results$status_code

Hi, I am still suffering from same issue. Would you let us know if we still could use this API?
Many thanks for your help.