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

requests are not appearing in chronological order #133

Open
benm5678 opened this issue Jan 19, 2024 · 4 comments
Open

requests are not appearing in chronological order #133

benm5678 opened this issue Jan 19, 2024 · 4 comments

Comments

@benm5678
Copy link

In v 0.18.0 the request are not in order (can be seen by looking at Date in response headers).
Is it possible to fix, or allow to sort? Thanks!!

@cle-b
Copy link
Owner

cle-b commented Jan 27, 2024

Hello,

Could you give me more context?

In httpdbg, the requests are ordered by the time of the first bytes sent by the client. There is one exception: if you use httpdbg to trace the requests when running tests in parallel using pytest. In that case the rule is the same, but for each test. Isn't it what you want?

NB: This order may differ than a sort based on the value of the HTTP response header Date but this is normal.

@benm5678
Copy link
Author

I'm doing sequential calls, so time of first byte should work. I suppose it's not an ordering issue, but a grouping issue. I see most requests grouped under the "console" heading. But others are split into their own "res = session.post" sections. So not all requests are under one section.... can that be done? I see if I hide initiator rows, the grouping sections go away, but it's still out of order in that case. Hopefully that makes sense.

@cle-b
Copy link
Owner

cle-b commented Jan 29, 2024

It looks like this is indeed a grouping issue.

I haven't been able to reproduce this issue but I tried to made a fix based on your description.

Could you try with httpdbg v0.18.1, select a request that was previously categorized under the "console" initiator and share with me the content of the stack panel, please?

Also, could you tell me what HTTP client you are using?

@benm5678
Copy link
Author

Nice, thanks for that. I can't repro the issue anymore, no requests show up under "console" anymore, so if I hide the initiator rows, I get a good sequential view. I'm not sure which request showed up under console and which didn't, it was kinda random before... behind the scenes it's an app that utilizes the latest langchain framework, so it's making the http calls. I can tell you that looking at the 200 POST requests, some of them have stack info and in others it's blank... so perhaps that's related.

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

No branches or pull requests

2 participants