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

Log Failed Request cURL #43

Closed
lutes1 opened this issue Dec 12, 2023 · 3 comments · Fixed by #49
Closed

Log Failed Request cURL #43

lutes1 opened this issue Dec 12, 2023 · 3 comments · Fixed by #49
Labels
enhancement New feature or request

Comments

@lutes1
Copy link
Contributor

lutes1 commented Dec 12, 2023

Curl's are very helpful to investigate failing requests in postman

@joshuawright11
Copy link
Owner

Great idea - are you thinking something like a debug string that prints a cURL string for copy paste?

Curious if there's any prior art you're thinking of.

@lutes1
Copy link
Contributor Author

lutes1 commented Dec 13, 2023

Yes, we could print a curl string to the console that would describe the failed request.

The best way would be to have a request interceptor that would do just that. During development we could enable it for any request just to observe and compare the requests.

Inspiration: https://pub.dev/packages/curl_logger_dio_interceptor

@joshuawright11 joshuawright11 added the enhancement New feature or request label Dec 14, 2023
@joshuawright11 joshuawright11 changed the title [Improvement] Would be great to have an option to generate the curl for the failed requests Log Failed Request cURL Dec 21, 2023
@joshuawright11
Copy link
Owner

joshuawright11 commented Mar 23, 2024

This is released in v0.6.10

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

Successfully merging a pull request may close this issue.

2 participants