Skip to content

POST /identifiers/form curl example error #2

@dvklopfenstein

Description

@dvklopfenstein

Thank you very much for your excellent tools and providing multiple ways to access the Reactome data.

SUMMARY:

I am running the POST /identifiers/for example using the UniProt example data downloaded into a local file.

The curl command "Execute" provides is:

image

Trying the curl command:

$ curl -X POST "https://reactome.org/AnalysisService/identifiers/form?interactors=false&pageSize=20&page=1&sortBy=ENTITIES_PVALUE&order=ASC&resource=TOTAL&pValue=1&includeDisease=true" -H  "accept: application/json" -H  "content-type: multipart/form-data"

Produces this Error:

{"code":400,"reason":"Bad Request","messages":["Could not parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadException: the request was rejected because no multipart boundary was found"]}

QUESTIONS

  1. The file containing the IDs is "UniProt.txt" and is stored on my PC locally. I do not see "UniProt.txt" anywhere in the curl example. Should the filename be there? If yes, what is the format of the filename in the curl command?

  2. Can you provide a curl example using a local file which runs, so I can mimic it?

Thank you again for the great tool set and for an amazing database.

DV

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions