Skip to content

Taxonomy API error #35

@csbrown-noaa

Description

@csbrown-noaa

I'm getting an error when using the fathomnet.api.taxa.find_taxa function. Specifically, it doesn't seem to appreciate the space character typical of "Genus species" names. It looks like the space gets correctly http-ified as %20, but the resulting lookup fails. See the example below. Pasting the URL into the browser also fails. Reducing the name to genus-only succeeds.

btw: is the swagger documentation or something for the REST API backing this?

taxa.find_taxa("worms", "MYCTEROPERCA MICROLEPIS")
ValueError: Server error (500), please contact the FathomNet administrators with the details below.

REQUEST:
    Method: GET
    URL: https://database.fathomnet.org/api/taxa/query/worms/MYCTEROPERCA%20MICROLEPIS
    Headers:
        User-Agent: python-requests[/2.32.5](http://localhost:8889/2.32.5)
	Accept-Encoding: gzip, deflate
	Accept: *[/](http://localhost:8889/)*
	Connection: keep-alive

    Body:
    None

RESPONSE:
    Status: 500
    Headers:
        Server: nginx[/1.14.1](http://localhost:8889/1.14.1)
	Date: Wed, 10 Dec 2025 19:11:08 GMT
	Content-Type: application[/json](http://localhost:8889/json); charset=utf-8
	Content-Length: 74
	Connection: keep-alive
	Access-Control-Allow-Origin: *
	Access-Control-Allow-Methods: GET, POST, OPTIONS, DELETE, PUT, PATCH, HEAD
	Access-Control-Allow-Headers: Accept, Authorization, Content-Length, Content-Range, Content-Type, Origin, X-Api-Key, X-Requested-With
    Content:
    b'{"details":"Error id 917fae6f-bb6b-43ce-a9c7-da3b790e9e62-829","stack":""}'

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