-
Notifications
You must be signed in to change notification settings - Fork 4
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
Different URL Path on error #26
Comments
Hi @Lekejosh, |
Hi @dawkaka, You are experiencing the same issue I am. If you examine the URLs in your screenshot for both scenarios, you will notice the following:
In normal scenarios, both URLs should be the same:
Both should have the same URL path. This discrepancy makes the dashboard less detailed and causes the graph to be somewhat scattered due to the difference in URLs between the success and error states. |
I think the problem you had was something like this:
|
In the meantime, I'll implement a fix and you can try it out to see if it resolves your issue as well. |
Ok, no problem @dawkaka |
@Lekejosh I published a new version, can you try the latest apitoolkit-express SDK version and confirm if it fixes your issue? |
Okay @dawkaka will check it out soon and revert back. Thank you |
@dawkaka I've tested the new update, and there are no changes. I still have the same issue, did you test the release? If yes please share a screenshot of both Responses Attached are my screenshot of the SDK version and the result |
@Lekejosh Like I mentioned before, I couldn't reproduce your exact issue, I pushed a fix to a similar issue I found while trying to reproduce yours, and I was hoping it would fix yours too but it didn't. Could you please provide a code example that reproduces the issue? This will help me address and fix the problem more efficiently. Thank you! |
I'm doing something wrong then, maybe the way I set the errorHandler middleware, When I get to my PC, I will surely share @dawkaka |
Describe the bug
URL paths are not displayed correctly on error. For example, the URL path /api/v1/login appears correctly on the API toolkit dashboard when the request is successful. However, when the same URL path returns a 4xx status code, the dashboard displays a new, altered instance of the path, such as /login.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When a URL path like /api/v1/login returns a 4xx status code, the dashboard should display the full URL path, /api/v1/login, consistently with the path used for successful requests. The dashboard should not alter the URL path to a different format, such as /login, upon encountering an error.
Screenshots
attached is a screenshot and video
video
Recording.2024-07-21.134928.1.1.mp4
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: