Skip to content

GNS3 API blocks on invalid request methods #1766

@ghost

Description

GNS3 version 2.2.8 on Darwin (64-bit) with Python 3.7.6 Qt 5.13.2 and PyQt 5.13.2.

An API request with an invalid request method results in a blocked connection, no response (not even an error message) is returned.

Working:

/Users/behlers# curl -X GET -u 'admin:password' http://192.168.1.10:3080/v2/version
{
    "local": true,
    "version": "2.2.8"
}

Invalid method GET1:

/Users/behlers# curl -X GET1 -u 'admin:password' http://192.168.1.10:3080/v2/version
<no response, blocks until killed>

Here a wireshark trace, the GNS3 server is returning no data.
wireshark

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions