Code Monkey home page Code Monkey logo

Comments (5)

eloyfelix avatar eloyfelix commented on July 18, 2024 5

sorry for the delayed reply. There was a networking issue in the EBI datacenter that affected our webservices. The issue is now solved with the help of the EBI networking team. The webservices and the webresource client should be working normally now.

from chembl_webresource_client.

piehld avatar piehld commented on July 18, 2024 3

From what I've observed, this appears to be due to intermittent downtime of https://www.ebi.ac.uk/chembl/api/data/molecule.json, in which case an error page ("500 internal server") is returned instead of the desired json. When the page is accessible, no errors occur.

I think it would be valuable if the chembl client was able to automatically re-try a given request if it returns a 500 internal server error rather than simply failing, since the server seems to come back up within several seconds of the initial server error.

from chembl_webresource_client.

gorostiolam avatar gorostiolam commented on July 18, 2024 1

I am experiencing the same issue since last week when using any client functionality.

The main error message is:
chembl_webresource_client.http_errors.HttpApplicationError: Error for url https://www.ebi.ac.uk/chembl/api/data/molecule.json, server response: <!doctype html>
Followed by a very long HTML error message.

I am assuming this error is due to an update in the API for which the client has not caught up yet. Is there an estimated timeframe for solving this issue?

from chembl_webresource_client.

David-Araripe avatar David-Araripe commented on July 18, 2024

Something seems to be wrong with the json response. The following snippet reproduces the same error reported:

from chembl_webresource_client.new_client import new_client

molecule = new_client.molecule
mols = molecule.filter(molecule_synonyms__molecule_synonym__iexact='viagra').only('molecule_chembl_id')
mols

I did a workaround by changing the url_query.py module, substituting line 40 from self.frmt = 'json' to self.frmt='xml'. After that, I could get the results without a problem by running this instead:

from chembl_webresource_client.new_client import new_client

molecule = new_client.molecule
mols = molecule.filter(molecule_synonyms__molecule_synonym__iexact='viagra').only('molecule_chembl_id')
mols.set_format(frmt='json')

from chembl_webresource_client.

wen19shui avatar wen19shui commented on July 18, 2024

Hi, when I queried the activity data related to plasma stability in chembl, I encountered the same problem. This is my error code:

HttpApplicationError: Error for url https://www.ebi.ac.uk/chembl/api/data/activity.json, server response: <!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>

Do you have any solutions to this. What bothers me is the lack of such data in other relevant places. Chembl is the only database where I can find relevant content, but it seems unstable recently. Thank you.
This is the code I used to query:

act_list = []
for assay_id in tqdm(Plasma_assayID_list[14:], 'Analying data for Plasma'):
    activities = activity.filter(
        assay_chembl_id=assay_id, 
    #     relation="=", assay_type="B"
    ).only(
    "assay_id",
    "assay_description",
    "molecule_chembl_id",
    "canonical_smiles",
    "document_chembl_id",
    "standard_relation",
    "standard_value",
    "standard_units",
    "standard_type",
    "target_organism",
    "target_pref_name"
    )
    for act in activities:
        act_list.append(act)

from chembl_webresource_client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.