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

Difference in response between v1 and v2 #3866

Open
Umzario opened this issue Feb 21, 2024 · 3 comments
Open

Difference in response between v1 and v2 #3866

Umzario opened this issue Feb 21, 2024 · 3 comments

Comments

@Umzario
Copy link

Umzario commented Feb 21, 2024

Describe the bug
Hey guys, I notice a minor bug while testing out v2. When using the /scrape endpoint in v1 to retrieve content for a URL (we'll take www.example.com as an example URL), I can see the response headers for each inbound/outbound network (response["debug"]["network"]["inbound"]), however, in v2, the response headers don't appear to be visible. Is this a bug or am i missing something? Please let me know if more is needed. Thanks in advance

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://www.example.com' in v2 while using /scrape endpoint
  2. Retrieve inbound/outbound network requests
  3. No response headers for inbound/outbound network requests

Expected behavior
Response headers for inbound/outbound network requests can be found

Screenshots
Here's inbound network in v1:
[{'status': 200, 'url': 'https://www.example.com/', 'headers': {'accept-ranges': 'bytes', 'age': '480002', 'cache-control': 'max-age=604800', 'content-encoding': 'gzip', 'content-length': '648', 'content-type': 'text/html; charset=UTF-8', 'date': 'Wed, 21 Feb 2024 14:27:46 GMT', 'etag': '"3147526947"', 'expires': 'Wed, 28 Feb 2024 14:27:46 GMT', 'last-modified': 'Thu, 17 Oct 2019 07:18:26 GMT', 'server': 'ECS (dce/26AB)', 'vary': 'Accept-Encoding', 'x-cache': 'HIT'}}]

Here's inbound network in v2:
[{'status': 200, 'url': 'https://www.example.com/'}]

Desktop (please complete the following information):

  • OS: MacOS
  • Browse: Chrome
  • Version: Not sure. Just pulled latest v2 image

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@joelgriffith
Copy link
Collaborator

Likely a missing feature. Will see if we can add support for this soon.

@Umzario
Copy link
Author

Umzario commented Apr 2, 2024

Hello, sorry for disturbing, but is there any updates on this?

@Umzario
Copy link
Author

Umzario commented May 3, 2024

Hello, any updates on this?

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

No branches or pull requests

2 participants