Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Using POST instead of GET for long queries #595

@lucasvanhalst

Description

@lucasvanhalst

On Google Appengine, there's a 2KB limit for urls. So if you do multiple queries in one api call, that 2kb is exceeded pretty easily.

It would be nice if we could specify the http method in the query method to avoid that limit.

for now, we've patched the library in our project to replace this

https://github.com/influxdata/influxdb-python/blob/master/influxdb/client.py#L404-L410

with:

    response = self.request(
        url="query",
        method='POST',
        params=None,
        data=urllib.urlencode(params),
        headers={'Content-Type': 'application/x-www-form-urlencoded'},
        expected_response_code=expected_response_code
    )

Activity

xginn8

xginn8 commented on Jul 4, 2018

@xginn8
Collaborator

@lucasvanhalst are you willing to contributing a patch for this request?

linked a pull request that will close this issue on Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @lucasvanhalst@xginn8

      Issue actions

        Using POST instead of GET for long queries · Issue #595 · influxdata/influxdb-python