Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

HTTP GET Request Parameter for "keywords" does not accept a "," or a "-" #3

Open
pedro-vicente opened this issue Dec 7, 2020 · 2 comments

Comments

@pedro-vicente
Copy link

the HTTP GET Request Parameter for "keywords" does not accept a "," or a "-" (separator or exclusion)

this returns a JSON error

GET /v1/news?access_key=1234&countries=us,au&languages=en&sources=business,-sports&sources=cnn,-bbc&date=2020-8-24,2020-12-31&limit=1&keywords=virus,-boston HTTP/1.0

but this is OK (space between keyword escaped with %20)

GET /v1/news?access_key=1234&countries=us,au&languages=en&sources=cnn,-bbc&keywords=virus%20boston&limit=1 HTTP/1.0

@nypinstripes
Copy link

Having same issue.

@xTkAx
Copy link

xTkAx commented Jun 6, 2023

Same problem here, even replacing the ',' with a url-encoded %2C doesn't help.

error |   code | "validation_error" message | "Request failed with validation error" context |   keywords |   0 | "This value is not valid."

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants