Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST application/json #71

Open
Denisphuket opened this issue Nov 10, 2022 · 2 comments
Open

POST application/json #71

Denisphuket opened this issue Nov 10, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@Denisphuket
Copy link

how to send application/json ?

my Request Body:
{ "cmd": "request.post", "url": "https://jsonplaceholder.typicode.com/posts", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.0 Safari/537.36", "postData": { "title": "foo", "body": "bar", "userId": 1 }, "headers": { "content-type": "application/json" } }

my Response:
{ "status": "error", "message": "Unable to process browser request", "startTimestamp": 1668098616053, "endTimestamp": 1668098646678, "version": "2.1.1" }

CURL:
curl --location --request POST 'http://localhost:8191/v1' \ --header 'Content-Type: application/json' \ --data-raw '{ "cmd": "request.post", "url": "https://jsonplaceholder.typicode.com/posts", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.0 Safari/537.36", "postData": { "title": "foo", "body": "bar", "userId": 1 }, "headers": { "content-type": "application/json" } }'

ERROR in Console
ERROR REQ-15 TimeoutError: Navigation timeout of 30000 ms exceeded

@Denisphuket Denisphuket added the enhancement New feature or request label Nov 10, 2022
@malafk
Copy link

malafk commented Dec 3, 2022

same

@MaiSan9999
Copy link

MaiSan9999 commented Apr 30, 2023

Address: http://localhost:8191/v1
Response code: 500 (InternalServerError)
Received headers:
Content-Type: application/json
Date: Sun, 30 Apr 2023 17:50:05 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked
Received cookies:
Response Source:
{"status":"error","message":"Unable to process browser request","startTimestamp":1682877004677,"endTimestamp":1682877005340,"version":"2.1.1"}

BUMP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants