You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered an issue when using go-rod to load "https://www.booking.com/" and hijack requests. Specifically, the problem arises with requests to the GraphQL API ("https://www.booking.com/dml/graphql"). While the browser's developer console shows that these requests include a request body, the intercepted request in go-rod appears to have a missing body, leading to request failure.
I'm not entirely sure if this issue is directly related to go-rod or if it's an underlying issue with the way requests are intercepted or processed. Any insights or suggestions on how to address this issue would be greatly appreciated.
The code to demonstrate your question
Clone Rod to your local and cd to the repository:
git clone https://github.com/go-rod/rod
cd rod
Replace the content of function Example_hijack_requests in file examples_test.go.
Replace ALL THE CONTENT under Example_hijack_requests function, like below:
The output logs show the request URL but indicate an empty body for requests that definitely contain a body when inspected directly via the browser's developer console.
Rod Version: v0.114.7
I've encountered an issue when using go-rod to load "https://www.booking.com/" and hijack requests. Specifically, the problem arises with requests to the GraphQL API ("https://www.booking.com/dml/graphql"). While the browser's developer console shows that these requests include a request body, the intercepted request in go-rod appears to have a missing body, leading to request failure.
I'm not entirely sure if this issue is directly related to go-rod or if it's an underlying issue with the way requests are intercepted or processed. Any insights or suggestions on how to address this issue would be greatly appreciated.
The code to demonstrate your question
Clone Rod to your local and cd to the repository:
git clone https://github.com/go-rod/rod cd rod
Replace the content of function
Example_hijack_requests
in fileexamples_test.go
.Replace ALL THE CONTENT under
Example_hijack_requests
function, like below:What you got
The output logs show the request URL but indicate an empty body for requests that definitely contain a body when inspected directly via the browser's developer console.
What you expect to see
The request body for GraphQL requests to "https://www.booking.com/dml/graphql" should have a body.
What have you tried to solve the question
The text was updated successfully, but these errors were encountered: