Skip to content

Code sending duplicate requests to API #3

@tsmith64

Description

@tsmith64

Using python 3.5 on a Win8.1 64bit OS my API requests are mistakenly being sent twice to the server. Talking to the help online, the server officially registers a second request delayed by 2 seconds when sent from my python code. The following code results in a double request:

webhoseio.config(token="API_KEY")
q= code here for building search string
ts=code here for setting timestamp
query_params = {
"q": q,
"ts": ('%d' %ts),
"sort": "published"
}
data = webhoseio.query("filterWebContent",query_params)

I do have an internet accountability filter installed on the computer, but accessing the API through the online API Playground did not result in a double request. What am I missing?

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